Re: Static build of agent on Solaris 9

This is a discussion on Re: Static build of agent on Solaris 9 within the SNMP Coders forums, part of the Networking and Network Related category; John Clinton wrote: > gcc -Usolaris2 -Dsolaris2=solaris2 -o snmpd snmpd.o -Bstatic > -L/usr/local/ssl/lib ./.libs/...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-13-2007
Thomas Anders
 
Posts: n/a
Default Re: Static build of agent on Solaris 9

John Clinton wrote:
> gcc -Usolaris2 -Dsolaris2=solaris2 -o snmpd snmpd.o -Bstatic
> -L/usr/local/ssl/lib ./.libs/libnetsnmpmibs.a ./.libs/libnetsnmpagent.a
> helpers/.libs/libnetsnmphelpers.a ../snmplib/.libs/libnetsnmp.a -lelf
> -lm -ladm
> Undefined first referenced
> symbol in file
> bind ../snmplib/.libs/libnetsnmp.a(snmpUDPDomain.o)
> recv ../snmplib/.libs/libnetsnmp.a(snmpTCPDomain.o)
> send ../snmplib/.libs/libnetsnmp.a(snmpTCPDomain.o)
> kstat_data_lookup ./.libs/libnetsnmpmibs.a(kernel_sunos5.o)
> kstat_lookup ./.libs/libnetsnmpmibs.a(hr_system.o)
> kstat_chain_update ./.libs/libnetsnmpmibs.a(cpu_kstat.o)
> getsockname ../snmplib/.libs/libnetsnmp.a(snmpUnixDomain.o)
> accept ../snmplib/.libs/libnetsnmp.a(snmpTCPDomain.o)
> listen ../snmplib/.libs/libnetsnmp.a(snmpTCPDomain.o)
> gethostbyname ../snmplib/.libs/libnetsnmp.a(snmpv3.o)
> sendto ../snmplib/.libs/libnetsnmp.a(snmpUDPDomain.o)
> socket ./.libs/libnetsnmpmibs.a(kernel_sunos5.o)
> kstat_read ./.libs/libnetsnmpmibs.a(diskio.o)
> kstat_open ./.libs/libnetsnmpmibs.a(diskio.o)
> kstat_close ./.libs/libnetsnmpmibs.a(hr_system.o)
> setsockopt ../snmplib/.libs/libnetsnmp.a(snmpUDPDomain.o)
> getsockopt ../snmplib/.libs/libnetsnmp.a(snmpUDPDomain.o)
> connect ../snmplib/.libs/libnetsnmp.a(snmpTCPDomain.o)
> recvfrom ../snmplib/.libs/libnetsnmp.a(snmpUDPDomain.o)
> inet_addr ../snmplib/.libs/libnetsnmp.a(snmp_api.o)
> inet_ntoa ../snmplib/.libs/libnetsnmp.a(read_config.o)


Are you sure your system has static versions of all the system
libraries? I'd guess this is *not* the case, hence your problems.

Taking a step back, why do you want to build a purely static version on
Solaris at all? Sun tends to discourage that.


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0