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

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

Closed
p5pRT opened this issue Jun 22, 2016 · 12 comments
Closed

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

p5pRT opened this issue Jun 22, 2016 · 12 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 22, 2016

Migrated from rt.perl.org#128451 (status was 'rejected')

Searchable as RT128451$

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2016

From @sisyphus

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
  .

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2016

From @sisyphus

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
  .

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2016

From @jkeenan

#128452 appears to be a duplicate of #128451; merging.
--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2016

From @jkeenan

On Tue Jun 21 19​:14​:39 2016, sisyphus wrote​:

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).

As a starting point, do you know whether you have this problem on 5.24.0 on this machine?

Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2016

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

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2016

From @sisyphus

-----Original Message-----
From​: James E Keenan via RT

As a starting point, do you know whether you have this problem on 5.24.0
on this machine?

Thank you very much.

No such problem with 5.24.0. (I should have thought to mention that.)

This is the first time I've built 5.25.x, and this is the first time I've
struck this issue.

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2016

From @sisyphus

My apologies - this is a duplicate of #128451.

Please close.

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Jun 27, 2016

From @bulk88

On Tue Jun 21 19​:14​:39 2016, sisyphus wrote​:

Hi,

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

related bug https://rt-archive.perl.org/perl5/Ticket/Display.html?id=123575

--
bulk88 ~ bulk88 at hotmail.com

@p5pRT
Copy link
Author

p5pRT commented Jun 28, 2016

From @sisyphus

-----Original Message-----
From​: bulk88 via RT
Sent​: Tuesday, June 28, 2016 6​:53 AM
To​: sisyphus1@​optusnet.com.au
Subject​: [perl #128451] [Win32]$Config{libpth} is broken in 5.25.2

On Tue Jun 21 19​:14​:39 2016, sisyphus wrote​:

Hi,

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

related bug https://rt-archive.perl.org/perl5/Ticket/Display.html?id=123575

I don't see the relationship ... though please don't think that I'm
asserting there isn't one.

When I diff the GNUmakefile that shipped with 5.24.0 against the GNUmakefile
that ships with 5.25.2, the only differences that are presented are​:

1) differences in version number (ie 5.24.0 has become 5.25.2, 524 has
become 525 and 5240 has become 5252);
2) the inclusion in 5.25.2 of the line​:
  -if exist $(LIBDIR)\Test2 rmdir /s /q $(LIBDIR)\Test

Incidentally, I would have expected that should be​:
  -if exist $(LIBDIR)\Test2 rmdir /s /q $(LIBDIR)\Test2

I don't see anything that would be involved in the change of behaviour (from
5.24.0 to 5.25.2) re the setting of $Config{libpth}.

Just to be sure that the problem is expressed clearly​:
If, in GNUmakefile I change the (empty) EXTRALIBDIRS spec to​:

EXTRALIBDIRS := C​:\foo C​:\bar

then in 5.24.0, $Config{libpth} will be set to
C​:\wherever\lib C​:\foo C​:\bar

and that's fine. But in 5.25.2, $Config{libpth} will be set to
C​:\wherever\lib "C​:\foo C​:\bar"

thus ensuring that any lib in C​:\foo or C​:\bar will not be located.

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Jul 12, 2016

From @sisyphus

Finally worked out my mistake.

I had provided a *space-delimited* list to GNUmakefile's EXTRALIBDIRS -
which is what $Config{libpth} returns.
But EXTRALIBDIRS requires a *semicolon-delimited* list.

That sort of thing is quite counterintuitive, though the documentation is
clear enough.

Please close.

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Jul 12, 2016

From @dcollinsn

Closing per original requestor.

--
Respectfully,
Dan Collins

@p5pRT
Copy link
Author

p5pRT commented Jul 12, 2016

@dcollinsn - Status changed from 'open' to 'rejected'

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

1 participant