Building bash 4.2 on an HP-UX/Itanium system:
gmake[1]: Entering directory `/tmp/bash-4.2.build/builtins'
rm -f mkbuiltins.o
cc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I/tg/freeport/src/bash/bash--4.2
-I/tg/freeport/src/bash/bash--4.2/include -I/tg/freeport/src/bash/bash--4.2/lib
-I/tg/freeport/src/bash/bash--4.2/builtins -DHPUX -D_HPUX_API_LEVEL=20040821
-D_HPUX_SOURCE -g /tg/freeport/src/bash/bash--4.2/builtins/mkbuiltins.c
cc +DD64 +DO11.00 +DSblended +Olit=all -mt +w -z +p -Wl,+k +O1 +Onofltacc
+Onolimit +Onosize -g -o mkbuiltins mkbuiltins.o -ldl
ld: Can't find library or mismatched ABI for -ldl
Fatal error.
gmake[1]: *** [mkbuiltins] Error 1
gmake[1]: Leaving directory `/tmp/bash-4.2.build/builtins'
gmake: *** [builtins/builtext.h] Error 1
The attached patch (against the 4.2 source) fixes the problem for me.
--Daniel
--
NAME = Daniel Richard G. _\|/_ Remember, skunks
MAIL = [email protected] (/o|o\) _- don't smell bad---
MAIL+= [email protected] < (^),> it's the people who
WWW = (not there yet!) / \ annoy us that do!
diff -ru bash-4.2/builtins/Makefile.in bash--4.2/builtins/Makefile.in
--- bash-4.2/builtins/Makefile.in 2010-12-21 08:37:18.000000000 -0500
+++ bash--4.2/builtins/Makefile.in 2011-04-20 10:51:16.000000000 -0400
@@ -56,7 +56,7 @@
PROFILE_FLAGS = @PROFILE_FLAGS@
CFLAGS = @CFLAGS@
-CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ @CROSS_COMPILE@
+CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ @CROSS_COMPILE@ $(CFLAGS)
CPPFLAGS = @CPPFLAGS@
CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
LOCAL_CFLAGS = @LOCAL_CFLAGS@ ${DEBUG}