[xml] Compilation problems with two version of iconv on Solaris system



Hi,

I'm trying to compile libxml2.6.10 on a Solaris 2.8 UNIX platform.  There are
two versions of iconv on this system, /usr/bin/iconv and
/usr/local/bin/iconv.  I'm trying to use the former iconv so that my compiled
software will work on other similar UNIX boxes.

I configure as follows:

./configure --prefix=/public/data/asddgate --with-iconv=/usr

But when I make I get the following errors:

cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory
In file included from libxml.h:29,
                 from error.c:10:
/usr/include/stdio.h:20: warning: ignoring #pragma ident
In file included from /usr/include/stdio.h:22,
                 from libxml.h:29,
                 from error.c:10:
/usr/include/iso/stdio_iso.h:32: warning: ignoring #pragma ident
In file included from /usr/include/iso/stdio_iso.h:35,
                 from /usr/include/stdio.h:22,
                 from libxml.h:29,
                 from error.c:10:
/usr/include/sys/feature_tests.h:13: warning: ignoring #pragma ident
In file included from /usr/include/sys/feature_tests.h:15,
                 from /usr/include/iso/stdio_iso.h:35,
                 from /usr/include/stdio.h:22,
                 from libxml.h:29,
                 from error.c:10:
/usr/include/sys/isa_defs.h:9: warning: ignoring #pragma ident
In file included from /usr/include/iso/stdio_iso.h:36,
                 from /usr/include/stdio.h:22,
                 from libxml.h:29,
                 from error.c:10:
/usr/include/sys/va_list.h:9: warning: ignoring #pragma ident
In file included from /usr/include/iso/stdio_iso.h:37,
                 from /usr/include/stdio.h:22,
                 from libxml.h:29,
                 from error.c:10:
/usr/include/stdio_tag.h:9: warning: ignoring #pragma ident
In file included from /usr/include/iso/stdio_iso.h:38,
                 from /usr/include/stdio.h:22,
                 from libxml.h:29,
                 from error.c:10:
/usr/include/stdio_impl.h:9: warning: ignoring #pragma ident
In file included from libxml.h:29,
                 from error.c:10:
/usr/include/stdio.h:143: warning: #pragma redefine_extname conflicts with
decla
ration
/usr/include/stdio.h:144: warning: #pragma redefine_extname conflicts with
decla
ration
/usr/include/stdio.h:145: warning: #pragma redefine_extname conflicts with
decla
ration
/usr/include/stdio.h:146: warning: #pragma redefine_extname conflicts with
decla
ration
/usr/include/stdio.h:147: warning: #pragma redefine_extname conflicts with
decla
ration
In file included from error.c:12:
/usr/include/string.h:16: warning: ignoring #pragma ident
In file included from /usr/include/string.h:18,
                 from error.c:12:
/usr/include/iso/string_iso.h:28: warning: ignoring #pragma ident
In file included from error.c:13:
/usr/include/stdarg.h:16: warning: ignoring #pragma ident
In file included from /usr/include/stdarg.h:20,
                 from error.c:13:
/usr/include/iso/stdarg_iso.h:28: warning: ignoring #pragma ident
In file included from include/libxml/encoding.h:28,
                 from include/libxml/parser.h:781,
                 from error.c:14:
/usr/include/iconv.h:8: warning: ignoring #pragma ident
In file included from /usr/include/iconv.h:10,
                 from include/libxml/encoding.h:28,
                 from include/libxml/parser.h:781,
                 from error.c:14:
/usr/include/sys/types.h:16: warning: ignoring #pragma ident
In file included from /usr/include/sys/types.h:24,
                 from /usr/include/iconv.h:10,
                 from include/libxml/encoding.h:28,
                 from include/libxml/parser.h:781,
                 from error.c:14:
/usr/include/sys/machtypes.h:16: warning: ignoring #pragma ident
In file included from /usr/include/sys/types.h:36,
                 from /usr/include/iconv.h:10,
                 from include/libxml/encoding.h:28,
                 from include/libxml/parser.h:781,
                 from error.c:14:
/usr/include/sys/int_types.h:9: warning: ignoring #pragma ident
In file included from /usr/include/sys/types.h:548,
                 from /usr/include/iconv.h:10,
                 from include/libxml/encoding.h:28,
                 from include/libxml/parser.h:781,
                 from error.c:14:
/usr/include/sys/select.h:12: warning: ignoring #pragma ident
In file included from /usr/include/sys/select.h:17,
                 from /usr/include/sys/types.h:548,
                 from /usr/include/iconv.h:10,
                 from include/libxml/encoding.h:28,
                 from include/libxml/parser.h:781,
                 from error.c:14:
/usr/include/sys/time.h:22: warning: ignoring #pragma ident
In file included from /usr/include/sys/time.h:410,
                 from /usr/include/sys/select.h:17,
                 from /usr/include/sys/types.h:548,
                 from /usr/include/iconv.h:10,
                 from include/libxml/encoding.h:28,
                 from include/libxml/parser.h:781,
                 from error.c:14:
/usr/include/time.h:16: warning: ignoring #pragma ident
In file included from /usr/include/time.h:20,
                 from /usr/include/sys/time.h:410,
                 from /usr/include/sys/select.h:17,
                 from /usr/include/sys/types.h:548,
                 from /usr/include/iconv.h:10,
                 from include/libxml/encoding.h:28,
                 from include/libxml/parser.h:781,
                 from error.c:14:
/usr/include/iso/time_iso.h:28: warning: ignoring #pragma ident
In file included from include/libxml/SAX.h:16,
                 from include/libxml/globals.h:20,
                 from include/libxml/xmlIO.h:117,
                 from include/libxml/parser.h:782,
                 from error.c:14:
/usr/include/stdlib.h:16: warning: ignoring #pragma ident
In file included from /usr/include/stdlib.h:18,
                 from include/libxml/SAX.h:16,
                 from include/libxml/globals.h:20,
                 from include/libxml/xmlIO.h:117,
                 from include/libxml/parser.h:782,
                 from error.c:14:
/usr/include/iso/stdlib_iso.h:28: warning: ignoring #pragma ident
error.c: In function `xmlGenericErrorDefaultFunc':
error.c:72: `__builtin_va_alist' undeclared (first use in this function)
error.c:72: (Each undeclared identifier is reported only once
error.c:72: for each function it appears in.)
error.c: In function `__xmlRaiseError':
error.c:478: `__builtin_va_alist' undeclared (first use in this function)
error.c:478: warning: implicit declaration of function `vsnprintf'
error.c: In function `xmlParserError':
error.c:636: `__builtin_va_alist' undeclared (first use in this function)
error.c: In function `xmlParserWarning':
error.c:679: `__builtin_va_alist' undeclared (first use in this function)
error.c: In function `xmlParserValidityError':
error.c:734: `__builtin_va_alist' undeclared (first use in this function)
error.c: In function `xmlParserValidityWarning':
error.c:770: `__builtin_va_alist' undeclared (first use in this function)
make[2]: *** [error.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


If I configure as follows:

./configure --prefix=/public/data/asddgate 

It can't seem to find the iconv stuff as follows:

...
checking for pthread.h... yes
checking for pthread_join in -lpthread... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv... no
checking for iconv in -liconv... yes
Enabled Schemas/Relax-NG support
configure: creating ./config.status
config.status: creating libxml2.spec
config.status: creating Makefile
...

Can someone help me with this problem?

Thanks.

John Hockaday
Geoscience Australia
GPO Box 378
Canberra ACT 2601
(02) 6249 9735
http://www.ga.gov.au/ 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]