From: McCabe, P. C. R. S. S. <Pau...@ma...> - 2001-04-24 18:13:53
|
OK, it worked. built RRDTool with --enable-shared added /usr/local/rrdtool-1.0.33/lib to LD_LIBRARY_PATH still had the same problem changed SunOS.properties from jnative.ldflags=-Bdynamic -dy to jnative.ldflags=-Bdynamic -G -R/usr/local/rrdtool-1.0.33/lib and that worked Thanks, Paul -----Original Message----- From: Christopher K. Lee [mailto:cl...@di...] Sent: Monday, April 23, 2001 5:12 PM To: bu...@op... Subject: Re: [opennms-bugs] jnative.ld.log Benjamin Reed wrote: > Truthfully, I don't know much about Solaris, especially building on it. I > went through a long period of "hrm, try this; no, try this; what about > this?" until I happened upon the right answer. I have yet to get it all > enumerated into something I can reproduce. > > With that disclaimer, here's the first things I'd check. > > First, although I'm using gcc, I did not use GNU's ld; you will need > installed gcc and GNU make (configure on icmpd flips out on sun's make). > So, to use sun's ld, you need /usr/ccs/bin in your path (which should be > there in the latest CVS, slightly post-0.7.3 I think). Also check that you > enabled shared libraries on RRDTool (the OpenNMS build is assuming when you > built RRDTool, you did "./configure --enable-shared" and installed in the > default directory). > > Other than that, I'm not sure what to tell you. I ran into the same errors > and had to do much library fiddling to get it right, but my guess is you > don't have an RRDTool shared library (disabled by default in rrdtool > tarballs), or do not have /usr/local/rrdtool-1.0.33/lib in your > LD_LIBRARY_PATH. This is what I have for arch/SunOS.properties(works on Solaris 7 sparc) compile.ld=/usr/ccs/bin/ld postgresql.ldflags=-Bdynamic -G postgresql.otherlibs=/lib/libc.so jnative.ldflags=-Bdynamic -G -R/usr/local/rrdtool-1.0.33/lib install.postgresql.libdir = /opt/OpenNMS/lib I also had to edit build.xml to change the make to gmake in the compile.icmpd target because GNU's make is installed as gmake. In Linux.properties, ldflags are -Bstatic -shared and -Bdynamic -shared which work for GNU's ld. The equivalent of -shared under Sun's ld is the -G option. The -R option specifies a directory for run-time symbol resolution. chris. _______________________________________________ bugs mailing list (bu...@op...) To subscribe, unsubscribe, or change your list options, go to: http://www.opennms.org/mailman/listinfo/bugs |