Re: weird problem with c++ libraries and symbols

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

 



Ottavio Campana <ottavio@xxxxxxxxxxxx> writes:

> If I use nm, I see a lot of undefined symbols, such as
>
> nm -DC .libs/libgroupsock.so

>                  U readSocket(UsageEnvironment&, int, unsigned char*,
> unsigned int, sockaddr_in&)

> But for example readSocket is implemented in
> groupsock/GroupsockHelper.cpp . I don't think it's normal.

> libtool: link: g++ -shared -nostdlib
> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crti.o
> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/crtbeginS.o
> .libs/libgroupsock_la-Groupsock.o .libs/libgroupsock_la-GroupEId.o
> .libs/libgroupsock_la-IOHandlers.o
> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.5
> -L/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib -L/lib/../lib
> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../..
> -L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc -lgcc_s
> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/crtendS.o
> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crtn.o
> -Wl,-soname -Wl,libgroupsock.so.2009 -o .libs/libgroupsock.so.2009.2.9

The command which creates libgroupsock.so is not including
GroupsockHelper, so it seems unsurprising that the .so does not define
readSocket.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux