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

Bug 231428

Summary: net-misc/vde-2.1.6-r1 / gcc-4.3.1 - slirpvde.c:53: error: '_POSIX_PATH_MAX' undeclared here (not in a function)
Product: Gentoo Linux Reporter: Bernd Buschinski <b.buschinski>
Component: [OLD] GCC PortingAssignee: Stefan Schweizer (RETIRED) <genstef>
Status: RESOLVED FIXED    
Severity: normal CC: mlspamcb
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: vde-makemecompile.patch

Description Bernd Buschinski 2008-07-10 17:20:21 UTC
net-misc/vde-2.1.6-r1 fails to compile with gcc-4.3.1 and glibc-2.8*

if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DVDE    -g -O2 -O2 -march=core2 -pipe -fweb -fomit-frame-pointer -MT tcp_subr.o -MD -MP -MF ".deps/tcp_subr.Tpo" -c -o tcp_subr.o tcp_subr.c; \
        then mv -f ".deps/tcp_subr.Tpo" ".deps/tcp_subr.Po"; else rm -f ".deps/tcp_subr.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DVDE    -g -O2 -O2 -march=core2 -pipe -fweb -fomit-frame-pointer -MT tcp_timer.o -MD -MP -MF ".deps/tcp_timer.Tpo" -c -o tcp_timer.o tcp_timer.c; \
        then mv -f ".deps/tcp_timer.Tpo" ".deps/tcp_timer.Po"; else rm -f ".deps/tcp_timer.Tpo"; exit 1; fi
tcp_input.c: In function 'tcp_reass':
tcp_input.c:141: warning: cast to pointer from integer of different size
tcp_input.c:142: warning: cast to pointer from integer of different size
tcp_input.c:151: warning: cast to pointer from integer of different size
tcp_input.c:153: warning: cast to pointer from integer of different size
tcp_input.c:173: warning: cast to pointer from integer of different size
tcp_input.c:177: warning: cast from pointer to integer of different size
tcp_input.c:190: warning: cast to pointer from integer of different size
tcp_input.c:193: warning: cast to pointer from integer of different size
tcp_input.c:194: warning: cast to pointer from integer of different size
tcp_input.c:194: warning: cast to pointer from integer of different size
tcp_input.c:195: warning: cast to pointer from integer of different size
tcp_input.c:202: warning: cast to pointer from integer of different size
tcp_input.c:211: warning: cast to pointer from integer of different size
tcp_input.c:220: warning: cast to pointer from integer of different size
tcp_input.c:221: warning: cast to pointer from integer of different size
tcp_input.c: In function 'tcp_input':
tcp_input.c:559: warning: cast from pointer to integer of different size
tcp_input.c:1377: warning: cast from pointer to integer of different size
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DVDE    -g -O2 -O2 -march=core2 -pipe -fweb -fomit-frame-pointer -MT udp.o -MD -MP -MF ".deps/udp.Tpo" -c -o udp.o udp.c; \
        then mv -f ".deps/udp.Tpo" ".deps/udp.Po"; else rm -f ".deps/udp.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DVDE    -g -O2 -O2 -march=core2 -pipe -fweb -fomit-frame-pointer -MT bootp.o -MD -MP -MF ".deps/bootp.Tpo" -c -o bootp.o bootp.c; \
        then mv -f ".deps/bootp.Tpo" ".deps/bootp.Po"; else rm -f ".deps/bootp.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DVDE    -g -O2 -O2 -march=core2 -pipe -fweb -fomit-frame-pointer -MT slirpvde.o -MD -MP -MF ".deps/slirpvde.Tpo" -c -o slirpvde.o slirpvde.c; \
        then mv -f ".deps/slirpvde.Tpo" ".deps/slirpvde.Po"; else rm -f ".deps/slirpvde.Tpo"; exit 1; fi
slirpvde.c:53: error: '_POSIX_PATH_MAX' undeclared here (not in a function)
slirpvde.c: In function 'save_pidfile':
slirpvde.c:78: error: 'PATH_MAX' undeclared (first use in this function)
slirpvde.c:78: error: (Each undeclared identifier is reported only once
slirpvde.c:78: error: for each function it appears in.)
slirpvde.c: In function 'main':
slirpvde.c:400: error: 'PATH_MAX' undeclared (first use in this function)
make[2]: *** [slirpvde.o] Error 1
make[2]: *** Waiting for unfinished jobs....
tcp_subr.c: In function 'tcp_newtcpcb':
tcp_subr.c:211: warning: cast from pointer to integer of different size
tcp_subr.c: In function 'tcp_close':
tcp_subr.c:287: warning: cast to pointer from integer of different size
tcp_subr.c:289: warning: cast to pointer from integer of different size
tcp_subr.c:290: warning: cast to pointer from integer of different size
tcp_subr.c:290: warning: cast to pointer from integer of different size
tcp_subr.c:291: warning: cast to pointer from integer of different size
make[2]: Leaving directory `/var/tmp/portage/net-misc/vde-2.1.6-r1/work/vde2-2.1.6/slirpvde'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/vde-2.1.6-r1/work/vde2-2.1.6'
make: *** [all] Error 2



Portage 2.2_rc1 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-tuxonice-r6 x86_64)
=================================================================
System uname: Linux-2.6.25-tuxonice-r6-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-glibc2.2.5
Timestamp of tree: Mon, 07 Jul 2008 09:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -fweb -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -pipe -fweb -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS=""
LINGUAS="de en en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/je_fro /usr/local/portage/layman/kvm /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="7zip X a52 aac accessibility acl acpi aiglx alias alisp alsa amd64 amr amrnb amrwb aoss async audiofile avi bash-completion berkdb bitmap-fonts bl blender-game bluetooth browserplugin bzip2 cairo captury cddb cdparanoia cdr cli connectionstatus contactnotes cracklib crypt css cups curl cxx dbus devil dga djbfft djvu dlloader dri dts dtslivedv dvd dvdnav dvdr dvdread emovix enca encode evo exif expat fam ffmpeg firefox flac font-server fontconfig foomaticdb fortran freeimage ftp gdbm geoip ggi gif gimpprint glib glut gmp gnutls gpac graphviz hal hardware-carrier hdri highlight history iconv icu ieee1394 imagemagick imlib ipod irc isdnlog joystick jpeg jpeg2k kde kdehiddenvisibilitykerberos lame laptop lcms libnotify lm_sensors logitech-mouse lzo mad madwifi matroska midi mikmod mjpeg mmx mng moonlight mp2 mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz mysql nas ncurses nemesi newxkb nfs nfsv4 nisnowin nowlistening nptl nptlonly nsplugin nut ogg oggvorbis openal openexr opengl openmp oss pam pascal pch pcre pdf png postgres ppds pppd qt qt3 qt3support qt4 quicktime rar readline reflection samba sasl sasl2 sdl session slang slp smp sndfile soup sox speex spell spl sql sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification statistics suid svg tcpd teamarena teletext tga theora threads tiff transmitter truetype udev unicode usb userlocales utempter v4l v4l2 vcd vdr vorbis webdav webpresence wifi wmf x264 xcb xchatdccserver xcomposite xine xinerama xkb xml xml2 xmpxorg xpm xv xvid xvmc yv12 zlib zvbi" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics joystick"KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB" USERLAND="GNU" VIDEO_CARDS="i810 i915 vesa intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always

Steps to Reproduce:
1.emerge vde
2.
3.

Actual Results:  
compile fails
Comment 1 Bernd Buschinski 2008-07-10 17:22:31 UTC
Created attachment 160066 [details, diff]
vde-makemecompile.patch

fixes the compile for me
Comment 2 James 2008-07-15 04:32:33 UTC
(In reply to comment #1)
> Created an attachment (id=160066) [edit]
> vde-makemecompile.patch
> 
> fixes the compile for me
> 

Same Here!
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2008-07-20 14:39:25 UTC
Fixed