Menu

gethostname link problem (solaris 2.7)

Porting
2002-01-15
2002-01-15
  • Costas Kotsokalis

    Hello,
      I have managed to compile cc++ 1.9.4 under solaris 2.7. However, when I am trying to link anything at all with libccgnu, I always get the following error:

    nfa:~/tmp > g++ mmm.cpp -lccgnu -lnsl -lposix4
    Undefined                       first referenced
    symbol                             in file
    gethostname(char *, int)            /home/ckotso/lib/libccgnu.so
    ld: fatal: Symbol referencing errors. No output written to a.out
    collect2: ld returned 1 exit status

    As one can see I also link against libnsl.so (which includes gethostname definition), and I have also tried to build libccgnu with libnsl.so linking (which isn't on by default). The build is ending, but I still can't link anything with libccgnu. Any ideas? I have tried everything I could think of!

      Costas

    PS: I have also used the -L and -R switches, they made no difference at all.

     
    • Frediano Ziglio

      Frediano Ziglio - 2002-01-15

      Fixed a week ago in cvs...
      New release is coming...

      freddy77

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.