Error al compilar wmclockmon. (GTK) (SOLUCIONADO)

Dudas al crear un paquete? cualquier problema que tengas con makepkg comentalo aca!
Responder
macksam
Archer
Archer
Mensajes: 36
Registrado: 29 Oct 2006, 14:03
Ubicación: El Salvador, C.A

Error al compilar wmclockmon. (GTK) (SOLUCIONADO)

Mensaje por macksam » 01 Abr 2012, 17:27

Muy buenas a todos.

Estoy comenzando a crear paquetes con makepkg y PKGBUILD y decidi comenzando con paquetes 'dockapps' de mi recien instalacion de WindowMaker y eleji wmclockmon.
El problema esta en que si yo lo compilo manualmente funciona la compilacion, se ejecuta sin ningun error. Pero cuando lo hago por medio de makepkg me da el siguiente mensaje con el siguiente error:

Código: Seleccionar todo

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XShapeCombineMask in -lXext... yes
checking for XpmCreatePixmapFromData in -lXpm... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for memory.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking for working malloc... yes
checking for select... yes
checking for strtoul... yes
checking for uname... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating wmclockmon-config/Makefile
config.status: creating wmclockmon-cal/Makefile
config.status: creating styles/Makefile
config.status: creating config.h
config.status: executing default-1 commands
make  all-recursive
make[1]: se ingresa al directorio `/home/samuel/builds/wmclockmoon/src/wmclockmon-0.8.1'
Making all in src
make[2]: se ingresa al directorio `/home/samuel/builds/wmclockmoon/src/wmclockmon-0.8.1/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DDATADIR='"/usr/share/wmclockmon"' -I/usr/local/include    -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c main.c
main.c: En la función 'load_cal_file':
main.c:1667:18: aviso: se descarta el valor de devolución de 'fgets', se declaró con el atributo warn_unused_result [-Wunused-result]
main.c: En la función 'load_cfgfile':
main.c:1550:18: aviso: se descarta el valor de devolución de 'fgets', se declaró con el atributo warn_unused_result [-Wunused-result]
main.c: En la función 'reload_alarms':
main.c:1699:18: aviso: se descarta el valor de devolución de 'fgets', se declaró con el atributo warn_unused_result [-Wunused-result]
main.c: En la función 'load_stylepart':
main.c:514:14: aviso: se descarta el valor de devolución de 'fgets', se declaró con el atributo warn_unused_result [-Wunused-result]
main.c: En la función 'show_cal_file':
main.c:1724:18: aviso: se descarta el valor de devolución de 'fgets', se declaró con el atributo warn_unused_result [-Wunused-result]
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DDATADIR='"/usr/share/wmclockmon"' -I/usr/local/include    -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c dockapp.c
gcc  -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o wmclockmon  main.o dockapp.o -L/usr/local/lib -lX11  -lXext -lXpm 
make[2]: se sale del directorio `/home/samuel/builds/wmclockmoon/src/wmclockmon-0.8.1/src'
Making all in doc
make[2]: se ingresa al directorio `/home/samuel/builds/wmclockmoon/src/wmclockmon-0.8.1/doc'
make[2]: No se hace nada para `all'.
make[2]: se sale del directorio `/home/samuel/builds/wmclockmoon/src/wmclockmon-0.8.1/doc'
Making all in wmclockmon-config
make[2]: se ingresa al directorio `/home/samuel/builds/wmclockmoon/src/wmclockmon-0.8.1/wmclockmon-config'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include    -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 `gtk-config --cflags` -c actions.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include    -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 `gtk-config --cflags` -c dialogs.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include    -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 `gtk-config --cflags` -c edit.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include    -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 `gtk-config --cflags` -c main.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include    -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 `gtk-config --cflags` -c mainwindow.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include    -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 `gtk-config --cflags` -c tools.c
tools.c: En la función 'load_cfgfile':
tools.c:144:14: aviso: se descarta el valor de devolución de 'fgets', se declaró con el atributo warn_unused_result [-Wunused-result]
gcc  -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 `gtk-config --cflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu `gtk-config --libs` -o wmclockmon-config  actions.o dialogs.o edit.o main.o mainwindow.o tools.o -L/usr/local/lib -lX11  -lXext -lXpm 
main.o: In function `main':
main.c:(.text.startup+0x17): undefined reference to `gtk_init'
main.c:(.text.startup+0x41): undefined reference to `gtk_main'
actions.o: In function `set_list':
actions.c:(.text+0x7e): undefined reference to `gtk_clist_get_type'
actions.c:(.text+0x8f): undefined reference to `gtk_type_check_object_cast'
actions.c:(.text+0x97): undefined reference to `gtk_clist_clear'
actions.c:(.text+0xa6): undefined reference to `gtk_clist_get_type'
actions.c:(.text+0xb7): undefined reference to `gtk_type_check_object_cast'
actions.c:(.text+0xbf): undefined reference to `gtk_clist_freeze'
actions.c:(.text+0x11a): undefined reference to `gtk_clist_get_type'
actions.c:(.text+0x12b): undefined reference to `gtk_type_check_object_cast'
actions.c:(.text+0x13b): undefined reference to `gtk_clist_append'
actions.c:(.text+0x142): undefined reference to `gtk_clist_get_type'
actions.c:(.text+0x153): undefined reference to `gtk_type_check_object_cast'
actions.c:(.text+0x163): undefined reference to `gtk_clist_set_row_data'
actions.c:(.text+0x173): undefined reference to `gtk_clist_get_type'
actions.c:(.text+0x184): undefined reference to `gtk_type_check_object_cast'
actions.c:(.text+0x18c): undefined reference to `gtk_clist_thaw'
actions.c:(.text+0x191): undefined reference to `gtk_clist_get_type'
actions.c:(.text+0x1a2): undefined reference to `gtk_type_check_object_cast'
actions.o: In function `do_change':
actions.c:(.text+0x1ff): undefined reference to `gtk_clist_get_type'
actions.c:(.text+0x210): undefined reference to `gtk_type_check_object_cast'
actions.c:(.text+0x21c): undefined reference to `gtk_clist_get_row_data'
actions.o: In function `set_values':
actions.c:(.text+0x3fb): undefined reference to `gtk_toggle_button_get_type'
actions.c:(.text+0x40c): undefined reference to `gtk_type_check_object_cast'
actions.c:(.text+0x418): undefined reference to `gtk_toggle_button_set_active'
.
.
.
collect2: ld devolvió el estado de salida 1
make[2]: *** [wmclockmon-config] Error 1
make[2]: se sale del directorio `/home/samuel/builds/wmclockmoon/src/wmclockmon-0.8.1/wmclockmon-config'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/samuel/builds/wmclockmoon/src/wmclockmon-0.8.1'
make: *** [all-recursive-am] Error 2

Código: Seleccionar todo

gcc  -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 `gtk-config --cflags` -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu `gtk-config --libs` -o wmclockmon-config  actions.o dialogs.o edit.o main.o mainwindow.o tools.o -L/usr/local/lib -lX11  -lXext -lXpm 
main.o: In function `main':
main.c:(.text.startup+0x17): undefined reference to `gtk_init'
main.c:(.text.startup+0x41): undefined reference to `gtk_main'
actions.o: In function `set_list':
actions.c:(.text+0x7e): undefined reference to `gtk_clist_get_type'
actions.c:(.text+0x8f): undefined reference to `gtk_type_check_object_cast'
Y no entiendo la razon por la cual da ese error. Alguna pista?.

Aca dejo el PKGBUILD:

Código: Seleccionar todo

pkgname=wmclockmon
pkgver=0.8.1
pkgrel=1
pkgdesc="Display a clock in 12/24h mode with alarm mode and 3 different LCD styles"
arch=('i686')
url="http://dockapps.windowmaker.org/file.php/id/115"
license=('GPL')
depends=(gtk)
makedepends=()
install=
source=(http://dockapps.windowmaker.org/download.php/id/581/$pkgname-$pkgver.tar.gz)
md5sums=('e5569e326f5542a181dd123836f652ee')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --program-prefix=/usr || return 1
  make || return 1
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install || return 1
}
La unica forma en que he podido instalar el paquete es compilando manualmente el codigo fuente en src/ y luego ejecutar $makepkg -R.

Gracias.

PD. Lamento las faltas de ortografia pero aun no he configurado mi teclado en ingles con teclas muertas. :oops:
Última edición por macksam el 01 Abr 2012, 18:31, editado 1 vez en total.
"El romper de una ola no puede explicar todo el mar". -Vladimir Nabokov-

macksam
Archer
Archer
Mensajes: 36
Registrado: 29 Oct 2006, 14:03
Ubicación: El Salvador, C.A

Re: Error al compilar wmclockmon. (GTK)

Mensaje por macksam » 01 Abr 2012, 18:30

Ya encontre la solucion:

Código: Seleccionar todo

    pkgname=wmclockmon
    pkgver=0.8.1
    pkgrel=1
    pkgdesc="Display a clock in 12/24h mode with alarm mode and 3 different LCD styles"
    arch=('i686')
    url="http://dockapps.windowmaker.org/file.php/id/115"
    license=('GPL')
    depends=(gtk)
    makedepends=()
    install=
    source=(http://dockapps.windowmaker.org/download.php/id/581/$pkgname-$pkgver.tar.gz)
    md5sums=('e5569e326f5542a181dd123836f652ee')

    build() {
      LDFLAGS=""
      cd "$srcdir/$pkgname-$pkgver"
      ./configure --prefix=/usr || return 1
      make || return 1
    }

    package() {
      cd "$srcdir/$pkgname-$pkgver"
      make DESTDIR="$pkgdir/" install || return 1
    }
LDFLAGS="" :D
"El romper de una ola no puede explicar todo el mar". -Vladimir Nabokov-

Responder