[Expat-bugs] [ expat-Bugs-225690 ] expat libtools script fails on AIX 4.1.5

noreply@sourceforge.net noreply@sourceforge.net
Wed, 04 Apr 2001 18:44:42 -0700


Bugs item #225690, was updated on 2000-12-13 09:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=225690&group_id=10127

Category: Build control
Group: None
>Status: Closed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: expat libtools script fails on AIX 4.1.5

Initial Comment:
% configure --prefix=~/bin 
loading cache ./config.cache
checking host system type... rs6000-ibm-aix4.1.5.0
checking build system type... rs6000-ibm-aix4.1.5.0
checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/intel/97r1/lib/gcc-lib/hppa1.1-hp-hpux10.20/cygnus-2.7-96q4/ld
checking if the linker (/usr/intel/97r1/lib/gcc-lib/hppa1.1-hp-hpux10.20/cygnus-2.7-96q4/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/ucb/nm -p
checking whether ln -s works... (cached) yes
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for gcc option to produce PIC... none
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 if gcc static flag -static -Wl,-lC works... -static -Wl,-lC
checking if the linker (/usr/intel/97r1/lib/gcc-lib/hppa1.1-hp-hpux10.20/cygnus-2.7-96q4/ld) is GNU ld... no
checking whether the linker (/usr/intel/97r1/lib/gcc-lib/hppa1.1-hp-hpux10.20/cygnus-2.7-96q4/ld) supports shared libraries... yes
checking command to parse /usr/ucb/nm -p output... conftools/ltconfig[1657]: /usr/ucb/nm:  not found
conftools/ltconfig[1657]: /usr/ucb/nm:  not found
failed
checking how to hardcode library paths into programs... relink
checking for /usr/intel/97r1/lib/gcc-lib/hppa1.1-hp-hpux10.20/cygnus-2.7-96q4/ld option to reload object files... -r
checking dynamic linker characteristics... aix4.1.5.0 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/intel/bin/ginstall -c
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking whether byte ordering is bigendian... (cached) yes
checking for working const... (cached) yes
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for 8-bit clean memcmp... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) no
checking for memmove... (cached) yes
checking for bcopy... (cached) yes
creating ./config.status
creating Makefile
creating lib/Makefile
creating xmlwf/Makefile
creating examples/Makefile
creating config.h
config.h is unchanged

% make
Target "all" is up to date.

% make install
        /bin/sh ../libtool --mode=link  gcc -version-info 0:1:0 -g -O2  -o libexpat.la -rpath ~/bin/lib  xmlparse.lo xmltok.lo xmlrole.lo
rm -fr .libs/libexpat.la .libs/libexpat.* .libs/libexpat.*
generating symbol list for `libexpat.la'
/usr/ucb/nm -p  xmlparse.o xmltok.o xmlrole.o   |  | sed 's/.* //' | sort | uniq > .libs/libexpat.exp
../libtool[2351]: syntax error at line 1 : `|' unexpected
make: 1254-004 The error code from the last command is 2.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-04-04 18:44

Message:
Logged In: YES 
user_id=3066

Closing this since the offending options have been removed from the makefiles.  If you have further difficulties, please open a new bug report with appropriate information.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2001-01-18 10:24

Message:
I have found this same problem in AIX 4.3.2 with C for AIX V5.  I found a workaround that will allow you to compile expat, but I don't know if it has any other side effects.  In order to build the library, remove the "-Wp,-MD,.deps/$(*F).pp" from the Makefile in both the .c.o and .c.lo stanzas.  Then, run make IN THAT DIRECTORY.  It still will not work from the root source directory, but all the necessary files will be compiled and the library will be generated.  You can run "make install" from the root source directory.  This has worked for me and I haven't had any problems using the library.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2001-01-02 09:39

Message:
I got the same problem on Aix 4.3.2 with C for Aix 4.4 :

bash-2.04# ./configure
creating cache ./config.cache
checking host system type... powerpc-ibm-aix4.3.1.0
checking build system type... powerpc-ibm-aix4.3.1.0
checking for ranlib... ranlib
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking whether we are using GNU C... no
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... none
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc static flag -bnso -bI:/lib/syscalls.exp works... -bnso -bI:/lib/syscalls.exp
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... aix4.3.1.0 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for gcc... (cached) cc
checking whether the C compiler (cc -g ) works... yes
checking whether the C compiler (cc -g ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) yes
checking for a BSD compatible install... conftools/install-sh -c
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... yes
checking for working const... yes
checking for off_t... yes
checking for size_t... yes
checking for 8-bit clean memcmp... yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for memmove... yes
checking for bcopy... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating lib/Makefile
creating xmlwf/Makefile
creating examples/Makefile
creating config.h


bash-2.04# make
La cible "all" est à jour.


bash-2.04# make install
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -DPACKAGE=expat -DVERSION=expat_1.95.1 -I. -I..  -g -c xmlparse.c
cc -DHAVE_CONFIG_H -DPACKAGE=\expat\ -DVERSION=\expat_1.95.1\ -I. -I.. -g -Wp,-MD,.deps/xmlparse.pp -c xmlparse.c  -DPIC -o xmlparse.lo
1506-173 (W) Option MD is not valid.  Enter xlc for list of valid options.
1506-297 (S) Unable to open input file xmlparse.lo. No such file or directory.
"xmlparse.lo", line 1.1: 1506-356 (W) Compilation unit is empty.
make : 1254-004 Code d'erreur de la dernière commande : 1.


Arrêt.
make : 1254-004 Code d'erreur de la dernière commande : 2.


Arrêt.
bash-2.04#

Then I tried:
bash-2.04# cd lib

bash-2.04# make
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -DPACKAGE=expat -DVERSION=expat_1.95.1 -I. -I..  -g -c xmlparse.c
cc -DHAVE_CONFIG_H -DPACKAGE=\expat\ -DVERSION=\expat_1.95.1\ -I. -I.. -g -Wp,-MD,.deps/xmlparse.pp -c xmlparse.c  -DPIC -o xmlparse.lo
1506-173 (W) Option MD is not valid.  Enter xlc for list of valid options.
1506-297 (S) Unable to open input file xmlparse.lo. No such file or directory.
"xmlparse.lo", line 1.1: 1506-356 (W) Compilation unit is empty.
make : 1254-004 Code d'erreur de la dernière commande : 1.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=225690&group_id=10127