develooper Front page | perl.perl5.porters | Postings from April 2007

[perl #42284] AIX/gcc Build fails on threaded perl

From:
aksoe1
Date:
April 3, 2007 14:00
Subject:
[perl #42284] AIX/gcc Build fails on threaded perl
Message ID:
rt-3.6.HEAD-1687-1175599634-1252.42284-75-0@perl.org
# New Ticket Created by  aksoe1 
# Please include the string:  [perl #42284]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42284 >


This is a bug report for perl from eric.aksomitis@sasktel.sk.ca,
generated with the help of perlbug 1.35 running under perl v5.8.7.


-----------------------------------------------------------------
[Please enter your report here]
NOTE:  This data from perlbug is not accurate as far as perl version, as
my issue is a compile issue.  The OS information is however accurate.

When I configure perl on AIX, answering all default questions except
the compiler (which I set to gcc), it works.

When I answer the same defaults, with the exception of building with 
threads,
the compile fails.  It occurs on perl 5.8.7,5.8.8,5.9.4, using AIX 5.2 and 
5.3
It fails using gcc 3.3.2 and 4.0.0 ( both rpm's supplied from IBM's 
website for gcc ).

The error is as follows:
make
        `sh  cflags "optimize='-O'" miniperlmain.o`  miniperlmain.c
          CCCMD =  gcc -DPERL_CORE -c -D_ALL_SOURCE -D_ANSI_C_SOURCE 
-D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT 
-fno-strict-aliasing -pipe -D_LARGE_FILES  -O  -Wall -W -Wendif-labels
In file included from op.h:554,
                 from perl.h:3189,
                 from miniperlmain.c:36:
reentr.h:764: error: field `_srandom_struct' has incomplete type
make: 1254-004 The error code from the last command is 1.


Stop.



[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.8.7:

Configured by aksoe1 at Tue Dec 27 09:20:01 CST 2005.

Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
  Platform:
    osname=aix, osvers=5.2.0.0, archname=aix
    uname='aix thor 2 5 00c4f3bf4c00 '
    config_args='-Dcc=gcc -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE 
-DUSE_NATIVE_DLOPEN -fno-strict-aliasing -pipe -D_LARGE_FILES',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE 
-DUSE_NATIVE_DLOPEN -fno-strict-aliasing -pipe'
    ccversion='', gccversion='3.3.2', gccosandvers='aix5.2.0.0'
    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='gcc', ldflags =' -Wl,-brtl -Wl,-bdynamic -Wl,-bmaxdata:0x80000000 
-Wl,-b32'
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lc -lbsd
    perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lc -lbsd
    libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker 
-bE:/usr/local/lib/perl5/5.8.7/aix/CORE/perl.exp'
    cccdlflags=' ', lddlflags='  -Wl,-bhalt:4 -Wl,-bexpall -Wl,-G 
-Wl,-bnoentry -lc'

Locally applied patches:
 

---
@INC for perl v5.8.7:
    /usr/local/lib/perl5/5.8.7/aix
    /usr/local/lib/perl5/5.8.7
    /usr/local/lib/perl5/site_perl/5.8.7/aix
    /usr/local/lib/perl5/site_perl/5.8.7
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.8.7:
    HOME=/
    LANG=en_US
    LANGUAGE (unset)
    LC__FASTMSG=true
    LD_LIBRARY_PATH (unset)
    LIBPATH (unset)
    LOGDIR (unset)
 
PATH=/usr/sicustom/bin/:/usr/java131/bin:/usr/java131/bin:/usr/java14/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/opt/freeware/bin:/opt/freeware/sbin:/usr/sicustom/bin:/usr/lpp/cics/bin:/usr/lpp/dce/bin:/usr/lpp/encina/bin:.::/usr/local/bin:.::/usr/opt/ifor/ls/os/aix/bin:/usr/lpp/cics/bin:/usr/lpp/dce/bin:/usr/lpp/encina/bin:.::/usr/local/bin:.::/usr/opt/ifor/ls/os/aix/bin
    PERL_BADLANG (unset)
    SHELL=/usr/bin/ksh




NOTICE:  This confidential e-mail message is only for the intended 
recipient(s). If you are not the intended recipient, be advised that 
disclosing, copying, distributing, or any other use of this message, is 
strictly prohibited. In such case, please destroy this message and notify 
the sender.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About