[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PSPP-BUG: [bug #55156] Build failure when perl ld config value has multi
From: |
Ryan Schmidt |
Subject: |
PSPP-BUG: [bug #55156] Build failure when perl ld config value has multiple words |
Date: |
Mon, 3 Dec 2018 14:00:58 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15 |
URL:
<https://savannah.gnu.org/bugs/?55156>
Summary: Build failure when perl ld config value has multiple
words
Project: PSPP
Submitted by: ryandesign
Submitted on: Mon 03 Dec 2018 07:00:57 PM UTC
Category: Other
Severity: 5 - Average
Status: None
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: None
Effort: 0.00
_______________________________________________________
Details:
The pspp perl module can fail to build on systems where perl's ld config value
contains multiple words. Here is a build failure on PowerPC Mac OS X Leopard:
https://build.macports.org/builders/ports-10.5_ppc_legacy-builder/builds/86402/steps/install-port/logs/stdio
'env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.2' -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch ppc -bundle -undefined dynamic_lookup
-L/opt/local/lib -Wl,-headerpad_max_install_names -fstack-protector PSPP.o
-o blib/arch/auto/PSPP/PSPP.bundle
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_pspp-devel/pspp-devel/work/pspp-1.2.0-ga8799b/src/.libs/libpspp-core.dylib
\
\
make[4]: env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.2: Command not
found
make[4]: *** [blib/arch/auto/PSPP/PSPP.bundle] Error 127
The reason for the problem is that on this system, perl has determined that
the value of ld should be multiple words, and the pspp perl module determines
the perl value of ld by running $(PERL) -V::ld:, which apparently returns the
raw value from the config, including quotation marks if any, which is then
interpreted by the build as the name of a single command that should be run,
which of course doesn't exist. I was able to fix the problem by using
Config::Perl::V directly, which gets the value inside the quotation marks. See
attached patch.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 03 Dec 2018 07:00:57 PM UTC Name:
21c4fda59fbeef7ca9fb7bad54c7797a2cd90081.patch Size: 1KiB By: ryandesign
<http://savannah.gnu.org/bugs/download.php?file_id=45571>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55156>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- PSPP-BUG: [bug #55156] Build failure when perl ld config value has multiple words,
Ryan Schmidt <=