Hi Alexander!

Am 14.11.2009 um 11:19 schrieb Alexander Hansen:

>> snip
> 
> Did you try
> 
> ./configure --with-libiconv-prefix=/sw

When I try this, I get the same error-massage:

configure: error: Iconv is missing.  You can get it from http://gnu.org/,       
          or try using --with-libiconv-prefix.

> 
> 
> ?  It's not clear from the above text exactly what you put in for the
> prefix.  For that matter, if you're building it manually, you're free to
> use
> 
> ./configure --with-libiconv-prefix=/usr
> 
> You should also check for a config.log file in the freeciv build
> directory, because that may tell you what is going on.  It's possible,
> for example, that the iconv test also uses something else, and _that_
> might be missing.

There are some errors, I only copy what seems important to me, because the 
whole log is so long:

configure:2757: checking whether we are using the GNU C compiler
configure:2781: gcc -c -I/sw/include -I/sw/include conftest.c >&5
configure:2787: $? = 0
configure:2790: test -z                          || test ! -s conftest.err
configure:2793: $? = 0
configure:2796: test -s conftest.o
configure:2799: $? = 0
configure:2812: result: yes
configure:2818: checking whether gcc accepts -g
configure:2839: gcc -c -g -I/sw/include conftest.c >&5
configure:2845: $? = 0
configure:2848: test -z                          || test ! -s conftest.err
configure:2851: $? = 0
configure:2854: test -s conftest.o
configure:2857: $? = 0
configure:2868: result: yes
configure:2885: checking for gcc option to accept ANSI C
configure:2955: gcc  -c -I/sw/include -I/sw/include conftest.c >&5
configure:2961: $? = 0
configure:2964: test -z                          || test ! -s conftest.err
configure:2967: $? = 0
configure:2970: test -s conftest.o
configure:2973: $? = 0
configure:2991: result: none needed
configure:3009: gcc -c -I/sw/include -I/sw/include conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'me'
configure:3015: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif

...

| #include <ac_nonexistent.h>
configure:3442: result: gcc -E
configure:3466: gcc -E -I/sw/include conftest.c
configure:3472: $? = 0
configure:3504: gcc -E -I/sw/include conftest.c
conftest.c:19:28: error: ac_nonexistent.h: No such file or directory
configure:3510: $? = 1
configure: failed program was:
| /* confdefs.h.  */


...

#include <ac_nonexistent.h>
configure:3553: checking whether ln -s works
configure:3557: result: yes
configure:3605: checking for ranlib
configure:3621: found /usr/bin/ranlib
configure:3632: result: ranlib
configure:3685: checking for ar
configure:3701: found /usr/bin/ar
configure:3711: result: ar
configure:3731: checking for uname
configure:3747: found /usr/bin/uname
configure:3758: result: uname
configure:3782: checking for iconv
configure:3809: gcc -o conftest -I/sw/include -I/sw/include -I/sw/include 
-L/sw/lib -L/sw/lib conftest.c  >&5
Undefined symbols:
  "_libiconv_open", referenced from:
      _main in cc8avtuw.o
  "_libiconv", referenced from:
      _main in cc8avtuw.o
  "_libiconv_close", referenced from:
      _main in cc8avtuw.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:3815: $? = 1
configure: failed program was:
| /* confdefs.h.  */

...

| #include <stdlib.h>
| #include <iconv.h>
| int
| main ()
| {
| iconv_t cd = iconv_open("","");
|        iconv(cd,NULL,NULL,NULL,NULL);
|        iconv_close(cd);
|   ;
|   return 0;
| }
configure:3859: gcc -o conftest -I/sw/include -I/sw/include -I/sw/include 
-L/sw/lib -L/sw/lib conftest.c  -liconv >&5
ld: warning: in /sw/lib/libiconv.dylib, file is not of required architecture
Undefined symbols:
  "_libiconv_open", referenced from:
      _main in ccFUvWXY.o
  "_libiconv", referenced from:
      _main in ccFUvWXY.o
  "_libiconv_close", referenced from:
      _main in ccFUvWXY.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:3865: $? = 1
configure: failed program was:
| /* confdefs.h.  */

...

| #include <stdlib.h>
| #include <iconv.h>
| int
| main ()
| {
| iconv_t cd = iconv_open("","");
|          iconv(cd,NULL,NULL,NULL,NULL);
|          iconv_close(cd);
|   ;
|   return 0;
| }
configure:3892: result: no, consider installing GNU libiconv
configure:3983: checking for libcharset
configure:4006: gcc -o conftest -I/sw/include -I/sw/include -I/sw/include 
-L/sw/lib -L/sw/lib conftest.c   >&5
Undefined symbols:
  "_locale_charset", referenced from:
      _main in ccldV4d9.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:4012: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define FC_CONFIG_H 1
| #define MAJOR_VERSION 2
| #define MINOR_VERSION 0
| #define PATCH_VERSION 4
| #define VERSION_LABEL ""
| #define VERSION_STRING "2.0.4"
| #define IS_DEVEL_VERSION 0
| #define IS_BETA_VERSION 0
| #define PACKAGE "freeciv"
| #define VERSION "2.0.4"
| /* end confdefs.h.  */
| #include <libcharset.h>
| int
| main ()
| {
| locale_charset()
|   ;
|   return 0;
| }
configure:4038: result: no
configure:4049: checking for nl_langinfo and CODESET
configure:4070: gcc -o conftest -I/sw/include -I/sw/include -I/sw/include 
-L/sw/lib -L/sw/lib conftest.c  >&5
configure:4076: $? = 0
configure:4079: test -z                          || test ! -s conftest.err
configure:4082: $? = 0
configure:4085: test -s conftest
configure:4088: $? = 0
configure:4101: result: yes
configure:4113: error: Iconv is missing.  You can get it from http://gnu.org/,  
               or try using --with-libiconv-prefix.


Perhaps that helps solving my problem?

Thank you very much!

Ralf

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to