[MacPorts] #52503: hexchat 2.12.1 has issues on tiger - and fix
MacPorts
noreply at macports.org
Wed Oct 5 05:16:15 CEST 2016
#52503: hexchat 2.12.1 has issues on tiger - and fix
--------------------------------------+----------------------
Reporter: ken.cunningham.webuse@… | Owner: raimue@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords: tiger
Port: hexchat |
--------------------------------------+----------------------
Comment (by ken.cunningham.webuse@…):
found some more -- linker does test for PIE, I see, and finds failure
{{{
configure:19216: checking whether the linker accepts -pie
configure:19235: /opt/local/bin/gcc-apple-4.2 -o conftest -pipe -Os -arch
i386 -funsigned-char -fPIE -fPIC -Wall -Wextra -Wstrict-prototypes -Wno-
unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-missing-field-
initializers -Werror=format-security -Werror=init-self -Werror
=declaration-after-statement -Werror=missing-include-dirs -Werror
=implicit-function-declaration -Werror=pointer-arith -I/opt/local/include
-L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386 -pie
conftest.c >&5
conftest.c:44: warning: function declaration isn't a prototype
ld: -pie can only be used when targeting Mac OS X 10.5 or later
collect2: ld returned 1 exit status
}}}
and that makes it into the summary
{{{
ax_cv_check_ldflags___Wl__z_now=no
ax_cv_check_ldflags___Wl__z_relro=no
ax_cv_check_ldflags___pie=no
}}}
so the compiler accepts -fPIE, but the linker does not
{{{
CFLAGS='-pipe -Os -arch i386 -funsigned-char -fPIE -fPIC -Wall -Wextra
-Wstrict-prototypes -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-
sign -Wno-missing-field-initializers -Werror=format-security -Werror=init-
self -Werror=declaration-after-statement -Werror=missing-include-dirs
-Werror=implicit-function-declaration -Werror=pointer-arith'
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386'
}}}
and in the end, the link line looks like it's made up of both CFLAGS
(with-fPIE) and LDFLAGS, and errors out...
{{{
:info:build /bin/sh ../../libtool --tag=CC --mode=link /opt/local/bin
/gcc-apple-4.2 -pipe -Os -arch i386 -funsigned-char -fPIE -fPIC -Wall
-Wextra -Wstrict-prototypes -Wno-unused-parameter -Wno-sign-compare -Wno-
pointer-sign -Wno-missing-field-initializers -Werror=format-security
-Werror=init-self -Werror=declaration-after-statement -Werror=missing-
include-dirs -Werror=implicit-function-declaration -Werror=pointer-arith
-L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386 -o make-te
make-te.o -lintl
:info:build libtool: link: /opt/local/bin/gcc-apple-4.2 -pipe -Os -arch
i386 -funsigned-char -fPIE -fPIC -Wall -Wextra -Wstrict-prototypes -Wno-
unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-missing-field-
initializers -Werror=format-security -Werror=init-self -Werror
=declaration-after-statement -Werror=missing-include-dirs -Werror
=implicit-function-declaration -Werror=pointer-arith
-Wl,-headerpad_max_install_names -arch i386 -o make-te make-te.o
-L/opt/local/lib /opt/local/lib/libintl.dylib
:info:build ld: -pie can only be used when targeting Mac OS X 10.5 or
later
:info:build collect2: ld returned 1 exit status
}}}
--
Ticket URL: <https://trac.macports.org/ticket/52503#comment:3>
MacPorts <https://www.macports.org/>
Ports system for the Mac operating system
More information about the macports-tickets
mailing list