Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling Dynaloader (dl_open) fails with -Dusesitecustomize #9866

Open
p5pRT opened this issue Sep 9, 2009 · 4 comments
Open

compiling Dynaloader (dl_open) fails with -Dusesitecustomize #9866

p5pRT opened this issue Sep 9, 2009 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Sep 9, 2009

Migrated from rt.perl.org#69072 (status was 'open')

Searchable as RT69072$

@p5pRT
Copy link
Author

p5pRT commented Sep 9, 2009

From gs364@cornell.edu

Created by gs364@cornell.edu

Perl 5.10.1 install
./Customize -d -Dprefix=/opt/perl -Dusesitecustomize

on doing make​:

make[1]​: Leaving directory `/users/gs364/perl-5.10.1/ext/DynaLoader'
Making all in ext/DynaLoader
make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
make[1]​: Entering directory `/users/gs364/perl-5.10.1/ext/DynaLoader'
../../miniperl "-I../../lib" "-I../../lib" DynaLoader_pm.PL DynaLoader.pm
sitecustomize ok
../../miniperl "-I../../lib" "-I../../lib" XSLoader_pm.PL XSLoader.pm
sitecustomize ok
sitecustomize ok
cp XSLoader.pm ../../lib/XSLoader.pm
cp DynaLoader.pm ../../lib/DynaLoader.pm
AutoSplitting ../../lib/DynaLoader.pm (../../lib/auto/DynaLoader)
rm -f DynaLoader.xs
cp dl_dlopen.xs DynaLoader.xs
../../miniperl "-I../../lib" "-I../../lib" ../../lib/ExtUtils/xsubpp -noprototypes -typemap ../../lib/ExtUtils/typemap DynaLoader.xs > DynaLoader.xsc && mv DynaLoader.xsc DynaLoader.c
cc -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.10\" -DXS_VERSION=\"1.10\" "-I../.." -DLIBC="/lib/libc-2.5.so" DynaLoader.c
DynaLoader.c​:1​: error​: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ok’
In file included from ../../perl.h​:676,
  from DynaLoader.xs​:120​:
/usr/include/stdlib.h​:140​: error​: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’
/usr/include/stdlib.h​:455​: error​: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h​:485​: error​: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h​:487​: error​: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h​:589​: error​: expected ‘)’ before ‘__size’

and a ton more compile errors...

Perl Info

Flags:
    category=install
    severity=medium

This perlbug was built using Perl v5.8.8 in the Red Hat build system.
It is being executed now by Perl v5.8.8 - Wed Mar 25 11:12:49 EDT 2009.

Site configuration information for perl v5.8.8:

Configured by Red Hat, Inc. at Wed Mar 25 11:12:49 EDT 2009.

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.6.18-128.1.1.el5, archname=x86_64-linux-thread-multi
    uname='linux hs20-bc1-5.build.redhat.com 2.6.18-128.1.1.el5 #1 smp mon jan 26 13:58:24 est 2009 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Dversion=5.8.8 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Dprivlib=/usr/lib/perl5/5.8.8 -Dsitelib=/usr/lib/perl5/site_perl/5.8.8 -Dvendorlib=/usr/lib/perl5/vendor_perl/5.8.8 -Darchlib=/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi -Dsitearch=/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi -Dvendorarch=/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi -Darchname=x86_64-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_pr!
 oto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto -Dinc_version_list=5.8.7 5.8.6 5.8.5 -Dscriptdir=/usr/bin'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-44)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =''
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'

Locally applied patches:
    


@INC for perl v5.8.8:
    /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.8
    /usr/lib/perl5/site_perl/5.8.7
    /usr/lib/perl5/site_perl/5.8.6
    /usr/lib/perl5/site_perl/5.8.5
    /usr/lib/perl5/site_perl
    /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.8
    /usr/lib/perl5/vendor_perl/5.8.7
    /usr/lib/perl5/vendor_perl/5.8.6
    /usr/lib/perl5/vendor_perl/5.8.5
    /usr/lib/perl5/vendor_perl
    /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
    /usr/lib/perl5/5.8.8
    .


Environment for perl v5.8.8:
    HOME=/users/e-prints
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/common/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Sep 10, 2009

From @nwc10

Thanks for the bug report

On Wed, Sep 09, 2009 at 02​:23​:09PM -0700, gs364@​cornell.edu (via RT) wrote​:

[Please enter your report here]

Perl 5.10.1 install
./Customize -d -Dprefix=/opt/perl -Dusesitecustomize

../../miniperl "-I../../lib" "-I../../lib" ../../lib/ExtUtils/xsubpp -noprototypes -typemap ../../lib/ExtUtils/typemap DynaLoader.xs > DynaLoader.xsc && mv DynaLoader.xsc DynaLoader.c
cc -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.10\" -DXS_VERSION=\"1.10\" "-I../.." -DLIBC="/lib/libc-2.5.so" DynaLoader.c
DynaLoader.c​:1​: error​: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???ok???
In file included from ../../perl.h​:676,
from DynaLoader.xs​:120​:
/usr/include/stdlib.h​:140​: error​: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???__ctype_get_mb_cur_max???
/usr/include/stdlib.h​:455​: error​: expected declaration specifiers or ???...??? before ???size_t???
/usr/include/stdlib.h​:485​: error​: expected declaration specifiers or ???...??? before ???size_t???
/usr/include/stdlib.h​:487​: error​: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h​:589​: error​: expected ???)??? before ???__size???

and a ton more compile errors...

Please could you send us the output from running ./myconfig in the build tree,
and the file ext/DynaLoader/DynaLoader.c ?

Your build output doesn't remind me of anything I've seen before, so I don't
think that we're going to be able to reproduce it without more clues.

Nicholas Clark

@p5pRT
Copy link
Author

p5pRT commented Sep 10, 2009

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Sep 10, 2009

From @doughera88

On Thu, 10 Sep 2009, Nicholas Clark wrote​:

Thanks for the bug report

On Wed, Sep 09, 2009 at 02​:23​:09PM -0700, gs364@​cornell.edu (via RT) wrote​:

[Please enter your report here]

Perl 5.10.1 install
./Customize -d -Dprefix=/opt/perl -Dusesitecustomize

../../miniperl "-I../../lib" "-I../../lib" ../../lib/ExtUtils/xsubpp -noprototypes -typemap ../../lib/ExtUtils/typemap DynaLoader.xs > DynaLoader.xsc && mv DynaLoader.xsc DynaLoader.c
cc -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.10\" -DXS_VERSION=\"1.10\" "-I../.." -DLIBC="/lib/libc-2.5.so" DynaLoader.c
DynaLoader.c​:1​: error​: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???ok???
In file included from ../../perl.h​:676,
from DynaLoader.xs​:120​:
/usr/include/stdlib.h​:140​: error​: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???__ctype_get_mb_cur_max???
/usr/include/stdlib.h​:455​: error​: expected declaration specifiers or ???...??? before ???size_t???
/usr/include/stdlib.h​:485​: error​: expected declaration specifiers or ???...??? before ???size_t???
/usr/include/stdlib.h​:487​: error​: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h​:589​: error​: expected ???)??? before ???__size???

and a ton more compile errors...

Please could you send us the output from running ./myconfig in the build tree,
and the file ext/DynaLoader/DynaLoader.c ?

I wonder -- is miniperl running $sitelib/sitecustomize.pl? It probably
shouldn't. What is in $sitelib/sitecustomize.pl?

--
  Andy Dougherty doughera@​lafayette.edu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants