pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/58589: tcp_wrappers-7.6.4nb2 fails to build on Solaris 10



>Number:         58589
>Category:       pkg
>Synopsis:       tcp_wrappers-7.6.4nb2 fails to build on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 13 13:10:01 +0000 2024
>Originator:     Hiroshi Hakoyama
>Release:        pkgsrc-current
>Organization:
IFB, Nagano University
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
The following lines were added to the /pkgsrc/security/tcp_wrappers/ Makefile between versions 1.42 and 1.43
	 CFLAGS+= -D_POSIX_C_SOURCE=200809L # open(3)
 	 CFLAGS+= -D_XOPEN_SOURCE=500 # endgrent(3)
that cause the build to fail on Solaris 10 with gcc 5.5.

libtool: compile:  gcc -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -DFACILITY=LOG_MAIL -DHOSTS_ACCESS -DPARANOID -DNETGROUP -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK -DSOLARIS_24_GETHOSTBYNAME_BUG -DDAEMON_UMASK=022 -DREAL_DAEMON_DIR=\"/usr/sbin\" -DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10 -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\" -DTLI -DUSE_STRERROR -DALWAYS_HOSTNAME -DHAVE_IPV6 -c tcpd.c  -fPIC -DPIC -o .libs/tcpd.o
In file included from /usr/include/sys/types.h:17:0,
                 from tcpd.c:19:
/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 \
  ^
In file included from tcpd.c:40:0:
tcpd.h:21:22: error: field '_sg_sin6' has incomplete type
  struct sockaddr_in6 _sg_sin6;
                      ^
tcpd.h:29:21: error: field 'ga_in6' has incomplete type
     struct in6_addr ga_in6;
                     ^
*** Error code 1



>How-To-Repeat:
cd /usr/pkgsrc/security/tcp_wrappers
make


>Fix:
workaround:
remove the above two lines form Makefile.



Home | Main Index | Thread Index | Old Index