Ralf S. Engelschall wrote:
On Wed, Jan 04, 2006, Doug Summers wrote:


Using the contributed Zen 2.1 binaries I was able to build the following
packages for Tru64 5.1:

openpkg-2.5.1-2.5.1
m4-1.4.3-2.5.0
binutils-2.16.1-2.5.0
make-3.80-2.5.0
libiconv-1.10-2.5.0
gcc-4.0.2-2.5.0

I'm stuck building perl (seems to be a major sticking point with the
fringe OS's as I'm also stuck on HPUX for Itanium), getting the
neverending message:

(Feeding myself to /bin/sh to avoid Digital UNIX' ksh.)

Any idea how to avoid this???


Seems that is is exec'ing itself again and again with the /bin/sh as
it thinks it is running under /bin/ksh but on your platform /bin/sh
is actually already KSH. The Perl "Configure" script has an explicit
code for Tru64/OSF1 in line 128ff, including some strange $BIN_SH
things.

I don't know why this code doesn't work as expected on your Tru64
5.1, but as the code seems to be for a rather old OSF1 version (and
Tru64 5.1 should no longer have such a broken KSH) I would just try
to remove the whole lines 128-134 with a patch hunk and try again.

Or even more precise: patch the "if test X`/usr/bin/uname -s` = XOSF1;
then" to something like "if test X`/usr/bin/uname -s` = XOSF1 && test
"X`/usr/bin/uname -r`" = X5.1; then". But check the output of your
"/usr/bin/uname -r" first. If it works I can commit such a patch to the
"perl" package.

                                       Ralf S. Engelschall
For a quick test I'm able to get past this recursion by symlinking /bin/sh to OpenPKG's lib/bash. I'm now getting these errors (/usr/bin/cc or gcc, with or without binutils installed):

rm -f libperl.a
/syscfg/opkg/bin/ar rcu libperl.a perl.o gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o locale.o pp_pack.o pp_sort.o
`sh  cflags "optimize='-O2'" opmini.o`  -DPERL_EXTERNAL_GLOB opmini.c
CCCMD = /syscfg/opkg/bin/cc -DPERL_CORE -c -ansi -fno-strict-aliasing -I/syscfg/opkg/include -DLANGUAGE_C -O2 -Wall
/syscfg/opkg/bin/cc -L/syscfg/opkg/lib -o miniperl \
    miniperlmain.o opmini.o libperl.a -lutil
frexp
pow
floor
fmod
atan2
sin
cos
exp
log
sqrt
ceil
modf
collect2: ld returned 1 exit status

Doug
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to