[MWy] make example uloha c. 2

Szabolcs Gróf grof.szabolcs at gmail.com
Sun Mar 29 13:53:29 CEST 2009


Ahoj!

Problem je v tom, ze OpenSolaris (na rozdil od Linux a BSD) ma funkce
potrebne k pouziti socketu v jinich knihovnach, ktere se neprilinkujou
automaticky.
Zkus k tomu prikazu jeste pridat -lnsl -lsocket

Zdravi

Szabi

On Sun, Mar 29, 2009 at 11:27 AM, Lubos Pis <lubbo at zoznam.sk> wrote:
> Zdravim
>
> pri pokuse o make Example ulohy c. 2 mi odpovie vypis, ktory pripajam dole.
> S omniORB, ktory bol referencovany v slidoch som mal problemy (pouzivam
> OpenSolaris), ale scompiloval som si sam tu istu verziu. Nemate niekto tip,
> cim by to mohlo byt, resp. ako by sa to mohlo riesit?
>
> dakujem
>
> Lubos Pis
>
> g++ -o server -Wl,-rpath /usr/local/lib -L /usr/local/lib -lomniORB4
> -lomniDynamic4 simpleSK.o server.o
> ld: warning: file /usr/local/lib/libomniORB4.so: section .strtab: malformed
> string table, initial or final byte
> ld: warning: file /usr/local/lib/libomniDynamic4.so: section .strtab:
> malformed string table, initial or final byte
> Undefined                       first referenced
>  symbol                             in file
> recv                                /usr/local/lib/libomniORB4.so
> send                                /usr/local/lib/libomniORB4.so
> __xnet_connect                      /usr/local/lib/libomniORB4.so
> __xnet_socket                       /usr/local/lib/libomniORB4.so
> getsockname                         /usr/local/lib/libomniORB4.so
> accept                              /usr/local/lib/libomniORB4.so
> gethostbyname_r                     /usr/local/lib/libomniORB4.so
> listen                              /usr/local/lib/libomniORB4.so
> gethostbyaddr                       /usr/local/lib/libomniORB4.so
> setsockopt                          /usr/local/lib/libomniORB4.so
> getpeername                         /usr/local/lib/libomniORB4.so
> inet_addr                           /usr/local/lib/libomniORB4.so
> __xnet_bind                         /usr/local/lib/libomniORB4.so
> omni_thread::init_t::~init_t()      simpleSK.o  (symbol belongs to implicit
> dependency /usr/local/lib/libomnithread.so.3)
> omni_thread::init_t::init_t()       simpleSK.o  (symbol belongs to implicit
> dependency /usr/local/lib/libomnithread.so.3)
> shutdown                            /usr/local/lib/libomniORB4.so
> ld: fatal: Symbol referencing errors. No output written to server
> collect2: ld returned 1 exit status
> make: *** [server] Error 1
>
> _______________________________________________
> MWy mailing list
> MWy at dsrg.mff.cuni.cz
> https://dsrg.mff.cuni.cz/mailman/listinfo/mwy
>




More information about the NSWI080 mailing list