pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lang/perl5 patch for linux

Am 02.06.2014 um 01:42 schrieb Matthias Ferdinand 

> Hi,
> on my linux build hosts, the recent perl-5.20.0 failed to build linking
> With the attached patch the builds finish successfully.
> Though I am not sure if it fixes the true source of the problem, but
> right now I don't have the time to investigate further.
> Error message is always like this:
>    ...
>    rm -f
>    gcc -o -pthread  
> -L/opt/pkgsrc/gcc46/lib/gcc/i686-pc-linux-gnu/4.6.4 -L/opt/pkgsrc/gcc46/lib 
> -L/opt/pkgsrc/gcc46/lib/gcc/i686-pc-linux-gnu/4.6.4/ -L/usr/lib 
> -L/usr/local/lib -fstack-protector op.o perl.o   gv.o toke.o perly.o pad.o 
> regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.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 globals.o perlio.o perlapi.o numeric.o mathoms.o 
> locale.o pp_pack.o pp_sort.o caretx.o   DynaLoader.o -lm -lcrypt -ldl -lnsl 
> -lpthread -lrt
>    /usr/lib/crt1.o: In function `_start':
>    (.text+0x18): undefined reference to `main'
>    collect2: ld returned 1 exit status
>    *** Error code 1
> This gcc invocation succeeds with an additional "-shared" flag, which
> the patch supplies.

Generally (since 5.10) it's recommended to configure correctly before 
patching hints.
adam@ did the update - I suggest he cares.

Jens Rehsack

Home | Main Index | Thread Index | Old Index