I get the following error with the stock sys tree patched with ipfilter;
I tried versions 3.4.32 as well as 3.4.33pre2.

This is on the OBSD sparc64 port on a Netra T1 105.

Used the OpenBSD-3.3 sysdiffs (diffs applied without error).

[EMAIL PROTECTED] /usr/src/sys/arch/sparc64/compile/IPFILTER: make
mkdir -p /usr/src/sys/arch/sparc64/compile/IPFILTER/lib/kern
making sure the kern library is up to date...
`libkern.o' is up to date.
making sure the compat library is up to date...
`libcompat.a' is up to date.
sh /usr/src/sys.ipf/arch/sparc64/compile/IPFILTER/../../../../conf/newvers.sh
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-uninitialized 
-Wno-format -Wno-main -Wa,-Av9a, -mno-fpu   -nostdinc -I. 
-I/usr/src/sys.ipf/arch/sparc64/compile/IPFILTER/../../../../arch 
-I/usr/src/sys.ipf/arch/sparc64/compile/IPFILTER/../../../.. -DDDB -DDIAGNOSTIC 
-DKTRACE -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM 
-DUVM_SWAP_ENCRYPT -DCOMPAT_25 -DCOMPAT_43 -DLKM -DFFS -DFFS_SOFTUPDATES -DQUOTA 
-DEXT2FS -DMFS -DTCP_SACK -DTCP_ECN -DNFSCLIENT -DNFSSERVER -DCD9660 -DMSDOSFS -DFDESC 
-DFIFO -DKERNFS -DPORTAL -DPROCFS -DNULLFS -DUMAPFS -DUNION -DINET -DALTQ -DIPSEC 
-DIPFILTER -DIPFILTER_LOG -DPPP_BSDCOMP -DPPP_DEFLATE -DBOOT_CONFIG -DSUN4U 
-DPCIVERBOSE -DUSER_PCICONF -DAPERTURE -DISP_COMPILE_FW="1" -DISP_COMPILE_1000_FW="1" 
-D_KERNEL  -c vers.c
ld -n -Ttext 01000000 -Tdata 01800000 -e start -N -x -o bsd ${SYSTEM_OBJ} vers.o
ip_proxy.o: In function `ippr_ftp_port':
ip_proxy.o(.text+0x280): undefined reference to `sprintf'
*** Error code 1

This is the content of the generated "vers.c":

const char ostype[] = "OpenBSD";
const char osrelease[] = "3.4";
const char osversion[] = "IPFILTER#2";
const char sccs[] =
    "    @(#)OpenBSD 3.4 (IPFILTER) #2: Mon Dec  1 19:12:51 EST 2003\n";
const char version[] =
    "OpenBSD 3.4 (IPFILTER) #2: Mon Dec  1 19:12:51 EST 2003\n    [EMAIL 
PROTECTED]:/usr/src/sys/arch/sparc64/compile/IPFILTER\n";


I am guessing that the problem is associated with sys/netinet/ip_ftp_pxy.c
line 1214:

1213:        /* DO NOT change this to snprintf! */
1214:        (void) sprintf(newbuf, "%s %u,%u,%u,%u,%u,%u\r\n",
1215:                       "PORT", a1, a2, a3, a4, a5, a6);

I did not try compiling the kernel with the IPFILTER options disabled in the
config file, but of course I don't run into this with an unpatched kernel src 
tree.

-- 
Andre Dalle                     [EMAIL PROTECTED]
Systems Administrator,
National Capital Freenet        [http://www.ncf.ca]

Reply via email to