[Expat-discuss] Install issues, lost expat_external.h

pappy@vappy.com pappy at vappy.com
Tue Nov 29 21:26:49 CET 2005


  Hi I'm trying to install expat and then the PERL /XML-Parser-2.34 after that on my AIX 5.x system with root.   It seems as though expat installs OK, but when I go to install the XML-Parser it says it can't find the expat_external.h file (see way on the bottom). Does anybody have any idea what is going on? When I search my system for expat_external.h, it only finds it in the expat install source directory (e.g. /home/earwax/soap/expat-1.95.8/lib/expat_external.h) I would have expected expat_external.h to have been installed on the system, maybe in /usr/local/include?

Output of install attempt below.
  Thanks,   Pappy     /home/earwax/soap/expat-1.95.8 # ./configure checking build system type... powerpc-ibm-aix5.1.0.0 checking host system type... powerpc-ibm-aix5.1.0.0 checking for gcc... gcc checking for C compiler default output... 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 ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking command to parse /usr/bin/nm -B output... ok checking how to run the C preprocessor... gcc -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... no checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... none checking if gcc static flag -static -Wl,-lC works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking dynamic linker characteristics... aix5.1.0.0 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes creating libtool checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for a BSD-compatible install... conftools/install-sh -c checking whether gcc accepts -fexceptions... yes checking for ANSI C header files... (cached) yes checking whether byte ordering is bigendian... yes checking for gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for size_t... yes checking for memmove... yes checking for bcopy... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking for off_t... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... no checking check.h usability... no checking check.h presence... no checking for check.h... no checking for check.h... (cached) no configure: creating ./config.status config.status: creating Makefile config.status: creating expat_config.h /home/earwax/soap/expat-1.95.8 #  Check status and if everything is OK run make as shown below   /home/earwax/soap/expat-1.95.8 # make         /bin/sh ./libtool --silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPA T_CONFIG_H   -I./lib -I. -o lib/xmlparse.lo -c lib/xmlparse.c         /bin/sh ./libtool --silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPA T_CONFIG_H   -I./lib -I. -o lib/xmltok.lo -c lib/xmltok.c         /bin/sh ./libtool --silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPA T_CONFIG_H   -I./lib -I. -o lib/xmlrole.lo -c lib/xmlrole.c         /bin/sh ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_C ONFIG_H   -I./lib -I. -no-undefined -version-info 5:0:5 -rpath /usr/local/lib  -o libexpat.la lib/xmlparse.lo lib/xmltok.lo lib/xmlr ole.lo         gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o xmlwf/xmlwf.o -c xmlwf/xmlwf.c         gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o xmlwf/xmlfile. o -c xmlwf/xmlfile.c         gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o xmlwf/codepage .o -c xmlwf/codepage.c         gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o xmlwf/readfile map.o -c xmlwf/readfilemap.c         /bin/sh ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_C ONFIG_H   -I./lib -I.  -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o libexpat.la Target "default" is up to date. /home/earwax/soap/expat-1.95.8 #  If everything looks good run the make install command as shown below   /home/earwax/soap/expat-1.95.8 # make install         /bin/sh ./conftools/mkinstalldirs /usr/local/lib /usr/local/include mkdir /usr/local/include         /bin/sh ./libtool --mode=install conftools/install-sh -c libexpat.la /usr/local/lib/libexpat.la conftools/install-sh -c .libs/libexpat.a /usr/local/lib/libexpat.a conftools/install-sh -c .libs/libexpat.lai /usr/local/lib/libexpat.la conftools/install-sh -c .libs/libexpat.a /usr/local/lib/libexpat.a ranlib /usr/local/lib/libexpat.a chmod 644 /usr/local/lib/libexpat.a ---------------------------------------------------------------------- Libraries have been installed in:    /usr/local/lib   If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following:    - add LIBDIR to the `LIBPATH' environment variable      during execution    - use the `-Wl,-bnolibpath -Wl,-blibpath:LIBDIR:/usr/lib:/lib' linker flag   See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ----------------------------------------------------------------------         conftools/install-sh -c -m 644 ./lib/expat.h ./lib/expat_external.h /usr/local/include         /bin/sh ./conftools/mkinstalldirs /usr/local/bin /usr/local/man/man1         /bin/sh ./libtool --mode=install conftools/install-sh -c xmlwf/xmlwf /usr/local/bin/xmlwf conftools/install-sh -c xmlwf/.libs/xmlwf /usr/local/bin/xmlwf         conftools/install-sh -c -m 644 ./doc/xmlwf.1 /usr/local/man/man1 /home/earwax/soap/expat-1.95.8 #       /home/earwax/soap/XML-Parser-2.34 # find / -name "libexpat.a" /usr/local/lib/libexpat.a     /home/earwax/soap/XML-Parser-2.34 # find / -name "expat.h" /usr/local/include/expat.h /home/earwax/soap/XML-Parser-2.34 # perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include   Writing Makefile for XML::Parser::Expat Writing Makefile for XML::Parser /home/earwax/soap/XML-Parser-2.34 #    Make the perl file as follows:       Issue - must use cc instead of gcc so use make CC=gcc /home/earwax/soap/XML-Parser-2.34 # make CC=gcc         gcc -c -I/usr/local/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong -O      -DVERSION=\"2.34\"  -DXS_VERSION=\"2.34\"  -I/usr/opt/perl5/lib/5.6.0/aix/CORE  Expat.c gcc: unrecognized option `-qmaxmem=16384' gcc: unrecognized option `-q32' gcc: unrecognized option `-qlonglong' In file included from Expat.xs:12: /usr/local/include/expat.h:18: expat_external.h: A file or directory in the path name does not exist. make: 1254-004 The error code from the last command is 1.     Stop. make: 1254-004 The error code from the last command is 2.     Stop.


More information about the Expat-discuss mailing list