[OpenIndiana-discuss] "strange" linking error

Apostolos Syropoulos asyropoulos at yahoo.com
Thu Mar 7 20:35:20 UTC 2013


>This looks a lot like: https://www.illumos.org/issues/3436  I have no
>idea whether that fix is in OpenIndiana.  One workaround is to stop
>using ld -r.


I have compiled and linked successfully the library under SunOS ocean1 5.11 snv_151a 

using the -O2 optimization. Now the problem is that the library is not
usable since the older linker fails:

ld: warning: symbol 'bitno' has differing sizes:
    (file /usr/lib/amd64/libnsl.so value=0x8; file /opt/gnu/lib/amd64/libopencore-amrnb.so value=0x48);
    /usr/lib/amd64/libnsl.so definition taken
Undefined            first referenced
 symbol                  in file
RTSPClient::setupMediaSubsession(MediaSubsession&, unsigned char, unsigned char, unsigned char) libmpdemux/demux_rtp.o
RTSPClient::createNew(UsageEnvironment&, int, char const*, unsigned short) libmpdemux/demux_rtp.o
RTSPClient::describeWithPassword(char const*, char const*, char const*, unsigned char, int) libmpdemux/demux_rtp.o
RTSPClient::describeURL(char const*, Authenticator*, unsigned char, int) libmpdemux/demux_rtp.o
RTSPClient::teardownMediaSession(MediaSession&)       libmpdemux/demux_rtp.o
RTSPClient::playMediaSession(MediaSession&, double, double, float) libmpdemux/demux_rtp.o
ld: fatal: symbol referencing errors. No output written to mplayer
collect2: error: ld returned 1 exit status
make: *** [mplayer] Error 1


These symbols are defined in the library that has been created. 


A.S.

----------------------
Apostolos Syropoulos
Xanthi, Greece
http://obelix.ee.duth.gr/~apostolo
http://asyropoulos.wordpress.com
http://hypercomputation.blogspot.com/



More information about the OpenIndiana-discuss mailing list