Solaris 10 and "embedded perl support broken"

Raphaël 'SurcouF' Bordet <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I'm trying to compile net-snmp 5.3.0.1 under Solaris 10 with some perl
support. Without perl modules and embedded perl supports, I was already
successfully compiled net-snmp. SUN is providing perl with Solaris 10 and
its was compiled using Sun CC and not GCC.

I've already resolve some compiling issues like add -m64 (to force gcc to
generate 64 bits executables) and -D_LP64 (to force 64 bits mode, needed
by -D_FILE_OFFSET_BITS=64 when including /usr/include/sys/swap.h) but now
the compile was stopped by this following message:

---8<---8<---8<---
making all in /var/tmp/net-snmp/net-snmp-5.3.0.1/agent/mibgroup
gmake[2]: Entering directory
`/var/tmp/net-snmp/net-snmp-5.3.0.1/agent/mibgroup'
gmake[2]: Leaving directory
`/var/tmp/net-snmp/net-snmp-5.3.0.1/agent/mibgroup'
/bin/sh ../libtool  --mode=compile gcc -I../include -I. -I../agent
-I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include
-I/usr/sfw/include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_TS_ERRNO  -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE   -m64 -D_LP64
-Dsolaris2  -c -o snmp_perl.lo snmp_perl.c
rm -f .libs/snmp_perl.lo
gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib
-I/usr/local/ssl/include -I/usr/sfw/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_TS_ERRNO
-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -m64 -D_LP64 -Dsolaris2 -c
snmp_perl.c  -fPIC -DPIC -o .libs/snmp_perl.lo
snmp_perl.c:88:2: #error embedded perl broken
gmake[1]: *** [snmp_perl.lo] Error 1
gmake[1]: Leaving directory `/var/tmp/net-snmp/net-snmp-5.3.0.1/agent'
gmake: *** [subdirs] Error 1
---8<---8<---8<---

I was raw I need to look my config.log to have more informations on why
this support is broken.
In this file I've attached on this mail, I've discovered than many tests
are failed like this following (I've attached needed confdefs.c):

$ gcc -o conftest -m64 -D_LP64 -I/usr/local/ssl/include
-I/usr/sfw/include -L/usr/local/ssl/lib -L/usr/sfw/lib/sparcv9 -static
conftest2.c
ld: fatal: library -lc: not found
ld: fatal: library -lc: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status

If anyone already have successfully compiled net-snmp under sol10 with
embedded perl support (or just perl modules), I'll pleased to have his
solution.

Regards,

-- 
Raphaël 'SurcouF' Bordet

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
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
conftest2.c (text/x-csrc, 1.3 KB)
/* confdefs.h.  */

#define PACKAGE_NAME "Net-SNMP"
#define PACKAGE_TARNAME "net-snmp"
#define PACKAGE_VERSION "5.3.0.1"
#define PACKAGE_STRING "Net-SNMP 5.3.0.1"
#define PACKAGE_BUGREPORT "[email protected]"
#define CONFIGURE_OPTIONS "'--prefix=/usr/local/' '--without-defaults' '--enable-shared' '--with-ar=gar' '--with-transports=UDP TCP Unix' '--with-perl-modu
les' '--enable-embedded-perl' '--with-mib-modules=host ucd-snmp/diskio disman/event-mib ucd-snmp/lmSensors agentx mibII/mta_sendmail' '--with-sys-contact=adm
[email protected]' '--with-sys-location=Federateur Intradef' '--disable-scripts' '--disable-snmpv1' '--disable-snmpv2c' '--disable-snmptrapd-subage
nt' '--without-rpm' 'CFLAGS=-m64 -D_LP64' 'CPPFLAGS=-I/usr/sfw/include' 'CPP=/usr/sfw/bin/cpp' 'LDFLAGS=-L/usr/sfw/lib/sparcv9'"
#define DISABLE_SNMPV1 1
#define DISABLE_SNMPV2C 1
#define SCAPI_AUTHPRIV 1
#define SNMPTRAPD_DISABLE_AGENTX 1
#define NO_DUMMY_VALUES 1
#define OPAQUE_SPECIAL_TYPES 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
config.log.gz (application/x-gzip, 42.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.