Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 378781

Summary: perl-core/Encode fails to build with perl-core/ExtUtils-ParseXS-3.20.0
Product: Gentoo Linux Reporter: Alexandre Rostovtsev (RETIRED) <tetromino>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-11 14:13:30 UTC
Created attachment 282919 [details]
build log

All versions of perl-core/Encode (2.40-r1, 2.430.0, and 2.440.0) fail to build when perl-core/ExtUtils-ParseXS-3.20.0 is installed:

# emerge Encode
[...]
x86_64-pc-linux-gnu-gcc -c  -I../Encode -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=native -O2 -pipe   -DVERSION=\"2.04\" -DXS_VERSION=\"2.04\" -fPIC "-I/usr/lib64/perl5/5.12.4/x86_64-linux-thread-multi/CORE"   Byte.c
Byte.c:1:21: error: expected ‘)’ before ‘:’ token
In file included from /usr/lib64/perl5/5.12.4/x86_64-linux-thread-multi/CORE/perl.h:583:0,
                 from Byte.c:214:
/usr/include/sys/types.h:34:1: error: unknown type name ‘__u_char’
make[1]: *** [Byte.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/perl-core/Encode-2.440.0/work/Encode-2.44/Byte'
make: *** [subdirs] Error 2
 * ERROR: perl-core/Encode-2.440.0 failed (compile phase):
 *   emake failed

Downgrading to perl-core/ExtUtils-ParseXS-2.22.06 allows Encode to build successfully.

Complete build log is attached.
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2011-08-11 14:52:16 UTC
Not for me.

| Byte.c:1:21: error: expected ‘)’ before ‘:’ token

Please paste the head of the generated Byte.c.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-11 14:59:45 UTC
I apologize, this build failure was my own fault, caused by mucking around with the ExtUtils::ParseXS .pm files in an attempty to fix the Magick.xs bugs, and then forgetting that I had done so.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-11 15:00:12 UTC
*** Bug 378789 has been marked as a duplicate of this bug. ***