Re: Problem building net-snmp 5.7.1 with embedded Perl support (no large files) on Solaris 10
Joel Hansell <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAChT3ktqWxS7ZWr495KpZ3a0y81Fo1B1KObAfWx6S6LTCp4nTw@mail.gmail.com> |
On Tue, Jan 17, 2012 at 1:46 AM, Thomas Anders <[email protected]> wrote: > Joel Hansell wrote: >> However, when running "make" I get the below sequence of errors and >> the build terminates. > > Interesting. Thanks for the report. > >> Is this a bug in the configure environment for Solaris, or am I doing >> something wrong with my config flags? Would a switch to GCC help? (I'd >> rather avoid that though.) > > Yes, please try with gcc instead of cc and report back. Hi Thomas, Thanks for your reply. I managed to get GCC 3.4.6 up and running, but unfortunately I got the same result. I first re-built Perl with GCC, then tried to use that Perl binary in compiling net-snmp with embedded perl. I pass the configure stage without errors, so I guess my problem is unrelated to my Perl binary. Make fails on the same stage as before (when building the net-snmp Perl libs, looks like?). Please let me know if you need any more information about my specific system and I'll gladly provide it. # uname -a SunOS <hostname> 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V440 # which make /usr/ccs/bin/make # gcc -v Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 # make [...] AutoSplitting ../blib/lib/NetSNMP/OID.pm (../blib/lib/auto/NetSNMP/OID) /opt/ericsson/prmc_netsnmp/perl/bin/perl /opt/ericsson/prmc_netsnmp/perl/lib/5.14.2/ExtUtils/xsubpp -prototypes -typemap /opt/ericsson/prmc_netsnmp/perl/lib/5.14.2/ExtUtils/typemap -typemap typemap OID.xs > OID.xsc && mv OID.xsc OID.c gcc -c -I../../include -fno-strict-aliasing -g -O2 -Usolaris2 -Dsolaris2=solaris2 -fno-strict-aliasing -pipe -I/usr/local/include -DPERL_USE_SAFE_PUTENV -I/opt/ericsson/prmc_netsnmp/perl/lib/5.14.2/sun4-solaris/CORE -I/usr/local/ssl//include -I. -I/opt/ericsson/prmc_netsnmp/include -fno-strict-aliasing -pipe -I/usr/local/include -DPERL_USE_SAFE_PUTENV -O -DVERSION=\"5.0701\" -DXS_VERSION=\"5.0701\" -fPIC "-I/opt/ericsson/prmc_netsnmp/perl/lib/5.14.2/sun4-solaris/CORE" OID.c OID.xs: In function `__snprint_value': OID.xs:69: error: dereferencing pointer to incomplete type OID.xs:69: error: dereferencing pointer to incomplete type OID.xs:70: error: dereferencing pointer to incomplete type OID.xs:71: error: dereferencing pointer to incomplete type OID.xs: In function `XS_netsnmp_oidPtr_get_indexes': OID.xs:278: error: dereferencing pointer to incomplete type OID.xs:283: error: dereferencing pointer to incomplete type OID.xs:284: error: dereferencing pointer to incomplete type OID.xs:284: error: dereferencing pointer to incomplete type OID.xs:299: error: dereferencing pointer to incomplete type OID.xs:299: error: dereferencing pointer to incomplete type OID.xs:301: error: dereferencing pointer to incomplete type OID.xs:312: error: dereferencing pointer to incomplete type OID.xs:312: error: dereferencing pointer to incomplete type OID.xs:321: error: dereferencing pointer to incomplete type OID.xs:321: error: dereferencing pointer to incomplete type OID.xs:324: error: dereferencing pointer to incomplete type OID.xs:332: error: dereferencing pointer to incomplete type OID.xs:342: error: dereferencing pointer to incomplete type OID.xs:342: error: dereferencing pointer to incomplete type OID.xs:343: error: dereferencing pointer to incomplete type OID.xs:343: error: dereferencing pointer to incomplete type OID.xs:344: error: dereferencing pointer to incomplete type OID.xs:349: error: dereferencing pointer to incomplete type *** Error code 1 make: Fatal error: Command failed for target `OID.o' Current working directory /home/ejoehan/netsnmp/sparc/net-snmp-5.7.1/perl/OID *** Error code 1 The following command caused the error: cd OID && make -f Makefile all LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O" PREFIX="/opt/ericsson/prmc_netsnmp/perl" make: Fatal error: Command failed for target `subdirs' Current working directory /home/ejoehan/netsnmp/sparc/net-snmp-5.7.1/perl *** Error code 1 The following command caused the error: (cd perl ; make LD_RUN_PATH="/opt/ericsson/prmc_netsnmp/lib:`/opt/ericsson/prmc_netsnmp/perl/bin/perl -e 'use Config; print qq($Config{archlibexp}/CORE);'`") ; \ if test $? != 0 ; then \ exit 1 ; \ fi make: Fatal error: Command failed for target `perlmodules' ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ 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