Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2005 10:29:18 +0100
From:      Steve Hodgson <steve@howes-macnaghten.com>
To:        obrien@freebsd.org
Cc:        ports@freebsd.org
Subject:   Re: Problems compiling rdesktop 1.4.1
Message-ID:  <428867EE.7090907@howes-macnaghten.com>
In-Reply-To: <20050516091157.GB4670@dragon.NUXI.org>
References:  <200505151343.07338.steve@howes-macnaghten.com> <20050516091157.GB4670@dragon.NUXI.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <iconv.h>
>>-#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



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