Date: Sat, 2 Jan 2010 07:43:47 GMT From: Han Hwei Woo <hhw@pce-net.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/142230: NAT/IP Masq support for security/oidentd is broken on RELENG_8 Message-ID: <201001020743.o027hlRg023940@www.freebsd.org> Resent-Message-ID: <201001020750.o027o3aZ002768@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 142230 >Category: ports >Synopsis: NAT/IP Masq support for security/oidentd is broken on RELENG_8 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Jan 02 07:50:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Han Hwei Woo >Release: 8.0-STABLE >Organization: >Environment: FreeBSD atlas 8.0-STABLE FreeBSD 8.0-STABLE #0: Sat Dec 19 23:42:20 PST 2009 hhw@atlas:/usr/obj/usr/src/sys/CUSTOM i386 >Description: Not sure if this is known issue or not, the Makefile contains the following lines: .if defined(WITHOUT_MASQ) || ${OSVERSION} >= 800000 CONFIGURE_ARGS+=--disable-masq .endif When removing this restriction (e.g. bumping the osversion to 900000), the following build errors occur: if cc -DHAVE_CONFIG_H -I. -I. -I.. "-Imissing" -funsigned-char -O2 -pipe -march=prescott -fno-strict-aliasing -MT os.o -MD -MP -MF ".deps/os.Tpo" -c -o os.o os.c; then mv -f ".deps/os.Tpo" ".deps/os.Po"; else rm -f ".deps/os.Tpo"; exit 1; fi In file included from /usr/include/sys/systm.h:42, from /usr/include/sys/refcount.h:38, from /usr/include/sys/file.h:42, from os.c:40: /usr/include/machine/cpufunc.h:161: error: static declaration of 'ffs' follows non-static declaration /usr/include/machine/cpufunc.h:175: error: static declaration of 'fls' follows non-static declaration /usr/include/strings.h:52: error: previous declaration of 'fls' was here In file included from /usr/include/sys/refcount.h:38, from /usr/include/sys/file.h:42, from os.c:40: /usr/include/sys/systm.h:230: error: expected declaration specifiers or '...' before 'uintfptr_t' /usr/include/sys/systm.h:234: error: expected declaration specifiers or '...' before 'uintfptr_t' /usr/include/sys/systm.h:253: error: conflicting types for 'setenv' /usr/include/stdlib.h:162: error: previous declaration of 'setenv' was here In file included from /usr/include/sys/systm.h:268, from /usr/include/sys/refcount.h:38, from /usr/include/sys/file.h:42, from os.c:40: /usr/include/sys/libkern.h:69: error: static declaration of 'abs' follows non-static declaration /usr/include/sys/libkern.h:70: error: static declaration of 'labs' follows non-static declaration /usr/include/sys/libkern.h:93: error: conflicting types for 'gets' /usr/include/stdio.h:253: error: previous declaration of 'gets' was here /usr/include/sys/libkern.h:100: error: conflicting types for 'random' /usr/include/stdlib.h:207: error: previous declaration of 'random' was here /usr/include/sys/libkern.h:111: error: conflicting types for 'strdup' /usr/include/sys/libkern.h:149: error: static declaration of 'memset' follows non-static declaration /usr/include/sys/libkern.h:167: error: static declaration of 'strchr' follows non-static declaration /usr/include/sys/libkern.h:173: error: static declaration of 'strrchr' follows non-static declaration In file included from /usr/include/sys/refcount.h:38, from /usr/include/sys/file.h:42, from os.c:40: /usr/include/sys/systm.h:291: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splbio' /usr/include/sys/systm.h:292: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splcam' /usr/include/sys/systm.h:293: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splclock' /usr/include/sys/systm.h:294: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splhigh' /usr/include/sys/systm.h:295: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splimp' /usr/include/sys/systm.h:296: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splnet' /usr/include/sys/systm.h:297: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftcam' /usr/include/sys/systm.h:298: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftclock' /usr/include/sys/systm.h:299: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttty' /usr/include/sys/systm.h:300: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftvm' /usr/include/sys/systm.h:301: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttq' /usr/include/sys/systm.h:302: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splstatclock' /usr/include/sys/systm.h:303: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'spltty' /usr/include/sys/systm.h:304: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splvm' /usr/include/sys/systm.h:305: error: expected ')' before 'ipl' /usr/include/sys/systm.h:317: error: conflicting types for 'pause' /usr/include/unistd.h:357: error: previous declaration of 'pause' was here *** Error code 1 >How-To-Repeat: Install the port as is, or modify the makefile as follows: -.if defined(WITHOUT_MASQ) || ${OSVERSION} >= 800000 +.if defined(WITHOUT_MASQ) || ${OSVERSION} >= 900000 make >Fix: Seems to be some kind of issue with FreeBSD's headers, and namespace separation. The issue's a bit beyond my current scope of knowledge, but I would be glad to assist in any way I can. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001020743.o027hlRg023940>