Mailing List Archive

perl 5.001n trouble in Digital UNIX 3.2C (nee OSF/1)
From clean slate Configure -ders, fine until:

umask 0 && cp DProf.pm ../../../lib/Devel/DProf.pm
../../../miniperl -I../../../lib -I../../../lib ../../../lib/ExtUtils/xsubpp -typemap ../../../lib/ExtUtils/typemap DProf.xs >DProf.tc && mv DProf.tc DProf.c
cc -c -DSTANDARD_C -O2 -Olimit 2900 -DVERSION=\"Apr5,1995\" -I../../.. DProf.c
Running Mkbootstrap for Devel::DProf ()
chmod 644 DProf.bs
ar cr tmp.10 211 201 0 10LIB_EXT) DProf.o
sh: syntax error at line 1: `)' unexpected
*** Exit 2
Stop.
*** Error code 1
pmake: 1 error

ext/Devel/DProf/Makefile:
$(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)/.exists $(EXPORT_LIST) $(PERL_ARCHIVE)FLAGS) $(MYEXTLIB) $(LDLOADLIBS) $(EXPORT_LIST) $( $(ARMAYBE) cr tmp.10 211 201 0 10LIB_EXT) $(OBJECT)
$(RANLIB) tmp.10 211 201 0 10LIB_EXT)
LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@ $(LDDLFLAGS) -all tmp.10 211 201 0 10LIB_EXT) -none $(OTHERLDFLAGS) $(MYEXTLIB) $(LDLOADLIBS) $(EXPORT_LIST) $(PERL_ARCHIVE)er static section:
$(CHMOD) 755 $@
@echo $@ >> $(INST_ARCHAUTODIR)/.packlist

Fascinating, that "tmp.10 211 201 0 10LIB_EXT)" part.
Where does it come from? At least it is not in config.sh.
MakeMaker 5.00? What is supposed to read in there? The "10 211 ..."
stuff is not in my environment (as in %ENV or getenv()), that I checked.

The same thing in Fcntl, ODBM_File, NDBM_File, POSIX, Socket.

Also:

: libsdbm.a
sh: -cd: not found
*** Exit 1
Stop.
*** Error code 1

(that one must be the @-cd vs @- cd issue someone already mentioned)

++jhi;
Re: perl 5.001n trouble in Digital UNIX 3.2C (nee OSF/1) [ In reply to ]
jhi>ext/Devel/DProf/Makefile:
jhi>$(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)/.exists $(EXPORT_LIST) $(PERL_ARCHIVE)FLAGS) $(MYEXTLIB) $(LDLOADLIBS) $(EXPORT_LIST) $( $(ARMAYBE) cr tmp.10 211 201 0 10LIB_EXT) $(OBJECT)
jhi> $(RANLIB) tmp.10 211 201 0 10LIB_EXT)
jhi> LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@ $(LDDLFLAGS) -all tmp.10 211 201 0 10LIB_EXT) -none $(OTHERLDFLAGS) $(MYEXTLIB) $(LDLOADLIBS) $(EXPORT_LIST) $(PERL_ARCHIVE)er static section:
jhi> $(CHMOD) 755 $@
jhi> @echo $@ >> $(INST_ARCHAUTODIR)/.packlist

nick> I think it is perl interpolating $( - and returning a list of groups.
nick> There is a missing \ somewhere.

Yup! How stupid of me, how did I not remember that I belong to
those groups...now where's that \ not...

++jhi;
Re: perl 5.001n trouble in Digital UNIX 3.2C (nee OSF/1) [ In reply to ]
> From: Jarkko Hietaniemi <jhi@epsilon.hut.fi>
>
> LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@ $(LDDLFLAGS) -all tmp.10 211 201 0 10LIB_EXT) -none $(OTHERLDFLAGS) $(MYEXTLIB) $(LDLOADLIBS) $(EXPORT_LIST) $(PERL_ARCHIVE)er static section:
>
> Fascinating, that "tmp.10 211 201 0 10LIB_EXT)" part.

:-) Ah, that's the standard MakeMaker bug!

> Where does it come from?

If you look at the MakeMaker code and think about what $( means to perl it
should be obvious why it's such a common problem. Getting perl to
write Makefiles using double quoted strings gets hairy sometimes.

I think at one point when I was maintaining it I had a little utility
to grep for the little rascals in the built Makefile.

Tim.
Re: perl 5.001n trouble in Digital UNIX 3.2C (nee OSF/1) [ In reply to ]
In <9511011814.AA04977@epsilon.hut.fi>
On Wed, 1 Nov 1995 20:14:18 +0200
Jarkko Hietaniemi <Jarkko.Hietaniemi@hut.fi> writes:
From clean slate Configure -ders, fine until:
>
>umask 0 && cp DProf.pm ../../../lib/Devel/DProf.pm
>../../../miniperl -I../../../lib -I../../../lib ../../../lib/ExtUtils/xsubpp -typemap ../../../lib/ExtUtils/typemap DProf.xs >DProf.tc && mv DProf.tc DProf.c
>cc -c -DSTANDARD_C -O2 -Olimit 2900 -DVERSION=\"Apr5,1995\" -I../../.. DProf.c
>Running Mkbootstrap for Devel::DProf ()
>chmod 644 DProf.bs
>ar cr tmp.10 211 201 0 10LIB_EXT) DProf.o
>sh: syntax error at line 1: `)' unexpected
>*** Exit 2
>Stop.
>*** Error code 1
>pmake: 1 error
>
>ext/Devel/DProf/Makefile:
>$(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)/.exists $(EXPORT_LIST) $(PERL_ARCHIVE)FLAGS) $(MYEXTLIB) $(LDLOADLIBS) $(EXPORT_LIST) $( $(ARMAYBE) cr tmp.10 211 201 0 10LIB_EXT) $(OBJECT)
> $(RANLIB) tmp.10 211 201 0 10LIB_EXT)
> LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@ $(LDDLFLAGS) -all tmp.10 211 201 0 10LIB_EXT) -none $(OTHERLDFLAGS) $(MYEXTLIB) $(LDLOADLIBS) $(EXPORT_LIST) $(PERL_ARCHIVE)er static section:
> $(CHMOD) 755 $@
> @echo $@ >> $(INST_ARCHAUTODIR)/.packlist
>
>Fascinating, that "tmp.10 211 201 0 10LIB_EXT)" part.

I think it is perl interpolating $( - and returning a list of groups.
There is a missing \ somewhere.

>Where does it come from? At least it is not in config.sh.
>MakeMaker 5.00? What is supposed to read in there? The "10 211 ..."
>stuff is not in my environment (as in %ENV or getenv()), that I checked.
>