problem with header

Beech Rintoul beech at
Thu Jul 13 01:35:08 UTC 2006

I'm trying to add option (iconv() charset conversion patch) to proftpd.

I added the following to the port makefile:

.if defined(WITH_ICONV)
EXTRA_PATCHES=	${FILESDIR}/extra_patch-iconv
USE_AUTOTOOLS=	autoconf:259

The patch applies cleanly and creates two new modules which are added to the 
build config, plus ads some src code. Everything compiles until it reaches 
the first module which bails with the following:

mod_codeconv.c: In function `remote2local':
mod_codeconv.c:74: warning: passing arg 2 of `libiconv' from incompatible 
pointer type
mod_codeconv.c: In function `local2remote':
mod_codeconv.c:114: warning: passing arg 2 of `libiconv' from incompatible 
pointer type
cc -DHAVE_CONFIG_H  -DFREEBSD7_0 -DFREEBSD7 -I.. -I../include  -O2 -fno-strict-aliasing -pipe  -DHAVE_OPENSSL -Wall -c 
mod_df.c:34:21: sys/vfs.h: No such file or directory
mod_df.c: In function `df_post_cwd':
mod_df.c:57: error: storage size of 'sfs' isn't known
mod_df.c:59: warning: implicit declaration of function `statfs'
mod_df.c:57: warning: unused variable `sfs'
gmake[1]: *** [mod_df.o] Error 1

iconv.h is included in the code but doesn't seem to be getting pulled in. I 
also noticed that when configure looks for iconv.h, it comes back no.
libiconv is already a dependency for this port and iconv.h is 
in /local/include.

The patch is here:

I'm a bit over my head with this one, but I thought I'd give it a try.
Could someone take a look and maybe give me some suggestions?




Beech Rintoul - Sys. Administrator - beech at
/"\   ASCII Ribbon Campaign  | Alaska Paradise
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise -

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list