Perl Ch5.25 uClibc problem. [solved]

Brian Cheeseman briancheeseman at aapt.net.au
Thu Jul 19 05:54:47 MDT 2007


Brian Cheeseman wrote:
> All,
> Has anyone managed to compile the Perl utils in chapter 5? I keep
> getting errors compiling toke.c. Searches on the internet show the same
> error, but no solutions.
>
> The build output I keep seeing is below.
>
> hlfs:/mnt/hlfs/sources/perl-5.8.8$ make perl utilities
> `sh  cflags "optimize='-O2'" perlmain.o`  perlmain.c
>           CCCMD =  cc -DPERL_CORE -c -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -O2  -Wall
> `sh  cflags "optimize='-O2'" perl.o`  perl.c
>           CCCMD =  cc -DPERL_CORE -c -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -O2  -Wall
> perl.c: In function 'perl_parse':
> perl.c:1586: warning: passing argument 1 of 'time' from incompatible
> pointer type
> `sh  cflags "optimize='-O2'" gv.o`  gv.c
>           CCCMD =  cc -DPERL_CORE -c -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -O2  -Wall
> `sh  cflags "optimize='-O2'" toke.o`  toke.c
>           CCCMD =  cc -DPERL_CORE -c -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -O2  -Wall
> toke.c: In function 'S_scan_formline':
> toke.c:10542: error: invalid operands to binary +
> toke.c:10542: error: invalid lvalue in unary '&'
> toke.c:10542: error: invalid lvalue in unary '&'
> make: *** [toke.o] Error 1
>
>
> I have also tested this build under Glibc and it compiles correctly. Any
> and all help appreciated.
>
> Regards,
> Brian.
>   

Hi All,

I have found the cause of the issue relating to this problem. It would
appear that the patch we apply at the beginning of Ch 5.25 is for glibc
and not uClibc. I have attached a corrected patch for uClibc builds.

Regards,
Brian.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: perl-5.8.8-uClibc-2.patch
Url: http://linuxfromscratch.org/pipermail/hlfs-dev/attachments/20070719/6f345df4/attachment.ksh 


More information about the hlfs-dev mailing list