develooper Front page | perl.perl5.porters | Postings from June 2016

[perl #128451] [Win32]$Config{libpth} is broken in 5.25.2

Thread Previous
From:
Sisyphus
Date:
June 22, 2016 02:15
Subject:
[perl #128451] [Win32]$Config{libpth} is broken in 5.25.2
Message ID:
rt-4.0.18-26384-1466561679-1906.128451-75-0@perl.org
# New Ticket Created by  "Sisyphus" 
# Please include the string:  [perl #128451]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128451 >


Hi,

The problem is that $Config{libpth} places whatever is specified in 
EXTRALIBDIRS (in GNUmakefile) inside double quotes:

C:\_32>perl -V:libpth
libpth='C:\_32\gcc-mingw-530\mingw32\lib 
"C:\_32\gcc-mingw-530\mingw32\i686-w64-mingw32\lib 
C:\_32\msys_530\1.0\local\lib 
C:\_32\gcc-mingw-530\mingw32\lib\gcc\i686-w64-mingw32\5.3.0"';

Consequently, any library that's in one of those EXTRALIBDIRS directories 
won't be found when EXTRALIBDIRS specifies more than one location.
Perhaps the double quotes don't matter if EXTRALIBDIRS specifies only one 
location - that's rather moot, and I haven't checked.

The solution is to remove the 2 double quotes from libpth - which I've done 
by editing Config.pm and Config_heavy.pl.

However, I haven't yet gone looking for the source that created those 2 
double quotes in the first place.
If someone points me to a good place to start looking I might be able to 
help out with that.

My 'perl -V' is given below (though my 3 other configurations of 5.25.2 are 
affected in the same way).

Cheers,
Rob

Summary of my perl5 (revision 5 version 25 subversion 2) configuration:

  Platform:
    osname=MSWin32
    osvers=6.1
    archname=MSWin32-x86-multi-thread-64int
    uname=''
    config_args='undef'
    hint=recommended
    useposix=true
    d_sigaction=undef
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=undef
    uselongdouble=undef
    usemymalloc=n
    bincompat5005=undef
  Compiler:
    cc='gcc'
    ccflags 
=' -s -O2 -DWIN32  -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS 
 -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields'
    optimize='-s -O2'
    cppflags='-DWIN32'
    ccversion=''
    gccversion='5.3.0'
    gccosandvers=''
    intsize=4
    longsize=4
    ptrsize=4
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=12
    longdblkind=3
    ivtype='long long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='long long'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='g++'
    ldflags 
='-s -L"c:\_32\blead-5.25.2\lib\CORE" -L"C:\_32\gcc-mingw-530\mingw32\lib"'
    libpth=C:\_32\gcc-mingw-530\mingw32\lib 
"C:\_32\gcc-mingw-530\mingw32\lib C:\_32\gcc-mingw-530\mingw32\lib 
C:\_32\gcc-mingw-530\mingw32\i686-w64-mingw32\lib 
C:\_32\msys_530\1.0\local\lib 
C:\_32\gcc-mingw-530\mingw32\lib\gcc\i686-w64-mingw32\5.3.0"
    libs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 
 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion 
 -lodbc32 -lodbccp32 -lcomctl32
    perllibs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 
 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion 
 -lodbc32 -lodbccp32 -lcomctl32
    libc=
    so=dll
    useshrplib=true
    libperl=libperl525.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs
    dlext=dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags='-mdll -s -L"c:\_32\blead-5.25.2\lib\CORE" -L"C:\_32\gcc-mingw-530\mingw32\lib"'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    HAVE_INTERP_INTERN
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
    PERL_IMPLICIT_CONTEXT
    PERL_IMPLICIT_SYS
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
  Built under MSWin32
  Compiled at Jun 21 2016 23:39:34
  @INC:
    C:/_32/blead-5.25.2/site/lib
    C:/_32/blead-5.25.2/lib
    . 


Thread Previous


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