Re: Binaries for Solaris 5.5.1. or build advice

stan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Fri, Jul 04, 2008 at 01:08:38AM +0200, Thomas Anders wrote:
> stan wrote:
> > On Thu, Jul 03, 2008 at 09:22:27PM +0200, Thomas Anders wrote:
> >> ./configure --enable-static --disable-shared --prefix=/opt/net-snmp &&
> >> make && make test
> > 
> > OK, here is the typescript from that build atempt.
> > 
> > /usr/include/sys/synch.h:22: conflicting types for `uint32_t'
> > ../include/net-snmp/types.h:134: previous declaration of `uint32_t'
> 
> I'm not sure I understand why you get this failure for a default build
> of 5.4.1 and a static build of 5.4.2.pre2, but not for a default build
> of 5.4.2.pre2. Anyone else does?

In working through this, it appears to me that i may have some issues with
my build environment on this old machine. t has been a long time sicne I
needed to build anything on it, so this is possible.

In any case I figured out that I needed the GNU binutils to be sed instead
of the Sun ones. Acordingly I changed the PATH to :

/opt/GCC2721/bin:/opt/FSFbinut/bin:/usr/sbin:/usr/bin:/bin:/usr/ucb:/etc:/usr/etc:/usr/local:/usr/ccs/bin:/usr/openwin/lib:/usr/openwin/bin:/usr/fox/wp/bin/tools:/usr/fox/xt/bin:/usr/proc/bin:/usr/opt/SUNWmd/sbin:/opt/gms:/opt/gms/bin:/opt/GCC2721/bin:/usr/local:/usr/ccs/bin:/usr/opt/SUNWmd/sbin:/usr/openwin/bin:/opt/FSFless/bin:/opt/DSIelm/bin:/opt/VAlsof/bin:/opt/LWperl/bin:/opt/FSFscreen/bin:/opt/USCsysi/bin:/usr/local/bin:/opt/WLtop/bin:/opt/VJtr/bin:/opt/FSFgdb/bin:/opt/FSFgzip/bin:/opt/FSFlibg++/bin:/opt/LYNX271/bin:/opt/UNLncftp/bin:/opt/netscape:/opt/TWgnuplot/bin:/usr/lib/ICAClient:.

As you can see the GNU binutils are first in thsi search path as evidenced
by;

AP0502# which ld
/opt/FSFbinut/bin/ld

Stiil, it appears to me that when I am trying to build with shared
libraries the Sun ld may be getting called:

ld: fatal: relocations remain against allocatable but non-writable sections
*** Error code 1
make: Fatal error: Command failed for target `libnetsnmp.la'
Current working directory
/usr/local/westvaco/src/pd/ucd-snmp/net-snmp-5.4.2.pre2/snmplib
*** Error code 1
make: Fatal error: Command failed for target `subdirs'

Frankly I don't really understand libtool. can anyone help me figure out
how to better debug what is going on here?


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.