[gnet] Problem!!!



I'm trying to install a programm that uses gnet. (gnomeicu)

but the configure script of that programm says it cannot find gnet.
I know it is there because I downloaded, compiled and installed gnet-1.1.0

I have isolated the problem.

Look what I did:

I created a file test.c like this:
--------------start of test.c -----------------
int main() {


}
---------------end of test.c -------------------

then I did the following:

[root marcelot /test]# gcc test.c `gnet-config --cflags --libs` -o test
/lib/libresolv.so.2: undefined reference to `atexit'
collect2: ld returned 1 exit status
[root marcelot /test]#


This is completly strange!!!!!!
Don't ask know why but I also did the following:

[root marcelot /test]# gcc test.c `gnet-config --cflags --libs` -lresolv -o 
test
[root marcelot /test]# ./test
./test: error while loading shared libraries: libgnet-1.1.so.0: cannot open 
shared object file: No such file or directory
[root marcelot /test]#

WANT MORE INFORMATION:

[root marcelot /test]# ldd test
        libgnet-1.1.so.0 => not found
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x4002b000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40050000)
        libc.so.6 => /lib/libc.so.6 (0x40062000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[root marcelot /test]#

[root marcelot /test]# ldconfig -p | grep "gnet"
        libgnet.so (libc6) => /usr/local/lib/libgnet.so
        libgnet-1.1.so.0 (libc6) => /usr/local/lib/libgnet-1.1.so.0
[root marcelot /test]#


HELP ME PLEASE!!!!
why can't I complile any programm that uses gnet?

Thank u for any help!!
Marcelo



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