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

ExtUtils::Embed should use libperl name from Config #7444

Closed
p5pRT opened this issue Aug 2, 2004 · 4 comments
Closed

ExtUtils::Embed should use libperl name from Config #7444

p5pRT opened this issue Aug 2, 2004 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Aug 2, 2004

Migrated from rt.perl.org#30914 (status was 'resolved')

Searchable as RT30914$

@p5pRT
Copy link
Author

p5pRT commented Aug 2, 2004

From marek.rouchal@gmx.net

This is a bug report for perl from perl@​muc.infineon.com,
generated with the help of perlbug 1.35 running under perl v5.8.5.


The attached patch agast Embed.pm makes this module honour the
definition for libperl from the Config. This is important for
Perl installations that do not have libperl.so but some different
name.

Inline Patch
--- Embed.pm.orig       2004-08-02 08:42:50.000000000 +0200
+++ Embed.pm    2004-08-02 08:44:43.000000000 +0200
@@ -226,7 +226,9 @@
        $libperl = $Config{libperl};
     }
     else {
-       $libperl = (grep(/^-l\w*perl\w*$/, @link_args))[0] || "-lperl";
+        $libperl = (grep(/^-l\w*perl\w*$/, @link_args))[0] ||
+          ($Config{libperl} =~
/^lib(\w+)(\Q$Config{lib_ext}\E|\.\Q$Config{dlext}\E)$/ && "-l$1") || \+ "\-lperl";   \}

  my $lpath = File​::Spec->catdir($Config{archlibexp}, 'CORE');



Flags​:
  category=library
  severity=medium


Site configuration information for perl v5.8.5​:

Configured by hwadm at Fri Jul 30 15​:38​:45 MEST 2004.

Summary of my perl5 (revision 5 version 8 subversion 5) configuration​:
  Platform​:
  osname=linux, osvers=2.4.20-28.7bigmem, archname=i686-linux-thread-multi
  uname='linux lciua057 2.4.20-28.7bigmem #1 smp thu dec 18 11​:04​:21 est
2003 i686 unknown '
  config_args='-Dprefix=/opt/perl_5.8.5 -Dmydomain=.muc.infineon.com
-Dcf_email=perl@​muc.infineon.com -Dinstallusrbinperl=undef
-Dperl5=/opt/perl_5.8.5/bin/perl -Dsitebin=/opt/perl_5.8.5/bin
-Dman1dir=/opt/perl_5.8.5/share/man/man1
-Dman3dir=/opt/perl_5.8.5/share/man/man3 -Dperladmin=perl@​muc.infineon.com
-Dprivlib=/opt/perl_5.8.5/share/lib -Dscriptdir=/opt/perl_5.8.5/share/bin
-Dsitescript=/opt/perl_5.8.5/share/bin -Dsitelib=/opt/perl_5.8.5/share/lib
-Ubincompat5005 -Dlibperl=libperlifx.so -Dcc=gcc -Doptimize=-O2
-Dldflags=-static-libgcc -Dlddlflags=-shared -static-libgcc
-Darchlib=/opt/perl_5.8.5/lib/i686-linux-thread-multi
-Dsitearch=/opt/perl_5.8.5/lib/i686-linux-thread-multi
-Dlocincpth=/home/hwadm/TWW/LNX/include -Dloclibpth=/home/hwadm/TWW/LNX/lib
-Dglibpth=/usr/lib -Duseshrplib -Dusethreads -Dpager=/usr/bin/less -des'
  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=undef use64bitall=undef uselongdouble=undef
  usemymalloc=n, bincompat5005=undef
  Compiler​:
  cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/home/hwadm/TWW/LNX/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
  optimize='-O2',
  cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/home/hwadm/TWW/LNX/include'
  ccversion='', gccversion='3.2.3', 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', ldflags ='-static-libgcc -L/home/hwadm/TWW/LNX/lib'
  libpth=/home/hwadm/TWW/LNX/lib /usr/lib
  libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread
  perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread
  libc=/lib/libc-2.2.4.so, so=so, useshrplib=true, libperl=libperlifx.so
  gnulibc_version='2.2.4'
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/opt/perl_5.8.5/lib/i686-linux-thread-multi/CORE'
  cccdlflags='-fpic', lddlflags='-shared -static-libgcc
-L/home/hwadm/TWW/LNX/lib'

Locally applied patches​:
 


@​INC for perl v5.8.5​:
  /opt/perl_5.8.5/lib/i686-linux-thread-multi
  /opt/perl_5.8.5/share/lib
  /opt/perl_5.8.5/lib/i686-linux-thread-multi
  /opt/perl_5.8.5/share/lib
  /opt/perl_5.8.5/share/lib
  .


Environment for perl v5.8.5​:
  HOME=/home/hwadm
  LANG=en_US
  LANGUAGE (unset)
  LD_LIBRARY_PATH=/opt/gcc_3.2.3/lib​:/usr/lib
  LOGDIR (unset)
 
PATH=/opt/perl_5.8.5/bin​:/home/hwadm/TWW/LNX/bin​:/opt/gcc_3.2.3/bin​:/usr/ccs/bin​:/bin​:/usr/bin​:/usr/X11R6/bin​:.​:/home/hwadm/bin​:/usr/local/bin​:/opt/gnupg_1.2.4/bin
  PERL_BADLANG (unset)
  SHELL=/bin/sh

--
NEU​: WLAN-Router f?r 0,- EUR* - auch f?r DSL-Wechsler!
GMX DSL = superg?nstig & kabellos http​://www.gmx.net/de/go/dsl

@p5pRT
Copy link
Author

p5pRT commented Aug 3, 2004

From @rgs

Marek Rouchal (via RT) wrote​:

The attached patch agast Embed.pm makes this module honour the
definition for libperl from the Config. This is important for
Perl installations that do not have libperl.so but some different
name.

--- Embed.pm.orig 2004-08-02 08​:42​:50.000000000 +0200
+++ Embed.pm 2004-08-02 08​:44​:43.000000000 +0200

Thanks, applied as #23186 to bleadperl.

@p5pRT
Copy link
Author

p5pRT commented Aug 3, 2004

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

@p5pRT
Copy link
Author

p5pRT commented Aug 3, 2004

@rgs - Status changed from 'open' to 'resolved'

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

No branches or pull requests

1 participant