Discussion:
Compiled SNMP, ld: fatal: Symbol referencing errors. No output written to .libs/snmpd when trying to make
Clement Dass
2017-02-20 05:41:19 UTC
Permalink
Hi,

I have managed to ./configure net-snmp using the following:

./configure --with-oenssl=/usr/sfw --with-mib-modules="ucd-snmp/lmSensors
ucd-snmp/diskio \ smux mibII/mta_sendmail" --with-cc=gcc

Next is make, but when trying to make I get the following:

ld: warning: file ../snmplib/.libs/libnetsnmp.so: linked to
/usr/local/src/net-snmp/snmplib/.libs/libnetsnmp.so: attempted multiple
inclusion of file
Undefined first referenced
symbol in file
picl_initialize ./.libs/libnetsnmpmibs.so
picl_get_propval_by_name ./.libs/libnetsnmpmibs.so
picl_get_propinfo_by_name ./.libs/libnetsnmpmibs.so
picl_get_propval ./.libs/libnetsnmpmibs.so
picl_shutdown ./.libs/libnetsnmpmibs.so
picl_get_root ./.libs/libnetsnmpmibs.so
ld: fatal: Symbol referencing errors. No output written to .libs/snmpd
collect2: error: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/usr/local/src/net-snmp/agent'
make: *** [subdirs] Error 1

OS: SunOS Narada125 5.9 Generic_118558-34 sun4u sparc SUNW,Sun-Fire-V490

Kindly requesting support as it is critical I get snmp working on this
server and it requires monitoring, really really need help, please.

Thank you,
Clement
Clement Dass
2017-02-20 20:35:40 UTC
Permalink
Good Morning Ben,

Thank you so much for the kind response, I will take a look into the
archives now and try and find the script, will update accordingly. Also
will attempt installation on a different location and also update.

Have a great day.

Kindest Regards,
Clement Kumar
Check the archives. I posted a script to help build on Solaris.
Also, find a different place to install it. /use/local or some other
place. The reason for not installing it in
/use/sfw is that is the default Solaris location.
Ben
Sent from my iPhone
Post by Clement Dass
Hi,
./configure --with-oenssl=/usr/sfw --with-mib-modules="ucd-snmp/lmSensors
ucd-snmp/diskio \ smux mibII/mta_sendmail" --with-cc=gcc
Post by Clement Dass
ld: warning: file ../snmplib/.libs/libnetsnmp.so: linked to
/usr/local/src/net-snmp/snmplib/.libs/libnetsnmp.so: attempted multiple
inclusion of file
Post by Clement Dass
Undefined first referenced
symbol in file
picl_initialize ./.libs/libnetsnmpmibs.so
picl_get_propval_by_name ./.libs/libnetsnmpmibs.so
picl_get_propinfo_by_name ./.libs/libnetsnmpmibs.so
picl_get_propval ./.libs/libnetsnmpmibs.so
picl_shutdown ./.libs/libnetsnmpmibs.so
picl_get_root ./.libs/libnetsnmpmibs.so
ld: fatal: Symbol referencing errors. No output written to .libs/snmpd
collect2: error: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/usr/local/src/net-snmp/agent'
make: *** [subdirs] Error 1
OS: SunOS Narada125 5.9 Generic_118558-34 sun4u sparc SUNW,Sun-Fire-V490
Kindly requesting support as it is critical I get snmp working on this
server and it requires monitoring, really really need help, please.
Post by Clement Dass
Thank you,
Clement
------------------------------------------------------------
------------------
Post by Clement Dass
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Clement Dass
2017-02-20 21:12:11 UTC
Permalink
Hi Ben,

Utmost apologies, there is alot of content in archives, would you please be
able to send me a link to the archive where your installation script
resides.

Thank you in advance,

Kindest Regards,
Clement Kumar
Post by Clement Dass
Good Morning Ben,
Thank you so much for the kind response, I will take a look into the
archives now and try and find the script, will update accordingly. Also
will attempt installation on a different location and also update.
Have a great day.
Kindest Regards,
Clement Kumar
Check the archives. I posted a script to help build on Solaris.
Also, find a different place to install it. /use/local or some other
place. The reason for not installing it in
/use/sfw is that is the default Solaris location.
Ben
Sent from my iPhone
Post by Clement Dass
Hi,
./configure --with-oenssl=/usr/sfw --with-mib-modules="ucd-snmp/lmSensors
ucd-snmp/diskio \ smux mibII/mta_sendmail" --with-cc=gcc
Post by Clement Dass
ld: warning: file ../snmplib/.libs/libnetsnmp.so: linked to
/usr/local/src/net-snmp/snmplib/.libs/libnetsnmp.so: attempted multiple
inclusion of file
Post by Clement Dass
Undefined first referenced
symbol in file
picl_initialize ./.libs/libnetsnmpmibs.so
picl_get_propval_by_name ./.libs/libnetsnmpmibs.so
picl_get_propinfo_by_name ./.libs/libnetsnmpmibs.so
picl_get_propval ./.libs/libnetsnmpmibs.so
picl_shutdown ./.libs/libnetsnmpmibs.so
picl_get_root ./.libs/libnetsnmpmibs.so
ld: fatal: Symbol referencing errors. No output written to .libs/snmpd
collect2: error: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/usr/local/src/net-snmp/agent'
make: *** [subdirs] Error 1
OS: SunOS Narada125 5.9 Generic_118558-34 sun4u sparc SUNW,Sun-Fire-V490
Kindly requesting support as it is critical I get snmp working on this
server and it requires monitoring, really really need help, please.
Post by Clement Dass
Thank you,
Clement
------------------------------------------------------------
------------------
Post by Clement Dass
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Loading...