473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

FreeBSD, gcc 3.3.6 from ports, and nss_dns.so.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
Oct 4 '05 #1
1 2064
Ian
Razvan Cojocaru wrote:

Any suggestions are greatly appreciated.


Try comp.unix.programmer

Ian
Oct 4 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ksenia Marasanova | last post by:
Hi, I have python2.3, installed from port /lang/python long time ago. The current version is 2.4, but I'd rather have two python versions, instead of upgrading. Is there maybe a way to somehow...
9
by: David Bear | last post by:
I need python 2.3. I have freebsd 4.10-releng. when configuring python I received the following: ../configure --prefix=/home/webenv > config-results configure: WARNING: curses.h: present but...
2
by: Dorian Mcfarland | last post by:
Hi there, I have installed python(2.4.3) & trac(0.9.4) on freebsd(4.8) from the ports collection and I seem to have an underlying problem with the thread module. Pysqlite is calling 'import...
1
by: Vyacheslav Sotnikov | last post by:
Hello python-list, is anybody has any success in taking this components live together? I need to access remote Oracle 9i from freebsd 6.2 machine using python 2.4.4. Thanks in advance for answer.
1
by: gp | last post by:
I'm running FreeBSD 6.1....Apache 2.2 and im working on upgrading to php5.2.0....with ports... my issue is the extensions like JSON and PDO which were supposed be wrapped up in 5.2....i've...
2
by: Ruslan A Dautkhanov | last post by:
Hello ! I'm about to install O9i on FreeBSD box. uname -a: FreeBSD stat2.scn.ru 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #2: Fri Apr 23 19:19:43 KRAST 2004...
1
by: kelvinfo | last post by:
Hi I am trying out FreeBSD and don't know much scripting - I am trying to build some programs from the ports. Now in linux I could do something like ./configure --abcdef --ghijkl then "make...
5
by: ajd335 | last post by:
Hi all, I am trying to install Apache 2.2 on FreeBSD 7.1. I have installed the OS and the basic ports needed. when I tried to install apache 2.2 using, portmaster www/apache22 it gave me an...
0
by: ajd335 | last post by:
Hi all, I am trying to install Apache 2.2 on FreeBSD 7.1. I have installed the OS and the basic ports needed. when I tried to install apache 2.2 using, portmaster www/apache22 it gave me an...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.