Re: [Freeciv-Dev] distcheck fails (Mac)
On 3 Jul, 2011, at 6:11 PM, Daniel Markstedt wrote: > configure: error: Iconv is missing. You can get libiconv from > http://gnu.org/, or try using --with-libiconv-prefix. > make: *** [distcheck] Error 1 > > (full log attached) There is a known issue with libiconv on Snow Leopard: *) SL compiles 64 bit programs by default. *) The 64 bit version of libiconv supplied by Apple gives 'standardized' names like iconv_open() rather than the commonly used libiconv_open() [which is included in the 32 bit library alongside iconv_open()]. *) This problem bites users trying to compile glib and possibly others i'm not aware of. *) Fixes include forcing 32 bit compilation [i386] or patching the code. *) Apple has closed bug reports for this behavior with: "Engineering has determined that this issue behaves as intended..."; i don't expect this issue to improve when Lion is released. I don't speak configure well enough to understand how our configure is checking this, so this may or may not have any relevance to your case. Sent from my MacBookPro Ignorance must certainly be bliss or there wouldn't be so many people so resolutely pursuing it. ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] distcheck fails (Mac)
On Mon, Jul 4, 2011 at 11:59 AM, Marko Lindqvist wrote: > On 4 July 2011 04:11, Daniel Markstedt wrote: >> Running 'make distcheck' on the most recent S2_2 on this MacBook >> running Snow Leopard results in... >> >> configure: error: Iconv is missing. You can get libiconv from >> http://gnu.org/, or try using --with-libiconv-prefix. >> make: *** [distcheck] Error 1 >> >> (full log attached) >> >> Tried to play around with "--with-libiconv-prefix" but it's not a >> recognized argument for distcheck (so I guess this suggestion should >> not appear when running 'make distcheck'.) > > I cannot reproduce in linux. > > I assume you don't usually need to pass --with-libicon-prefix to > configure? And had not passed one when originally configured? > > > > - ML > Well, when I run configure directly without prefixes it works out of the box. This is a problem only when doing make distcheck. Daniel ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] distcheck fails (Mac)
On 4 July 2011 04:11, Daniel Markstedt wrote: > Running 'make distcheck' on the most recent S2_2 on this MacBook > running Snow Leopard results in... > > configure: error: Iconv is missing. You can get libiconv from > http://gnu.org/, or try using --with-libiconv-prefix. > make: *** [distcheck] Error 1 > > (full log attached) > > Tried to play around with "--with-libiconv-prefix" but it's not a > recognized argument for distcheck (so I guess this suggestion should > not appear when running 'make distcheck'.) I cannot reproduce in linux. I assume you don't usually need to pass --with-libicon-prefix to configure? And had not passed one when originally configured? - ML ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] distcheck fails (Mac)
On Sun, Jul 3, 2011 at 9:34 PM, Marko Lindqvist wrote: > On 4 July 2011 07:20, Daniel Markstedt wrote: >> Getting errors also with 'make dist': >> >> make[2]: ../../dependencies/tolua-5.1/src/bin/tolua: No such file or >> directory >> make[2]: *** [api_gen.c] Error 1 >> make[1]: *** [distdir] Error 1 >> make: *** [distdir] Error 1 >> >> (full log attached) >> >> Related to the changes to bootstrap in bug #18263? > > I think this problem has existed forever. You cannot do 'make dist' > in pristine tree, but you have to compile once first so that you get > 'tolua' (or to have up-to-date generated api-files without generating > them with tolua) > Indeed, I had forgotten about this little detail. Thanks. > >> On Sun, Jul 3, 2011 at 6:11 PM, Daniel Markstedt wrote: >>> Running 'make distcheck' on the most recent S2_2 on this MacBook >>> running Snow Leopard results in... >>> >>> configure: error: Iconv is missing. You can get libiconv from >>> http://gnu.org/, or try using --with-libiconv-prefix. >>> make: *** [distcheck] Error 1 >>> >>> (full log attached) >>> >>> Tried to play around with "--with-libiconv-prefix" but it's not a >>> recognized argument for distcheck (so I guess this suggestion should >>> not appear when running 'make distcheck'.) > > As you see it's 'configure' (run my make) that prints the error, not > 'make' itself. So it's not argument to give to 'make'. Other than > that, I have no clue what might be the cause and how to fix this. I'll > try to investigate as soon as I have time (others hopefully beat me to > it). > > > - ML > ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] distcheck fails (Mac)
On 4 July 2011 07:20, Daniel Markstedt wrote: > Getting errors also with 'make dist': > > make[2]: ../../dependencies/tolua-5.1/src/bin/tolua: No such file or directory > make[2]: *** [api_gen.c] Error 1 > make[1]: *** [distdir] Error 1 > make: *** [distdir] Error 1 > > (full log attached) > > Related to the changes to bootstrap in bug #18263? I think this problem has existed forever. You cannot do 'make dist' in pristine tree, but you have to compile once first so that you get 'tolua' (or to have up-to-date generated api-files without generating them with tolua) > On Sun, Jul 3, 2011 at 6:11 PM, Daniel Markstedt wrote: >> Running 'make distcheck' on the most recent S2_2 on this MacBook >> running Snow Leopard results in... >> >> configure: error: Iconv is missing. You can get libiconv from >> http://gnu.org/, or try using --with-libiconv-prefix. >> make: *** [distcheck] Error 1 >> >> (full log attached) >> >> Tried to play around with "--with-libiconv-prefix" but it's not a >> recognized argument for distcheck (so I guess this suggestion should >> not appear when running 'make distcheck'.) As you see it's 'configure' (run my make) that prints the error, not 'make' itself. So it's not argument to give to 'make'. Other than that, I have no clue what might be the cause and how to fix this. I'll try to investigate as soon as I have time (others hopefully beat me to it). - ML ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] distcheck fails (Mac)
Getting errors also with 'make dist': make[2]: ../../dependencies/tolua-5.1/src/bin/tolua: No such file or directory make[2]: *** [api_gen.c] Error 1 make[1]: *** [distdir] Error 1 make: *** [distdir] Error 1 (full log attached) Related to the changes to bootstrap in bug #18263? Anyhow, it's getting late over here so I'll call it a day and investigate further tomorrow. Daniel On Sun, Jul 3, 2011 at 6:11 PM, Daniel Markstedt wrote: > Running 'make distcheck' on the most recent S2_2 on this MacBook > running Snow Leopard results in... > > configure: error: Iconv is missing. You can get libiconv from > http://gnu.org/, or try using --with-libiconv-prefix. > make: *** [distcheck] Error 1 > > (full log attached) > > Tried to play around with "--with-libiconv-prefix" but it's not a > recognized argument for distcheck (so I guess this suggestion should > not appear when running 'make distcheck'.) > > OTOH, a straight './configure' on the same code does not trigger the error: > > checking for iconv... yes > checking for working iconv... yes > checking how to link with libiconv... -L/usr/local/lib -liconv > checking for iconv declaration... install-shextern size_t iconv > (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, > size_t *outbytesleft); > > I'm at a loss at to how to keep debugging > > Daniel > $ ./autogen.sh && make dist + checking for autoconf >= 2.55 ... found 2.64, ok. + checking for autoheader >= 2.55 ... found 2.64, ok. + checking for automake >= 1.6 ... found 1.11, ok. + checking for aclocal >= 1.6 ... found 1.11, ok. + checking for libtoolize >= 1.4.3 ... found 2.2.6, ok. + checking for xgettext >= 0.10.36 ... found 0.17, ok. + checking for msgfmt >= 0.10.36 ... found 0.17, ok. + running aclocal ... /opt/local/share/aclocal/autotrace.m4:7: warning: underquoted definition of AM_PATH_AUTOTRACE /opt/local/share/aclocal/autotrace.m4:7: run info '(automake)Extending aclocal' /opt/local/share/aclocal/autotrace.m4:7: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal + running autoheader ... + running autoconf ... + running libtoolize ... libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `bootstrap'. libtoolize: linking file `bootstrap/ltmain.sh' libtoolize: putting macros in `m4'. libtoolize: linking file `m4/libtool.m4' libtoolize: linking file `m4/ltoptions.m4' libtoolize: linking file `m4/ltsugar.m4' libtoolize: linking file `m4/ltversion.m4' libtoolize: linking file `m4/lt~obsolete.m4' libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. + running automake ... configure.ac:10: installing `bootstrap/config.guess' configure.ac:10: installing `bootstrap/config.sub' configure.ac:57: installing `bootstrap/install-sh' configure.ac:57: installing `bootstrap/missing' ai/Makefile.am: installing `bootstrap/depcomp' common/Makefile.am:98: `%'-style pattern rules are a GNU make extension utility/Makefile.am:62: `%'-style pattern rules are a GNU make extension + removing config.cache ... + running configure ... I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. checking build system type... i386-apple-darwin10.7.0 checking host system type... i386-apple-darwin10.7.0 checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes 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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... bootstrap/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gethostbyname2... yes checking for inet_pton... yes checking for inet_ntop... yes checking for getnameinfo... yes checking for AF_INET6... yes checking for a sed that do