Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2006 12:53:02 -0900
From:      Beech Rintoul <freebsd@alaskaparadise.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: [Proftpd-user] proftpd build error
Message-ID:  <200612281253.15575.freebsd@alaskaparadise.com>
In-Reply-To: <200612281116.00825.beech@alaskaparadise.com>
References:  <200612261425.37302.beech@alaskaparadise.com> <Pine.LNX.4.58.0612270130180.31040@mercury.skynetbb.com> <200612281116.00825.beech@alaskaparadise.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1848970.rW41gYLkcD
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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 i=
t?

I fixed the build with the following patches:

=2D-- 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=3Dmod_wrap2
=20
 # Necessary redefinitions
=2DINCLUDES=3D-I. -I../.. -I../../include
+INCLUDES=3D-I. -I../.. -I../../include -I/usr/local/include
 CPPFLAGS=3D -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES)
 LDFLAGS=3D-L../../lib

=2D-- 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
=20
=2D#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
=20
 /* This version of `getopt' appears to the caller like standard Unix `geto=
pt'

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=20
utils/scoreboard.o -lncurses -lsupp
=2E/lib/libsupp.a(getopt.o)(.text+0x5c5): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
=2E/lib/libsupp.a(getopt.o)(.text+0x687): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
=2E/lib/libsupp.a(getopt.o)(.text+0x8b1): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
=2E/lib/libsupp.a(getopt.o)(.text+0xa3a): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
=2E/lib/libsupp.a(getopt.o)(.text+0xa99): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
=2E/lib/libsupp.a(getopt.o)(.text+0xb04): more undefined references to=20
`libintl_gettext' follow
gmake: *** [ftptop] Error 1
*** Error code 2

I could use some help here.

TIA,

Beech

=2D-=20
=2D------------------------------------------------------------------------=
=2D-------------
Beech Rintoul - Sys. Administrator - beech@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
=2D------------------------------------------------------------------------=
=2D-------------












--nextPart1848970.rW41gYLkcD
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQBFlDzLR5sEeCt9j00RAg3IAJ92pkDI0bGI9CwTNJ5aHgQhNPP8RwCfSE16
MYrjrRi2Ud3TpQSaiY7aKuE=
=+2xT
-----END PGP SIGNATURE-----

--nextPart1848970.rW41gYLkcD--



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