FreeBSD, gcc 3.3.6 from ports, and nss_dns.so.1

Discussion in 'C++' started by Razvan Cojocaru, Oct 4, 2005.

  1. Hello.

    I'm running FreeBSD 5.4, and using the gcc 3.3.6 from /usr/ports/lang/gcc33:

    $ gcc33 -v
    Reading specs from
    /usr/local/lib/gcc-lib/i386-portbld-freebsd5.4/3.3.6/gcc-lib/i386-portbld-freebsd5.4/3.3.6/specs
    Configured with: ./..//gcc-3.3.6/configure --disable-nls
    --with-system-zlib --program-suffix=33
    --libdir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.4/3.3.6
    --with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.4/3.3.6/include/c++/
    --enable-languages=c,c++,objc,f77 --disable-shared --prefix=/usr/local
    i386-portbld-freebsd5.4
    Thread model: posix
    gcc version 3.3.6 [FreeBSD]

    I've compiled a run-time loadable module (.so), and linked the libstdc++
    statically into it
    (/usr/local/lib/gcc-lib/i386-portbld-freebsd5.4/3.3.6/libstdc++.a). I
    can dlopen() it just fine, but when I try to dlsym() something from it,
    I get a "Shared object "nss_dns.so.1" not found, required by
    "myprogram"" error. There's no nss_dns.so.1 on my platform anywhere, and
    I need to get rid of that dependency.

    I've noticed that if I don't link the libstc++ library into the loadable
    plugin the error doesn't appear, but then I get unresolved symbols.

    Any suggestions are greatly appreciated.
    Thanks.

    --
    Razvan Cojocaru
    KeyID: 1024D/04CA34DE
     
    Razvan Cojocaru, Oct 4, 2005
    #1
    1. Advertising

  2. Razvan Cojocaru

    Ian Guest

    Razvan Cojocaru wrote:
    >
    > Any suggestions are greatly appreciated.


    Try comp.unix.programmer

    Ian
     
    Ian, Oct 4, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mreister
    Replies:
    1
    Views:
    3,386
    mreister
    May 25, 2010
  2. culley harrelson

    ruby 1.8 in the freebsd ports tree

    culley harrelson, Dec 2, 2003, in forum: Ruby
    Replies:
    6
    Views:
    240
    culley harrelson
    Dec 3, 2003
  3. Jonathan Weiss

    RubyGems and the FreeBSD ports tree

    Jonathan Weiss, May 30, 2005, in forum: Ruby
    Replies:
    1
    Views:
    140
    Jonathan Weiss
    Jun 5, 2005
  4. Jonathan Weiss
    Replies:
    5
    Views:
    243
    lists
    Jul 22, 2005
  5. Witold Rugowski

    FreeBSD specific issue with gems and ports

    Witold Rugowski, Aug 7, 2006, in forum: Ruby
    Replies:
    1
    Views:
    131
    F. Senault
    Aug 8, 2006
Loading...

Share This Page