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

Bug 104959

Summary: dev-games/physfs-1.1.0 - Physfs.h uses size_t without necessary header causing failure with other applications
Product: Gentoo Linux Reporter: Christian Holler <christian_holler>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED DUPLICATE    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Holler 2005-09-05 15:22:29 UTC
The current physfs.h (v.1.1.0) uses size_t in line 1866 and 1867 without
including stdlib.h. This causes programs including this header to fail with a
compiler error (parser error). Indirectly, this also causes programs requiring
this header, that check for the header in their configure script, to fail
detecting physfs.

Example (while merging netpanzer):

checking for physfs >= 0.1.9... not found
configure: error: Please install physfs >= 0.1.9

config.log shows:

/usr/include/physfs.h:1867: error: parse error before "size_t"


FIX: add "#include <stdlib.h>" at the beginning of physfs.h seems to fix this error



Reproducible: Always
Steps to Reproduce:
1. Install latest physfs (1.1.0)
2. Try installing another app that uses it like netpanzer or try to compile your
own program with physfs header.

Actual Results:  
See Details

Expected Results:  
Compile without errors

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r7 i686)
=================================================================
System uname: 2.6.12-gentoo-r7 i686 AMD Athlon(TM) XP 2100+
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa apm arts avi bash-completion berkdb
bitmap-fonts bzip2 cdparanoia cdr crypt cups curl dga divx4linux dvd eds emboss
encode esd fam ffmpeg foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2
imagemagick imlib ipv6 java jpeg kde ldap libg++ libwww live lzo mad mikmod mmx
motif mp3 mpeg nas ncurses nls nvidia ogg oggvorbis on-the-fly-crypt opengl oss
pam pdflib perl png python qt quicktime readline real rtc samba sdl speex spell
ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb v4l
vorbis win32codecs xine xinerama xml2 xmms xprint xv xvid zlib linguas_de
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-09-05 18:48:47 UTC

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