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

Bug 18659

Summary: OpenAFS 1.3.2-r1 compilation fails, #include's wrong <unistd.h>
Product: Gentoo Linux Reporter: Gareth John <gdjohn>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gareth John 2003-04-02 16:11:15 UTC
emerge openafs-1.3.2-r1 fails (compiling src/pam/test_pam.c). Problem is due to
#include'ing unistd.h from /usr/include/sys dir, which is added to the include
path.  Unfortunately, /usr/include/sys/unistd.h in turn includes unistd.h
(recursively).

Patch for {workdir}/src/pam/Makefile.in is attached.

Reproducible: Always
Steps to Reproduce:
1. emerge openafs
2.
3.

Actual Results:  
Compilation fails

Expected Results:  
Built and installed openafs

emerge info output follows:

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 VIA Ezra
GENTOO_MIRRORS=" http://212.219.56.131/sites/www.ibiblio.org/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 3dnow avi crypt cups encode gif imlib jpeg libg++ mmx mpeg ncurses nls
oggvorbis pdflib png quicktime sdl spell xml2 zlib gdbm berkdb slang readline
tetex gpm tcpd pam libwww ssl perl python alsa apache2 -apm -arts cdr doc gd
-gnome -gtk imap ipv6 -java -kde kerberos ldap maildir -mikmod -motif mysql
-opengl -oss -qt samba sasl snmp -svga -truetype -X -xmms -xv"
COMPILER="gcc3"
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=pentium-mmx -m3dnow -mmmx -O3 -pipe"
CXXFLAGS="-march=pentium-mmx -m3dnow -mmmx -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://localhost/gentoo-portage"
FEATURES="sandbox ccache distcc"
Comment 1 Gareth John 2003-04-02 16:13:02 UTC
My apologies - I appear to have submitted this bug twice (it's a duplicate of 18658). Please delete/close this bug.
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-04-02 16:20:39 UTC

*** This bug has been marked as a duplicate of 18658 ***