static linking problems



Hi

I tried to link my gtk applications static to be sure to run
on different also older glib distributions.
Linking dynamic with RedHat 7.3  gcc 2.9x all runs well
Trying to set the -static it results in unresolved symbols
This is the GTK_LIB Path oder


GTK_LIBS = -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lX11 -lm -lXext -lgthread

and this are the typical messages
/usr/lib/libgdk.a(gdkinput.o): In function `gdk_input_device_new':
gdkinput.o(.text+0x68e): undefined reference to `XOpenDevice'
 or
/usr/lib/libgdk.a(gdkinput.o): In function `gdk_input_check_proximity':
gdkinput.o(.text+0x1a89): undefined reference to `XQueryDeviceState'

for the thread libraray
/usr/lib/libgthread.a(gthread.o): In function`g_private_new_posix_impl':
gthread.o(.text+0x425): undefined reference to `pthread_key_create'

and it looks like the ptherad_create is also not found

undefined reference to `pthread_create'

has anybody know what to add or change in lib search order
or what else will be wrong or missing.

Thangs for help

guenther









R=I+S  Rapp Informatik Systeme GmbH
       Rosenbühlstr. 24
       D-89182 Bernstadt
       Tel:  +49 (0)7348-7755
       Fax:  +49 (0)7348-6086
E-MAIL  mailto: guenther rapp-informatik de
WEB             www.rapp-informatik.de

PS:
Senden Sie mir bitte keine Anhänge in Microsoft (.DOC, .PPT) Format
Bitte lesen Sie  http://www.fsf.org/philosophy/no-word-attachmentsi.de.html
Please don't send me any attachment in Microsoft (.DOC, .PPT) format please
Read http://www.fsf.org/philosophy/no-word-attachments.html

Attachment: guenther.vcf
Description: Vcard



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]