Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86706 - Emerging libperl on amd64 non-multilib results in failure
Summary: Emerging libperl on amd64 non-multilib results in failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-25 14:26 UTC by voidptr
Modified: 2005-04-21 07:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description voidptr 2005-03-25 14:26:31 UTC
When emerging libperl on an amd64 system without +multilib, libperl fails the compile phase with the following error:

`sh  cflags "optimize='-O0 -march=nocona'" doio.o` -fPIC doio.c
          CCCMD =  x86_64-pc-linux-gnu-gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -march=nocona  -Wall
doio.c:32: error: conflicting types for 'shmat'
/usr/include/sys/../gentoo-multilib/default/sys/shm.h:58: error: previous declaration of 'shmat' was here
doio.c:32: error: conflicting types for 'shmat'
/usr/include/sys/../gentoo-multilib/default/sys/shm.h:58: error: previous declaration of 'shmat' was here
make: *** [doio.o] Error 1

!!! ERROR: sys-devel/libperl-5.8.5 failed.
!!! Function src_compile, Line 218, Exitcode 2
!!! Unable to make libperl.so
!!! If you need support, post the topmost build error, NOT this status message.

Adding -DHAS_SHMAT_PROTOTYPE to the CFLAGS solves the issue.

# cat /etc/portage/bashrc 
 ([[ "$EBUILD_PHASE" = "compile" ]] && [[ $PN = "libperl" ]]) && export CFLAGS="${CFLAGS} -DHAS_SHMAT_PROTOTYPE"



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 voidptr 2005-03-25 14:40:28 UTC
Perl, additionaly, has an identical problem.

`sh  cflags "optimize='-O0 -march=nocona'" doio.o` -fPIC doio.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -march=nocona  -Wall
doio.c:32: error: conflicting types for 'shmat'
/usr/include/sys/../gentoo-multilib/default/sys/shm.h:58: error: previous declaration of 'shmat' was here
doio.c:32: error: conflicting types for 'shmat'
/usr/include/sys/../gentoo-multilib/default/sys/shm.h:58: error: previous declaration of 'shmat' was here
make: *** [doio.o] Error 1

!!! ERROR: dev-lang/perl-5.8.5-r5 failed.
!!! Function src_compile, Line 244, Exitcode 2
!!! Unable to make
!!! If you need support, post the topmost build error, NOT this status message.
Comment 2 solar (RETIRED) gentoo-dev 2005-03-25 14:43:55 UTC
I had the same failure on an amd64 non-multilib system. (this error is new)
Comment 3 Decibels 2005-04-03 06:02:19 UTC
I am having the same issue on a multilib system. Also tried upgrading and downgrading libperl and get same errors. 
Comment 4 Herbie Hopkins (RETIRED) gentoo-dev 2005-04-19 11:35:40 UTC
Is this still a problem? This is probably related to bug #87560. You may need to re-emerge linux-headers and/or glibc to sort your headers out.
Comment 5 Decibels 2005-04-19 14:47:14 UTC
Not a problems for me anymore.
Comment 6 solar (RETIRED) gentoo-dev 2005-04-20 05:54:26 UTC
As far as I know amd64 just p.masked this version.
Comment 7 Herbie Hopkins (RETIRED) gentoo-dev 2005-04-21 06:29:16 UTC
I'm unable to reproduce this and nobody has responded to say they still have the problem so I'm marking this fixed. Re-open if the problem re-emerges.
Comment 8 solar (RETIRED) gentoo-dev 2005-04-21 07:24:09 UTC
Confirmed fixed on a systems where it was showing up before.