[syslog-ng] cannot find -lglib-2.0 while cross compiling

Hasan Ümit Ezerçe humite at gmail.com
Thu Jul 8 09:33:24 CEST 2010


Hi,

I need to run syslog-ng on an itanium RHEL 4.7 server but cannot find
any RPM's for ia64 arch. So decided to cross compile it. I am trying
to build it on a centos 4.7 VM and get the following error:

ia64-unknown-linux-gnu-gcc  -Os -Wall   -o syslog-ng  main.o
libsyslog-ng.a -lnsl -lrt  -Wl,-Bstatic  -lglib-2.0   -levtlog   -lnet
 -Wl,-Bdynamic  -ldl
/opt/crosstool/gcc-3.4.5-glibc-2.3.6/ia64-unknown-linux-gnu/lib/gcc/ia64-unknown-linux-gnu/3.4.5/../../../../ia64-unknown-linux-gnu/bin/ld:
cannot find -lglib-2.0
collect2: ld returned 1 exit status

However it seems that I already have glib-2.0 libs installed:
$ pkg-config glib-2.0 --cflags --libs
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -lglib-2.0

Can you tell what am I missing here?

Best regards.


More information about the syslog-ng mailing list