Problems compiling SNMP++ v3.1 on Solaris
Simpson, Gary
Gary.Simpson____tfeurope.com
Tue Apr 17 16:40:32 CEST 2001
Hello Dave and Frank,
I have tried, both using the clobber option to remove the old files and
removing '-lg++' from my copy of Makefile.linux. However, this is still not
working. It starts producing errors on the following statement:
=== Beginning of compiler output ===
g++ -fPIC -shared -D_XPG4_EXTENDED -Dsun -D__unix -I../include -I./
-I../../libdes -g address_sh.o counter_sh.o ctr64_sh.o gauge_sh.o
integer_sh.o octet_sh.o oid_sh.o pdu_sh.o target_sh.o timetick_sh.o vb_sh.o
asn1_sh.o snmpmsg_sh.o uxsnmp_sh.o eventlist_sh.o msgqueue_sh.o
userdefined_sh.o usertimeout_sh.o msec_sh.o notifyqueue_sh.o sha_sh.o
v3_sh.o usm_v3_sh.o mp_v3_sh.o idea_sh.o smival_sh.o oid_def_sh.o
auth_priv_sh.o reentrant_sh.o md5c_sh.o -o ../lib/libsnmp++.so
Text relocation remains referenced
against symbol offset in file
<unknown> 0xac8
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libstdc++.a(iovfscanf.o)
<unknown> 0xacc
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libstdc++.a(iovfscanf.o)
<unknown> 0xad0
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libstdc++.a(iovfscanf.o)
<unknown> 0xad4
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libstdc++.a(iovfscanf.o)
...
<long list of similar errors>
...
ios virtual table 0xb8
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libstdc++.a(stdiostream.o)
ios virtual table 0xbc
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libstdc++.a(stdiostream.o)
_IO_ostream_withassign::operator=(ostream &)0x2934
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libstdc++.a(iostream.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `../lib/libsnmp++.so'
=== End of compiler output ===
I am running with g++ 2.95.2, 2000.08.22.04.14 on Solaris 5.8. I was
compiling SNMP++ v3.1 and have now downloaded the latest version (v3.1.1)
but with the same result.
Thanks for your help,
Gary.
-----Original Message-----
From: Frank.Fock____t-online.de [mailto:Frank.Fock____t-online.de]
Sent: Tuesday, April 17, 2001 10:53 AM
To: Gary.Simpson____tfeurope.com
Cc: agentpp-dl____agentpp.com
Subject: Re: Problems compiling SNMP++ v3.1 on Solaris
Hi Gary,
I had no problem compiling the latest version of SNMP++ (v3.1.1)
with g++ 2.95 19990728 nor with CC 4.2 on Solaris 5.7 (7.0).
Are you sure you recompiled everything (make clobber)?
Regards,
Frank
>
> I have downloaded the new versions of SNMP++ and AGENT++. However, I
am
> unable to compile the new version of SNMP++ as it comes up with the
> following error message:
>
> ld: fatal: relocations remain against allocatable but non-writable
> sections
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target '../lib/libsnmp++.so'
>
> In order to build SNMP++, I have taken a copy of Makefile.linux and
changed
> this to remove the '-lg++' option (which does not work) and replaced
it with
> '-lelf -lsocket -lnsl'. Without doing this, it comes up with errors
saying
> that library -lg++ is not found. This worked with the previous
version of
> SNMP++.
>
> Thanks for your help,
> Gary.
>
>
>
>
> This communication is intended solely for the addressee and is
confidential
> and not for third party unauthorised distribution.
>
More information about the AGENTPP
mailing list