Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3ACCE0A7.CFEF9A63@iss.net> Date: Thu, 05 Apr 2001 17:16:23 -0400 From: "Michael J. Slifcak" X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.1-0.1.9 i686) X-Accept-Language: en MIME-Version: 1.0 To: net-snmp-coders AT lists DOT sourceforge DOT net, cygwin AT cygwin DOT com Subject: Building perl SNMP module fails on cygwin Content-Type: multipart/mixed; boundary="------------14AEE9103CE97C3F7AC2618D" --------------14AEE9103CE97C3F7AC2618D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit The latest version ucd-snmp (4.2.1) builds and installs, but the associated perl SNMP module fails to build. Apparently the most recently available gcc compiler from cygwin doesn't like the definition of timercmp in /usr/include/sys/time.h. Repeat-By: 1. install/upgrade Cygwin (see http://sources.redhat.com/cygwin/, please use a mirror site!) [I've run setup and accepted all changes. Cygwin services(inetd) was not running. Upgrade succeeded.] 2. download latest net-snmp tarball http://www.net-snmp.org/ Click Download Click on ucd-snmp-4.2.1.tar.gz Save file 3. tar xzf ucd-snmp-4.2.1.tar.gz 4. cd ucd-snmp-4.2.1; ./configure; make test; make install [files copied to /usr/local/{bin,lib,share/snmp,include}] 5. cd perl/SNMP; perl Makefile.PL; make [trace of this attached] Thanks! -Mike Slifcak, Internet Security Systems, Inc. --------------14AEE9103CE97C3F7AC2618D Content-Type: text/plain; charset=us-ascii; name="perlmake.errs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="perlmake.errs" bash 2.04$ gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-2/specs gcc version 2.95.3-2 (cygwin special) bash 2.04$ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for SNMP bash 2.04$ make cp SNMP.pm blib/lib/SNMP.pm AutoSplitting blib/lib/SNMP.pm (blib/lib/auto/SNMP) /usr/bin/perl -I/usr/lib/perl5/5.6.1/cygwin -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap SNMP.xs > SNMP.xsc && mv SNMP.xsc SNMP.c gcc -c -I/usr/local/include -DPERL_USE_SAFE_PUTENV -DHAS_SBRK_PROTO -fno-strict-aliasing -DUSEIMPORTLIB -O2 -DVERSION=\"4.2.0\" -DXS_VERSION=\"4.2.0\" -I/usr/lib/perl5/5.6.1/cygwin/CORE SNMP.c SNMP.xs: In function `__recalc_timeout': SNMP.xs:262: parse error before `>' SNMP.xs: At top level: SNMP.xs:266: parse error before `}' make: *** [SNMP.o] Error 1 bash 2.04$ grep -n timercmp SNMP.xs 262: if (timercmp(tvp, ctvp, >) || !timerisset(tvp)) { --------------14AEE9103CE97C3F7AC2618D Content-Type: text/plain; charset=us-ascii; name="cygcheck.out" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cygcheck.out" [Output modified to follow security policya] Cygnus Win95/NT Configuration Diagnostics Current System Time: Thu Apr 5 16:30:04 2001 WinNT Ver 5.0 build 2195 Service Pack 1 Path: /usr/local/bin /usr/bin //c/perl/bin //c/program files/sysinternals utilities //c/winnt/system32 //c/winnt SysDir: C:\WINNT\System32 WinDir: C:\WINNT PWD = `ucd-snmp-4.2.1/perl/SNMP' CYGWIN = `binmode' MAKE_MODE = `unix' NUMBER_OF_PROCESSORS = `1' COMSPEC = `C:\WINNT\system32\cmd.exe' PAGER = `less' !C: = `C:\cygwin\bin' SYSTEMDRIVE = `C:' PROCESSOR_REVISION = `0801' PATHEXT = `.COM;.EXE;.BAT;.CMD;.JS;.JSE' COMPUTERNAME = `yes' WINDIR = `C:\WINNT' MANPATH = `/usr/local/man:/usr/man' MACHTYPE = `i686-pc-cygwin' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 1, GenuineIntel' OS = `Windows_NT' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_LEVEL = `6' SYSTEMROOT = `C:\WINNT' SHLVL = `1' SHELL = `/bin/bash' HOSTTYPE = `i686' OSTYPE = `cygwin' TERM = `vt100' _ = `/usr/bin/cygcheck' TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2' HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x00000022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 (default) = `C:' unix = `/' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions (default) = (unsupported type) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Installed Components\C:/cygwin (default) = `20000627' bash = `0002.0004.0001' binutils = `20000625' bison = `0000' byacc = `0000' bzip = `0000' clear = `0001.0000' cygwin = `0001.0001.0002' dejagnu = `0000' diff = `0000' expect = `0000' fileutils = `0000' findutils = `0000' flex = `0000' gawk = `0003.0000.0004' gcc = `0002.0095.0002.0002' gdb = `20000610' gperf = `0000' grep = `0000' groff = `0001.011a.0001' gzip = `0000' inetutils = `0001.0003.0002.0002' less = `0000' libpng = `0001.0000.0006.0001' login = `0001.0002' m = `0000' make = `0003.0079.0003' man = `0001.005g.0002' patch = `0000' sed = `0003.0002.0001' shellutils = `0000' tar = `0000' tcltk = `20000610' termcap = `20000618.0001' texinfo = `0000' textutils = `0000' time = `0000' zlib = `0001.0001.0003.0001' crypt = `0001.0000' mt = `0001.0009.0001' newlib = `0man.20001013' opengl = `0001.0001.0000.0002' openssh = `0002.0002.00p1' openssl = `0000.0009.005a' vim = `0005.0007.0004' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:/cygwin/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:/cygwin/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A c: hd NTFS 7859Mb 78% CP CS UN PA FC d: cd N/A N/A C:\cygwin\bin /usr/bin system binmode C:\cygwin\lib /usr/lib system binmode C:\cygwin / system binmode Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe 56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0 "cygbz21.0.dll" v0.0 ts=2000/11/20 18:53 82k 2001/01/21 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2001/1/21 15:39 18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2000/10/22 22:26 17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2001/1/6 23:34 14k 2000/10/23 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0 "cygintl.dll" v0.0 ts=2000/10/23 15:02 81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0 "cygitcl30.dll" v0.0 ts=2000/11/25 20:43 35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0 "cygitk30.dll" v0.0 ts=2000/11/25 20:43 45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0 "cygjbig1.dll" v0.0 ts=2000/10/22 19:06 119k 2000/10/23 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0 "cygjpeg6b.dll" v0.0 ts=2000/10/22 20:58 53k 2001/01/21 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2001/1/21 15:39 414k 2001/01/21 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++5.dll" v0.0 ts=2001/1/21 15:40 299k 2001/01/21 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2001/1/21 15:38 34k 2001/01/21 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2001/1/21 15:38 163k 2001/02/03 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0 "cygpng2.dll" v0.0 ts=2001/2/3 16:21 108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2001/1/6 23:34 390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=2000/11/25 20:39 5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=2000/11/25 20:39 243k 2000/10/23 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0 "cygtiff3.dll" v0.0 ts=2000/10/22 21:14 623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=2000/11/25 20:43 41k 2000/11/20 C:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0 "cygXpm-noX4.dll" v0.0 ts=2000/11/19 21:41 45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0 "cygXpm-X4.dll" v0.0 ts=2000/11/19 21:45 49k 2001/02/03 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2001/2/3 15:35 615k 2001/01/31 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2001/1/31 10:08 Cygwin DLL version info: dll major: 1001 dll minor: 8 dll epoch: 19 dll bad signal mask: 19005 dll old termios: 5 dll malloc env: 28 api major: 0 api minor: 34 shared data: 3 dll identifier: cygwin1 mount registry: 2 cygnus registry name: Cygnus Solutions cygwin registry name: Cygwin program options name: Program Options cygwin mount registry name: mounts v2 cygdrive flags: cygdrive flags cygdrive prefix: cygdrive prefix cygdrive default prefix: build date: Wed Jan 31 10:08:38 EST 2001 shared id: cygwin1S3 Use -h to see help about each section --------------14AEE9103CE97C3F7AC2618D Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple --------------14AEE9103CE97C3F7AC2618D--