From owner-freebsd-ports@FreeBSD.ORG Mon May 16 09:29:20 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D319516A4D0 for ; Mon, 16 May 2005 09:29:20 +0000 (GMT) Received: from acidy.com (iade006wl01.blackmesh.com [216.66.28.50]) by mx1.FreeBSD.org (Postfix) with SMTP id 1D67243D83 for ; Mon, 16 May 2005 09:29:20 +0000 (GMT) (envelope-from steve@howes-macnaghten.com) Received: (qmail 19379 invoked by uid 512); 16 May 2005 09:29:19 -0000 Received: from steve@howes-macnaghten.com by terrence by uid 510 with qmail-scanner-1.21st (clamdscan: 0.70rc. spamassassin: 2.63. Clear:RC:1(212.44.26.32):. Processed in 0.133447 secs); 16 May 2005 09:29:19 -0000 Received: from no-reverse.dialnet.com (HELO apollo.howes-macnaghten.com) (212.44.26.32) by acidy.com with SMTP; 16 May 2005 09:29:19 -0000 Received: from [192.168.42.70] ([192.168.42.70]) by apollo.howes-macnaghten.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 16 May 2005 10:29:18 +0100 Message-ID: <428867EE.7090907@howes-macnaghten.com> Date: Mon, 16 May 2005 10:29:18 +0100 From: Steve Hodgson User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: obrien@freebsd.org References: <200505151343.07338.steve@howes-macnaghten.com> <20050516091157.GB4670@dragon.NUXI.org> In-Reply-To: <20050516091157.GB4670@dragon.NUXI.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 May 2005 09:29:18.0686 (UTC) FILETIME=[BC1097E0:01C559F9] cc: ports@freebsd.org Subject: Re: Problems compiling rdesktop 1.4.1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 09:29:21 -0000 David O'Brien wrote: > On Sun, May 15, 2005 at 01:43:07PM +0100, Steve Hodgson wrote: > >>I'm having problems compiling net/rdesktop on two machines, a RELENG_5 and a >>RELENG_5_3 box, with the following error > > .. > >>-DKEYMAP_PATH=\"/usr/local/share/rdesktop/keymaps/\" -o rdp.o -c rdp.c >>rdp.c: In function `rdp_out_unistr': >>rdp.c:164: error: syntax error before "iconv_h" >>rdp.c:171: error: `iconv_h' undeclared (first use in this function) >>rdp.c:171: error: (Each undeclared identifier is reported only once >>rdp.c:171: error: for each function it appears in.) >>rdp.c:171: error: `iconv_t' undeclared (first use in this function) >>rdp.c:174: warning: implicit declaration of function `iconv_open' >>rdp.c:183: warning: implicit declaration of function `iconv' >>rdp.c:186: warning: implicit declaration of function `iconv_close' >>rdp.c: In function `rdp_in_unistr': >>rdp.c:239: error: syntax error before "iconv_h" >>rdp.c:243: error: `iconv_h' undeclared (first use in this function) >>rdp.c:243: error: `iconv_t' undeclared (first use in this function) >>*** Error code 1 >> >>The following patch fixes this for me... >> >>--- rdp.c.orig Sun May 15 13:37:47 2005 >>+++ rdp.c Sun May 15 13:37:53 2005 >>@@ -24,9 +24,7 @@ >> #include "rdesktop.h" >> >> #ifdef HAVE_ICONV >>-#ifdef HAVE_ICONV_H >> #include >>-#endif > > > What is the output of the 'make configure' step? > ===> Extracting for rdesktop-1.4.1 => Checksum OK for rdesktop-1.4.1.tar.gz. ===> Patching for rdesktop-1.4.1 ===> Applying FreeBSD patches for rdesktop-1.4.1 ===> rdesktop-1.4.1 depends on file: /usr/local/lib/libcrypto.so.3 - found ===> rdesktop-1.4.1 depends on executable: gmake - found ===> rdesktop-1.4.1 depends on shared library: X11.6 - found ===> Configuring for rdesktop-1.4.1 checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking how to run the C preprocessor... cc -E checking for egrep... grep -E checking for ANSI C header files... yes checking whether byte ordering is bigendian... no checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for library containing socket... none required checking for library containing inet_aton... none required checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/modem.h usability... no checking sys/modem.h presence... no checking for sys/modem.h... no checking sys/filio.h usability... yes checking sys/filio.h presence... yes checking for sys/filio.h... yes checking sys/strtio.h usability... no checking sys/strtio.h presence... no checking for sys/strtio.h... no checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking iconv.h usability... no checking iconv.h presence... no checking for iconv.h... no checking for OpenSSL directory... /usr/local checking if architecture needs alignment... no checking ao/ao.h usability... no checking ao/ao.h presence... no checking for ao/ao.h... no checking sys/soundcard.h usability... yes checking sys/soundcard.h presence... yes checking for sys/soundcard.h... yes checking dmedia/audio.h usability... no checking dmedia/audio.h presence... no checking for dmedia/audio.h... no checking sys/audioio.h usability... no checking sys/audioio.h presence... no checking for sys/audioio.h... no checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for dirfd... no checking whether dirfd is declared... yes checking whether dirfd is a macro... yes checking for iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for socklen_t... yes checking sys/vfs.h usability... no checking sys/vfs.h presence... no checking for sys/vfs.h... no checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking sys/statfs.h usability... no checking sys/statfs.h presence... no checking for sys/statfs.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for sys/mount.h... yes configure: checking how to get filesystem space usage... checking statvfs64 function (SVR4)... no checking statvfs function (SVR4)... yes checking for struct statfs.f_namemax... no checking for struct statvfs.f_namemax... yes checking for struct statfs.f_namelen... no checking for struct statvfs.f_namelen... no checking mntent.h usability... no checking mntent.h presence... no checking for mntent.h... no checking for setmntent... no checking build system type... i386-unknown-freebsd5.3 checking host system type... i386-unknown-freebsd5.3 configure: creating ./config.status config.status: creating Makefile Hope this helps Steve