Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2007 00:23:13 +0800 (CST)
From:      Li-Wen Hsu <lwhsu@lwhsu.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        beech@alaskaparadise.com, lwhsu@lwhsu.org
Subject:   ports/109932: [PATCH] ftp/proftpd: compiling fail with CODECONV option
Message-ID:  <200703051623.l25GNDAK071772@jail0.lwhsu.csie.net>
Resent-Message-ID: <200703051630.l25GU3Zl063140@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         109932
>Category:       ports
>Synopsis:       [PATCH] ftp/proftpd: compiling fail with CODECONV option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 05 16:30:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Li-Wen Hsu
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD jail0.lwhsu.csie.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 26 00:04:54 CST 2007
>Description:
- Fix problem when WITH_CODECONV option is enabled

Port maintainer (beech@alaskaparadise.com) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:

# cd /usr/ports/ftp/proftpd
# make config
(select CODECONV)
# make

(...deleted...)
cc -DHAVE_CONFIG_H  -DFREEBSD6_2 -DFREEBSD6 -I.. -I../include -I/include -O2 -fno-strict-aliasing -pipe  -Wall -c mod_codeconv.c
mod_codeconv.c:24:25: iconv.h: No such file or directory
mod_codeconv.c: In function `remote2local':
mod_codeconv.c:50: error: syntax error before "ic"
mod_codeconv.c:63: error: `ic' undeclared (first use in this function)
mod_codeconv.c:63: error: (Each undeclared identifier is reported only once
mod_codeconv.c:63: error: for each function it appears in.)
mod_codeconv.c:63: warning: implicit declaration of function `iconv_open'
mod_codeconv.c:64: error: `iconv_t' undeclared (first use in this function)
mod_codeconv.c:66: warning: implicit declaration of function `iconv'
mod_codeconv.c:82: warning: implicit declaration of function `iconv_close'
mod_codeconv.c: In function `local2remote':
mod_codeconv.c:90: error: syntax error before "ic"
mod_codeconv.c:103: error: `ic' undeclared (first use in this function)
mod_codeconv.c:104: error: `iconv_t' undeclared (first use in this function)
gmake[1]: *** [mod_codeconv.o] Error 1
gmake[1]: Leaving directory `/usr/ports/ftp/proftpd/work/proftpd-1.3.1rc2/modules'
gmake: *** [modules] Error 2
*** Error code 2

Stop in /usr/ports/ftp/proftpd.

>Fix:

--- proftpd-1.3.1.r2_3.patch begins here ---
diff -ruN -ruN --exclude=CVS /usr/ports/ftp/proftpd/Makefile /home/lwhsu/ports/ftp/proftpd/Makefile
--- /usr/ports/ftp/proftpd/Makefile	Sat Mar  3 16:40:04 2007
+++ /home/lwhsu/ports/ftp/proftpd/Makefile	Mon Mar  5 23:45:13 2007
@@ -198,7 +198,9 @@
 .endif
 
 .if defined(WITH_CODECONV)
+USE_ICONV=	YES
 MODULES:=${MODULES}:mod_codeconv
+INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
 PROFTPD_LIBS+=	-liconv -L${LOCALBASE}/lib
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-mod-codeconv
 .endif
--- proftpd-1.3.1.r2_3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703051623.l25GNDAK071772>