Subject: pkg/33751: perl isn't compiled under x86_64 RedHat Enterprise Linux 4
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 06/16/2006 13:50:00
>Number:         33751
>Category:       pkg
>Synopsis:       perl isn't compiled under x86_64 RedHat Enterprise Linux 4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 16 13:50:00 +0000 2006
>Originator:     Alexey Lebedev
>Release:        Unfortunately we're using linux
Fligh Star
Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 x86_64 x86_64 x86_64 GNU/Linux
This is log of bmake in inside /usr/pkgsrc/lang/perl5

avl@jupiter:/usr/pkgsrc/lang/perl5$ sudo bmake clean
===> Cleaning for perl-5.8.8nb2
avl@jupiter:/usr/pkgsrc/lang/perl5$ sudo bmake
===> Checking for vulnerabilities in perl-5.8.8nb2
=> Checksum SHA1 OK for perl-5.8.8.tar.bz2.
=> Checksum RMD160 OK for perl-5.8.8.tar.bz2.
===> Installing dependencies for perl-5.8.8nb2
The supported build options for this package are:


You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

        PKG_OPTIONS.perl = -threads

The following variables will affect the build process of this package,
perl-5.8.8nb2.  Their current value is shown below:

        * PERL5_SITEPREFIX (defined)

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/pkg/bin/bmake clean' after
the changes.
===> Overriding tools for perl-5.8.8nb2
===> Extracting for perl-5.8.8nb2
===> Patching for perl-5.8.8nb2
=> Applying pkgsrc patches for perl-5.8.8nb2
===> Creating toolchain wrappers for perl-5.8.8nb2
===> Configuring for perl-5.8.8nb2
hintdir="/usr/pkgsrc/lang/perl5/work/perl-5.8.8/hints"; for hints in ${hintdir}/*.sh; do                                 /bin/chmod +w ${hints};                                         { echo ""; echo "cat > UU/pkgsrc.cbu <<'EOCBU'";            echo "# This script UU/pkgsrc.cbu will get 'called-back' by Configure to set";  echo '# linker options after all other call-back scripts have been invoked.';  echo 'ldflags="'-Wl,-R/usr/pkg/lib' $ldflags"';  echo 'lddlflags="'-Wl,-R/usr/pkg/lib' $lddlflags"';  echo "EOCBU";                                      } >> ${hints}; done
hintdir="/usr/pkgsrc/lang/perl5/work/perl-5.8.8/hints"; for hints in ${hintdir}/*.sh; do                                 /bin/chmod +w ${hints};                                         { echo ""; echo "# Set pkgsrc defaults for library and header search paths.";  echo 'locincpth="'/usr/pkg/include'"';               echo 'loclibpth="'/usr/pkg/lib'"'; } >> ${hints};                                           done
First let's make sure your kit is complete.  Checking...
Locating common programs...
Checking compatibility between /usr/pkgsrc/lang/perl5/work/.tools/bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
3b1          dos_djgpp       irix_6        next_4        stellar
aix          dragonfly       irix_6_0      nonstopux     sunos_4_0
aix_3        dynix           irix_6_1      openbsd       sunos_4_1
aix_4        dynixptx        isc           opus          super-ux
altos486     epix            isc_2         os2           svr4
amigaos      esix4           linux         os390         svr5
apollo       fps             lynxos        os400         ti1500
atheos       freebsd         machten       posix-bc      titanos
aux_3        genix           machten_2     powerux       ultrix_4
beos         gnu             mint          qnx           umips
bsdos        gnukfreebsd     mips          rhapsody      unicos
convexos     gnuknetbsd      mpc           sco           unicosmk
cxux         greenhills      mpeix         sco_2_3_0     unisysdynix
cygwin       hpux            ncr_tower     sco_2_3_1     utekv
darwin       i386            netbsd        sco_2_3_2     uts
dcosx        interix         newsos4       sco_2_3_3     uwin
dec_osf      irix_4          next_3        sco_2_3_4     vmesa
dgux         irix_5          next_3_0      solaris_2     vos
Which of these apply, if any? [linux]

You appear to have ELF support.  I'll try to use it for dynamic loading.
If dynamic loading doesn't work, read hints/ for further information.
Operating system name? [linux]
Operating system version? [2.6.9-34.elsmp]
Build Perl for SOCKS? [n]
Use the PerlIO abstraction layer? [y]
Build a threading Perl? [n]
Build Perl for multiplicity? [n]
Use which C compiler? [gcc]
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches?
[/lib /usr/lib /usr/local/lib /usr/pkg/lib]
What is the file extension used for shared libraries? [so]
Try to use long doubles if available? [n]
Checking for optional libraries...
What libraries to use? [-lgdbm]
What optimizer/debugger flag should be used?
[-O2 -Wno-format -fno-builtin -I/usr/include]
Any additional cc flags?
[-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/pkg/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)? [ -L/usr/pkg/lib]
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:

#include <stdio.h>
int main() { printf("Ok\n"); return(0); }

I used the command:

        gcc -o try -O2 -Wno-format -fno-builtin -I/usr/include -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/pkg/include -L/usr/pkg/lib try.c -lgdbm

and I got the following output:

/usr/bin/ld: cannot find -lgdbm
collect2: ld returned 1 exit status
I can't compile the test program.
You have a BIG problem.  Shall I abort Configure [y]
Ok.  Stopping Configure.
*** Error code 1

bmake: stopped in /usr/pkgsrc/lang/perl5
===> There was an error during the ``configure'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/lang/perl5/work/.work.log
*** Error code 1

bmake: stopped in /usr/pkgsrc/lang/perl5

Just type bmake in /usr/pkgsrc/lang/perl5 under linux x86_64