pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/54385: www/apache24 fails to configure on Solaris 10 with gcc 5.5
>Number: 54385
>Category: pkg
>Synopsis: www/apache24 fails to configure on Solaris 10 with gcc 5.5
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 19 08:45:01 +0000 2019
>Originator: Hiroshi Hakoyama
>Release: pkgsrc current
>Organization:
Nagano University
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
lang/gcc49 can compile www/apache24. However, gcc5.5 (/opt/csw/bin/gcc) fails to configure it.
# cd /usr/pkgsrc/www/apache24
# bmake
...
configure: Configuring Apache Portable Runtime Utility library...
configure:
checking for APR-util... yes
checking for sparc-sun-solaris2.10-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/usr/pkgsrc/www/apache24/work/httpd-2.4.39':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
*** Error code 1
Stop.
bmake[1]: stopped in /usr/pkgsrc/www/apache24
*** Error code 1
Stop.
----------------------------------------------------------------
config.log
...
configure:5502: gcc -o conftest -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3 -D_FORTI
FY_SOURCE=2 -D__EXTENSIONS__ -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -I/usr/pkg/include/apr-1 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include/apr-1 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/ncurses -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c >&5
In file included from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/
stdio.h:30:0,
from conftest.c:9:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/sys/feature_tests.h:346:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
#error "Compiler or options invalid for pre-UNIX 03 X/Open applications \
^
configure:5506: $? = 1
----------------------------------------------------------------
In Makefile, there is a variable CFLAGS.SunOS that is set by the following code:
CFLAGS.SunOS+= -D__EXTENSIONS__
.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang)
CFLAGS.SunOS+= -D_XOPEN_SOURCE=600
.else
#CFLAGS.SunOS+= -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
CFLAGS.SunOS+= -D_XOPEN_SOURCE=600
.endif
In this case (to compile apache24 with /opt/csw/bin/gcc-5.5 on Solaris 10), CFLAGS.SunOS is set as "-D__EXTENSIONS__ -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1".
The options seem to relate to this error.
>How-To-Repeat:
# cd /usr/pkgsrc/www/apache24
# bmake
>Fix:
workaround
CFLAGS.SunOS = -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
Home |
Main Index |
Thread Index |
Old Index