On 4/19/06, Robert Story wrote:
> On Tue, 4 Apr 2006 12:24:40 -0600 V wrote:
> VZ> Hello,
> VZ> compiling of net-snmp 5.1.4 on Unixware 7.1.1 fails with the followin=

g
> VZ> error:
>
> VZ> making all in /home/net-snmp-5.1.4/snmplib
> VZ> /bin/sh ../libtool --mode=3Dlink gcc -g -O2 -Dsysv5UnixWare7
> VZ> -rpath /usr/local/net-snmp/lib -version-info 8:0:0 -o libnetsnmp.la
> VZ> rm -fr .libs/libnetsnmp.la .libs/libnetsnmp.* .libs/libnetsnmp.*
> VZ> /usr/ccs/bin/ld -G -h libnetsnmp.so.8 -o .libs/libnetsnmp.so.8.0.0
> VZ> UX:ld: ERROR: command line: fatal error: no files on input command li=

ne
>
> Odd, it looks like it skipped building any objects in snmplib, and went
> straight to linking. What happens if you cd to snmplib and run make?
>


Thanks for the reply.
I figured this part out, stock SCO make does not work properly, I had
to install gmake.
Now build fails with the following error:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
UX:acomp: ERROR: "snmp-tc.c", line 169: undefined struct/union member: tm_g=
mtoff
UX:acomp: WARNING: "snmp-tc.c", line 173: improper member use: tm_gmtoff
UX:acomp: WARNING: "snmp-tc.c", line 174: improper member use: tm_gmtoff
gmake[1]: *** [snmp-tc.lo] Error 1
gmake[1]: Leaving directory `/root/net-snmp-5.1.4/snmplib'
gmake: *** [subdirs] Error 1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
line 167 of snmplib/snmp-tc.c has
#define timezone tm_p->tm_gmtoff
although in config.log I found
configure:25714: checking for tm.tm_gmtoff
configure:25760: cc -c -g -Dsysv5UnixWare7 conftest.c >&5
UX:acomp: ERROR: "conftest.c", line 221: undefined struct/union member: tm_=
g
mtoff
configure:25766: $? =3D 1

configure:25801: result: no

As I'm not a developer, please excuse my ignorance, but I simply
commented that line out.
The build failed again little later with the error
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
cc -I../../include -I../../include -I. -I../.. -I. -I./../..
-I./../../snmplib -I./.. -I.. -g -Dsysv5UnixWare7 -c mibII/at.c -KPIC
-DPIC -o mibII/.libs/at.lo
UX:acomp: WARNING: "mibII/at.c", line 312: statement not reached
UX:acomp: ERROR: "mibII/at.c", line 559: incomplete struct/union/enum
arptab: sizeof()
UX:acomp: ERROR: "mibII/at.c", line 568: incomplete struct/union/enum
arptab: sizeof()
UX:acomp: ERROR: "mibII/at.c", line 765: cannot do pointer arithmetic
on operand of unknown size
UX:acomp: ERROR: "mibII/at.c", line 767: undefined struct/union member: at_=
flags
UX:acomp: WARNING: "mibII/at.c", line 769: improper member use: at_flags
UX:acomp: ERROR: "mibII/at.c", line 770: undefined struct/union member: at_=
iaddr
UX:acomp: WARNING: "mibII/at.c", line 770: left operand of "." must be
struct/union object
gmake[2]: *** [mibII/at.lo] Error 1
gmake[2]: Leaving directory `/root/net-snmp-5.1.4/agent/mibgroup'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/root/net-snmp-5.1.4/agent'
gmake: *** [subdirs] Error 1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
Well, this is way above my head. Does anybody have any idea how to fix it?
TIA
--
Vlad Z


-------------------------------------------------------
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