[Proftpd-user] proftpd build error

Beech Rintoul freebsd at alaskaparadise.com
Thu Dec 28 13:53:19 PST 2006


On Thursday 28 December 2006 11:15, Beech Rintoul wrote:
> I'm attempting to update the FreeBSD port of proftpd. While building the
> new mod_wrap2 I get the following error:
>
> gmake[2]: Entering directory
> `/usr/ports/ftp/proftpd/work/proftpd-1.3.1rc1/contrib/mod_wrap2'
> cc -DHAVE_CONFIG_H  -DFREEBSD7_0 -DFREEBSD7 -I. -I../.. -I../../include -O2
> -fno-strict-aliasing -pipe  -Wall -c mod_wrap2.c
> In file included from mod_wrap2.h:35,
>                  from mod_wrap2.c:25:
> ../../include/conf.h:57:21: libintl.h: No such file or directory
> gmake[2]: *** [mod_wrap2.o] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/ftp/proftpd/work/proftpd-1.3.1rc1/contrib/mod_wrap2'
> cp: ../contrib/mod_wrap2/mod_wrap2.o: No such file or directory
> gmake[1]: *** [static] Error 1
> gmake[1]: Leaving directory
> `/usr/ports/ftp/proftpd/work/proftpd-1.3.1rc1/modules'
> gmake: *** [modules] Error 2
> *** Error code 2
>
> I tried adding #include <libintl.h> to config.h, but it didn't help. That
> header is in the the path, what do I need to do to get mod_wrap2 to see it?

I fixed the build with the following patches:

--- contrib/mod_wrap2/Makefile.in.orig	Wed Sep  6 15:11:47 2006
+++ contrib/mod_wrap2/Makefile.in	Thu Dec 28 11:41:24 2006
@@ -13,7 +13,7 @@
 MODULE_NAME=mod_wrap2
 
 # Necessary redefinitions
-INCLUDES=-I. -I../.. -I../../include
+INCLUDES=-I. -I../.. -I../../include -I/usr/local/include
 CPPFLAGS= -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES)
 LDFLAGS=-L../../lib

--- lib/getopt.c.orig	Thu Feb 28 10:30:01 2002
+++ lib/getopt.c	Tue Dec 26 13:39:53 2006
@@ -76,7 +76,7 @@
 # endif
 #endif
 
-#ifndef _
+#if defined(PR_USE_NLS) && !defined(_)
 /* This is for other GNU distributions with internationalized messages.
    When compiling libc, the _ macro is predefined.  */
 # ifdef HAVE_LIBINTL_H
@@ -85,6 +85,8 @@
 # else
 #  define _(msgid)	(msgid)
 # endif
+#else
+# define _(msgid)	(msgid)
 #endif
 
 /* This version of `getopt' appears to the caller like standard Unix `getopt'

That fixed earlier problems, but now I'm getting:

cc -L./lib  -L/usr/local/lib -L/usr/local/lib -o ftptop utils/ftptop.o 
utils/scoreboard.o -lncurses -lsupp
./lib/libsupp.a(getopt.o)(.text+0x5c5): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
./lib/libsupp.a(getopt.o)(.text+0x687): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
./lib/libsupp.a(getopt.o)(.text+0x8b1): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
./lib/libsupp.a(getopt.o)(.text+0xa3a): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
./lib/libsupp.a(getopt.o)(.text+0xa99): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
./lib/libsupp.a(getopt.o)(.text+0xb04): more undefined references to 
`libintl_gettext' follow
gmake: *** [ftptop] Error 1
*** Error code 2

I could use some help here.

TIA,

Beech

-- 
---------------------------------------------------------------------------------------
Beech Rintoul - Sys. Administrator - beech at alaskaparadise.com
/"\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - 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 - http://www.alaskaparadise.com
---------------------------------------------------------------------------------------











-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20061228/e0dc6ba4/attachment.pgp


More information about the freebsd-ports mailing list