[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-1600099 ] 5.4+ on AIX: embedded Perl build fails w/
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2009-02-16 20:27:21
Message-ID: E1LZA3l-00061A-5P () h45xhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #1600099, was opened at 2006-11-20 16:43
Message generated for change (Comment added) made by hardaker
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1600099&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: perl
Group: aix
> Status: Closed
> Resolution: Wont Fix
Priority: 4
Private: No
Submitted By: Thomas Anders (tanders)
Assigned to: Thomas Anders (tanders)
Summary:  5.4+ on AIX: embedded Perl build fails w/ xlc

Initial Comment:
After having successfully built net-snmp 5.4.rc2 on AIX 5.3 *with* shared libraries \
(requiring patches that haven't been accepted for 5.4 yet), I've tried to build with \
embedded perl enabled which ends up here:

 /usr/vac/bin/xlc -I../include -I/home/anders/src/net-snmp-5.4cvsaix/include -I.
-I../agent -I/home/anders/src/net-snmp-5.4cvsaix/agent -I../agent/mibgroup
-I/home/anders/src/net-snmp-5.4cvsaix/agent/mibgroup -I../snmplib
-I/home/anders/src/net-snmp-5.4cvsaix/snmplib -I/my/libopenssl097/include
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE -DNETSNMP_ENABLE_IPV6 -O2 -qro
-qroconst -qmaxmem=-1 -qarch=ppc -Daix5=aix5 -c
/home/anders/src/net-snmp-5.4cvsaix/agent/snmp_perl.c  -DPIC -o .libs/snmp_perl.o
"/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/reentr.h", line 619.16: 1506-007
(S) "struct drand48_data" is undefined.
"/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/reentr.h", line 727.16: 1506-007
(S) "struct random_data" is undefined.
"/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/reentr.h", line 775.16: 1506-007
(S) "struct random_data" is undefined.
"/home/anders/src/net-snmp-5.4cvsaix/agent/snmp_perl.c", line 20.23: 1506-280
(W) Function argument assignment between types "void(*)(struct
interpreter*,struct cv*)" and "void(*)(struct cv*)" is not allowed.
"/home/anders/src/net-snmp-5.4cvsaix/agent/snmp_perl.c", line 50.29: 1506-280
(W) Function argument assignment between types "void(*)(struct interpreter*)"
and "void(*)(void)" is not allowed.
gmake[1]: *** [snmp_perl.lo] Error 1
gmake[1]: Leaving directory `/home/anders/build/5.4cvsaix/yawara/agent'

(see thread " 5.4 embedded perl build fails on AIX" on net-snmp-coders starting at \
2006-11-14)

This is with Perl 5.8.2, obviously.

----------------------------------------------------------------------

> Comment By: Wes Hardaker (hardaker)
Date: 2009-02-16 12:27

Message:
Closing since problem and solution is documented in the readme

----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2007-06-11 03:13

Message:
Logged In: YES 
user_id=848638
Originator: YES

Now documented in README.aix (see SVN Rev. 16523).

----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2007-05-30 15:56

Message:
Logged In: YES 
user_id=848638
Originator: YES

The problem is due to the fact that Net-SNMP gets compiled with xlc here,
but Perl has been compiled with cc_r. Compiling both with cc_r does the
trick.

Is it worth introducing an explicit configure check for this combination
or is it considered enough to document it  in README.aix?

----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2007-05-30 01:12

Message:
Logged In: YES 
user_id=848638
Originator: YES

Here's the "perl -V" output:

Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=aix, osvers=5.2.0.0, archname=aix-thread-multi
    uname='aix animals 2 5 000709cf4c00 '
    config_args=''
    hint=previous, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong'
    ccversion='5.0.2.0', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -brtl -b32 -bmaxdata:0x80000000'
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lpthreads -lc_r -lcrypt -lbsd
-lPW
    perllibs=-lbind -lnsl -ldl -lld -lm -lpthreads -lc_r -lcrypt -lbsd
-lPW
    libc=/lib/libc.a, so=a, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp
-bE:$(BASEEXT).exp -bnoentry -lpthreads -lc_r'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        SUIDPERLIO1 - fix PERLIO_DEBUG buffer overflow (CAN-2005-0156)
        SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
  Built under aix
  Compiled at Jan 26 2006 14:30:41
  @INC:
    /usr/opt/perl5/lib/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/5.8.2
    /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.2
    /usr/opt/perl5/lib/site_perl
    .


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1600099&group_id=12694

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic