Hi!
You got right on to it!
(BTW, during my failed attempt to understand the makefile under Irix
with the CPAN sources, I had noticed that it was also refering to the
wrong perllib, but it didn't prevent it from building fine, though...).
'perl -V' rightly points to a static library...
I hope this helps...
Philippe
PS: what I did (and got)
sunfire /WORK/philippe/Temp/trunk> ne myldr/Makefile.PL
[1] 1061
sunfire /WORK/philippe/Temp/trunk> perl Makefile.PL
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
[Core Features]
- File::Temp ...loaded. (0.17 >= 0.05)
- Compress::Zlib ...loaded. (1.42 >= 1.3)
- Archive::Zip ...loaded. (1.18 >= 1)
- Module::ScanDeps ...loaded. (0.69 >= 0.69)
- PAR::Dist ...loaded. (0.21 >= 0.21)
- Getopt::ArgvFile ...loaded. (1.10 >= 1.07)
[Digital signature support]
- Digest ...loaded. (1.15)
- Module::Signature ...loaded. (0.55)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Warning: the following files are missing in your kit:
META.yml
SIGNATURE
Please inform the author.
ERROR from evaluation of /WORK/philippe/Temp/trunk/myldr/Makefile.PL:
Can't find libperl.so in (/WORK/philippe/Tools/Perl/bin
/WORK/philippe/Tools/Perl/lib/perl5/5.8.8/x86_64-linux/CORE
/USER/philippe/Linux/MICRESS/Libraries /WORK/philippe/Tools/Gcc/lib
/WORK/philippe/Tools/Gcc/lib64 /WORK/philippe/Tools/Gmp/lib
/WORK/philippe/Tools/Mpfr/lib /WORK/philippe/Tools/Perl/lib
/WORK/philippe/Tools/Subversion/lib /opt/intel/fc/9.0/lib
/opt/intel/cc/9.0/lib /usr/local/lib /usr/local/lib /lib /usr/lib) --
please contact the author! at ./Makefile.PL line 128.
sunfire /WORK/philippe/Temp/trunk> perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.5-7.97-smp, archname=x86_64-linux
uname='linux sunfire 2.6.5-7.97-smp #1 smp fri jul 2 14:21:59 utc
2004 x86_64 x86_64 x86_64 gnulinux '
config_args='-Dprefix=/WORK/philippe/Tools/Perl
-Dhtml1dir=/WORK/philippe//Tools/Perl/html
[EMAIL PROTECTED] -Dcc=gcc -m32 -d -e'
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 -m32', ccflags ='-fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='3.3.3 (SuSE Linux)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc -m32', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.3'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Mar 14 2006 11:59:05
@INC:
/WORK/philippe/Tools/Perl/lib/perl5/5.8.8/x86_64-linux
/WORK/philippe/Tools/Perl/lib/perl5/5.8.8
/WORK/philippe/Tools/Perl/lib/perl5/site_perl/5.8.8/x86_64-linux
/WORK/philippe/Tools/Perl/lib/perl5/site_perl/5.8.8
/WORK/philippe/Tools/Perl/lib/perl5/site_perl
.
sunfire /WORK/philippe/Temp/trunk> find ../../Tools/Perl/ -name
libperl.a
../../Tools/Perl/lib/perl5/5.8.8/x86_64-linux/CORE/libperl.a
sunfire /WORK/philippe/Temp/trunk> find ../../Tools/Perl/ -name
libperl.so
Steffen Mueller wrote:
>
> [Grr, I was just done writing this when my mail client decided to crash.]
>
> Hi Philippe,
>
> I haven't been able to build a 32bit perl on my 64bit ubuntu because I
> seem to be missing various 32bit libraries. Couldn't easily find them
> using aptitude either, so I'll just compare the result of your make with
> mine (on the working 64bit system and perl).
>
> Philippe Schaffnit schrieb:
> > Your fix helps under Irix, in the sense that it that the warning is now
> > gone, but the tests still fail in a similar way.
>
> Well, it was just a warning then. I'll commit the fix in the hope it
> stays silent.
>
> I also committed a fix for the warning in internals.c which shouldn't
> come back now.
>
> Additionally, I committed a fix for myldr/Makefile.PL which amends "make
> clean". It's probably a really good idea to run make clean before
> rebuilding, by the way.
>
> I'll go through this step-by-step, add what I think it does (or should
> do) and what my machine does in the same place.
>
> > sunfire /WORK/philippe/Temp/PAR/trunk> perl Makefile.PL
> [normal Makefile.PL operation]
>
> > make[1]: Entering directory `/WORK/philippe/Temp/PAR/trunk/myldr'
> > /WORK/philippe/Tools/Perl/bin/perl sha1.c.PL sha1.c
>
> Generate sha1.c from sha1.c.PL.
> /usr/bin/perl sha1.c.PL sha1.c
>
> > gcc -m32 -c -fno-strict-aliasing -pipe -I/usr/local/include
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -I/WORK/philippe/Tools/Perl/lib/perl5/5.8.8/x86_64-linux/CORE sha1.c
>
> Compile it.
> cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE sha1.c
>
> Now, here is a step which is missing from your log:
> /usr/bin/perl ./file2c.pl /usr/lib/libperl.so.5.8 my_perl.c load_me_0 1
> 30000
>
> This basically just takes the shared perl lib and writes it as binary
> data to my_perl.c. This is crucial for the process. My money is on that
> if this fails, (or isn't even tried at all!), the build is effectively
> doomed.
>
> Probably, Makefile.PL didn't find the shared perl lib and thus skipped
> the step.
>
> Please attempt the following: In myldr/Makefile.PL around line 130, you
> can find a commented out guard against not finding the libperl:
> # die "Can't find $file in (@paths) -- please contact the author!"
> # unless -e $libperl;
> Please enable that and retry. It should die with that error. I don't
> know why this is commented out nor why it can't be found. But I'm rather
> sure this is the culprit!
>
> Perhaps this is related to the distinction of static and dynamic perl's.
> I just don't have a clue. :(
>
> > gcc -m32 -c -fno-strict-aliasing -pipe -I/usr/local/include
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -I/WORK/philippe/Tools/Perl/lib/perl5/5.8.8/x86_64-linux/CORE main.c
> > In file included from main.c:57:
> > internals.c: In function 'XS_Internals_PAR_BOOT':
> > internals.c:34: warning: ignoring return value of 'Perl_av_shift',
> > declared with attribute warn_unused_result
>
> This warning should be gone now if you resync from svn. Anyhow, this
> compiles main.c to main.o.
>
> I'll skip the rest until the file2c.pl run works.
>
> Steffen