Bom dia a todos, estou desenvolvendo um software que usa Gtk-1.2 (a interface foi feita no Glade) no meu Debian Unstable (minha máquina de desenvolvimento) para controle e teste de um equipamento que fabricamos, na verdade ele estava meio parado (sabia que eu deveria ter portado pra GTK2 faz tempo ;-)) e agora foi necessário fazer uma alteração no código para mudar um protocolo de comunicação e quando rodei o ./configure tive o seguinte erro : . . . checking for ANSI C header files... yes checking what warning flags to pass to the C compiler... -Wall -Wunused checking what language compliance flags to pass to the C compiler... 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 for pthread_create in -lpthread... yes checking for gtk-config... /usr/bin/gtk-config checking for GTK - version >= 1.2.0... no *** Could not run GTK test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GTK was incorrectly installed *** or that you have moved GTK since it was installed. In the latter case, you *** may want to edit the gtk-config script: /usr/bin/gtk-config configure: error: GTK not installed ./configure: line 5411: exit: or: numeric argument required ./configure: line 5411: exit: or: numeric argument required
Um trecho do configure.log gerado no diretório do meu programa . . . configure:5150: checking for gtk-config configure:5168: found /usr/bin/gtk-config configure:5181: result: /usr/bin/gtk-config configure:5189: checking for GTK - version >= 1.2.0 configure:5295: gcc -o conftest -g -O2 -Wall -Wunused -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include conftest.c -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm >&5 /usr/lib/libgdk.so: undefined reference to `XFreePixmap' /usr/lib/libgtk.so: undefined reference to `XSetInputFocus' /usr/lib/libgdk.so: undefined reference to `XSetWMProtocols' /usr/lib/libgdk.so: undefined reference to `XSetWMIconName' /usr/lib/libgdk.so: undefined reference to `XShmDetach' /usr/lib/libgdk.so: undefined reference to `XLowerWindow' /usr/lib/libgdk.so: undefined reference to `XCreateFontCursor' /usr/lib/libgdk.so: undefined reference to `XCopyGC' /usr/lib/libgdk.so: undefined reference to `XTextWidth16' /usr/X11R6/lib/libXi.so: undefined reference to `XGetErrorDatabaseText' /usr/lib/libgdk.so: undefined reference to `XSetWindowBackground' /usr/lib/libgdk.so: undefined reference to `XSetTransientForHint' /usr/lib/libgtk.so: undefined reference to `XChangeActivePointerGrab' /usr/lib/libgdk.so: undefined reference to `XDrawString' /usr/lib/libgdk.so: undefined reference to `XCreateRegion' /usr/lib/libgdk.so: undefined reference to `XGrabKeyboard' /usr/lib/libgdk.so: undefined reference to `XSync' /usr/lib/libgdk.so: undefined reference to `XIntersectRegion' /usr/lib/libgdk.so: undefined reference to `XUnionRegion' /usr/lib/libgdk.so: undefined reference to `XDrawLines' /usr/lib/libgdk.so: undefined reference to `XUnsetICFocus' /usr/lib/libgdk.so: undefined reference to `XDefineCursor' /usr/lib/libgdk.so: undefined reference to `XFreeCursor' /usr/lib/libgdk.so: undefined reference to `XDrawPoint' /usr/lib/libgdk.so: undefined reference to `XMapWindow' /usr/lib/libgdk.so: undefined reference to `XSetClipRectangles' /usr/lib/libgdk.so: undefined reference to `XGetVisualInfo' . . . E por aí vai... Olhando o arquivo configure.log vejo que há algum problema com a linkagem com os arquivos /usr/lib/libgdk.so, /usr/lib/libgtk.so, /usr/X11R6/lib/libXi.so, o que eu não sei, isto aconteceu de alguns apt-get dist-upgrade's pra cá, estou usando o automake-1.7 mas com o automake-1.4 dá na mesma, alguém teve algum problema deste tipo também ? Obrigado por qualquer ajuda Sucesso a todos -- Flavio Alberto Lopes Soares [EMAIL PROTECTED] MAQPLAS Indústria e Comércio de Máquinas LTDA http://www.maqplas.com.br

