I was able to find another Solaris server to try this on this afternoon. Also 5.10. Tried with with bash and /usr/xpg4/bin/sh and got same results with both as I got with the first server (see below).
Any ideas? Thanks for the assist. Mike Lomax Principal Systems Engineer, Advanced Technology Solutions Office (909) 379-0669 Cell (951) 206-5852 michael.lo...@quadramed.com Register Now for QuadraMed's 2012 User Group Conference, July 21 - 24, San Francisco, CA Visit www.portal.quadramed.com/ug12 <http://www.portal.quadramed.com/ug12> From: Lomax, Michael P. Sent: Tuesday, June 05, 2012 6:32 PM To: 'Niels Baggesen' Cc: net-snmp-coders Subject: RE: Solaris libtool Error on Make My first email in this thread was running the make in bash (note the prompt). I also am running the configure using a script that specifies bash and my preferred options. I learned about these things several months back when attempting the build on AIX. Just to repeat, here is the original bash response to `make`: bash-3.00# make making all in /mpl/net-snmp-5.7.2.pre1/snmplib make[1]: Entering directory `/mpl/net-snmp-5.7.2.pre1/snmplib' /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../snmplib -fno-strict-aliasing -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c -o snmp_client.lo snmp_client.c ../libtool: bad substitution make[1]: *** [snmp_client.lo] Error 1 make[1]: Leaving directory `/mpl/net-snmp-5.7.2.pre1/snmplib' make: *** [subdirs] Error 1 bash-3.00# /usr/local/bin/bash make bash: /usr/local/bin/bash: No such file or directory bash-3.00# bash make /usr/local/bin/make: /usr/local/bin/make: cannot execute binary file bash-3.00# I tried running the configure and make using several both sh and bash ensuring that the shell was actually used by the command with the same results. I also did start fresh and tried using the /usr/xpg4/bin/sh and this did give a different result: # make gcc -E -Iinclude -I./include -I./agent/mibgroup -I. -I. -DDONT_INC_STRUCTS -DBINDIR=/usr/local/net-snmp/bin -x c ./sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript echo 's/VERSIONINFO/5.7.2.pre1/g' >> sedscript echo 's#DATADIR#/usr/local/net-snmp/data#g' >> sedscript echo 's#LIBDIR#/usr/local/net-snmp/lib#g' >> sedscript echo 's#BINDIR#/usr/local/net-snmp/bin#g' >> sedscript echo 's#PERSISTENT_DIRECTORY#/usr/local/net-snmp/ucd-snmp#g' >> sedscript echo 's#SYSCONFDIR#/usr/local/net-snmp/etc#g' >> sedscript /usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf making all in /mpl/net-snmp-5.7.2.pre1/snmplib make[1]: Entering directory `/mpl/net-snmp-5.7.2.pre1/snmplib' /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../snmplib -fno-strict-aliasing -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c -o snmp_client.lo snmp_client.c ../libtool: syntax error at line 348: `}' unexpected make[1]: *** [snmp_client.lo] Error 2 make[1]: Leaving directory `/mpl/net-snmp-5.7.2.pre1/snmplib' make: *** [subdirs] Error 1 # exit sh-3.00# This one was a little more understandable to me. I searched a bit in the libtool file but could not find what was causing the '}' to be unexpected. I also tried it fresh a second time with the same result. Also went back and tried a fresh build with 5.7.1 again using /usr/xpg4/bin/sh and got the same '}' syntax error. Does seem unusual that I would get this and others would not. I also did not see this when I previously built on AIX. Any further guidance would again be much appreciated. THANKS Mike Lomax Principal Systems Engineer, Advanced Technology Solutions Office (909) 379-0669 Cell (951) 206-5852 michael.lo...@quadramed.com Register Now for QuadraMed's 2012 User Group Conference, July 21 - 24, San Francisco, CA Visit www.portal.quadramed.com/ug12 -----Original Message----- From: Niels Baggesen [mailto:ni...@baggesen.net] Sent: Tuesday, June 05, 2012 1:56 PM To: Lomax, Michael P. Cc: net-snmp-coders Subject: Re: Solaris libtool Error on Make Den 05-06-2012 22:16, Niels Baggesen skrev: > Den 05-06-2012 21:39, Lomax, Michael P. skrev: >> You are right... I did not... Sorry... >> >> Version is 5.10 and PATH is >> /usr/sbin:/usr/bin:/usr/openwin/bin:/usr/X11/bin:.:/usr/local/bin > > Ah, I think I see the problem ... libtool does not like /bin/sh on Solaris. > > Do you have bash available? Could you try configuring with SHELL=/bin/bash ? Another option is /usr/xpg4/bin/sh which should be available and ought to work. Did you specify a non-standard shell when running configure? /Niels -- Niels Baggesen -- @home -- Ã…rhus -- Denmark -- ni...@baggesen.net <mailto:ni...@baggesen.net> The purpose of computing is insight, not numbers -- R W Hamming CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
<<image001.gif>>
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders