Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259699 - net-misc/pavuk-0.9.34-r1 fails to compile with _FORTIFY_SOURCE=2
Summary: net-misc/pavuk-0.9.34-r1 fails to compile with _FORTIFY_SOURCE=2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Marcelo Goes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: fortify-source
  Show dependency tree
 
Reported: 2009-02-20 12:22 UTC by Vladimir Berezhnoy
Modified: 2009-04-03 14:54 UTC (History)
0 users

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


Attachments
fix for O_CREAT bug in src/tools.c (pavuk_open_mode.patch,388 bytes, text/plain)
2009-03-05 01:20 UTC, Magnus Granberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Berezhnoy 2009-02-20 12:22:08 UTC
net-misc/pavuk-0.9.34-r1 fail to compile

Reproducible: Always

Steps to Reproduce:
1. emerge pavuk

Actual Results:  
emerge fails

tools.c: In function 'st_xvaprintf':
tools.c:203: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
In function 'open',
    inlined from 'tl_save_text_file' at tools.c:1726:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [tools.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-misc/pavuk-0.9.34-r1/work/pavuk-0.9.34/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/pavuk-0.9.34-r1/work/pavuk-0.9.34'
make: *** [all] Error 2



Portage 2.2_rc23 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-zen5-home1 i686)
=================================================================
System uname: Linux-2.6.28-zen5-home1-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.0
Timestamp of tree: Thu, 19 Feb 2009 08:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.7
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -msse3 -fomit-frame-pointer -funroll-loops -fforce-addr -ftracer -finline-functions -fexpensive-optimizations -freorder-blocks"
CHOST="i686-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.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/kde/live/env /usr/kde/live/share/config /usr/kde/live/shutdown /usr/share/config /usr/share/hddtemp/ /usr/share/xbmc/userdata"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -msse3 -fomit-frame-pointer -funroll-loops -fforce-addr -ftracer -finline-functions -fexpensive-optimizations -freorder-blocks"
DISTDIR="/mnt/big/distfiles~"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG=""
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
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/berkano /usr/local/portage/layman/sunrise /usr/local/portage/layman/swegener /usr/local/portage/layman/jokey /usr/local/portage/layman/zen-overlay /usr/local/portage/layman/thelinux /usr/local/portage/layman/rion /usr/local/portage/layman/dirtyepic /usr/local/portage/layman/hollow /usr/local/portage/layman/kde-testing /usr/local/portage/layman/x11 /usr/local/overlays/testing /home/non7top/overlays/arcon/trunk/arcon-overlay /home/non7top/overlays/arcon/trunk/arcon-testing"
SYNC="rsync://s/gentoo-portage"
USE="3dfx 7zip X a52 aac acpi addbookmarks additions aften aim akode alias alsa amazon amr amrwb ansi applet archive artswrappersuid asf ass atm automount autoreplace avahi bash-completion bashlogger binary-drivers bittorrent bluetooth branding bzip2 cairo captury cdr cdrkit cgi chm cisco connectionstatus contactnotes coreavc cracklib crypt css curl custom-optimization dbus deskbar dhcp disk-partition djvu dri dts dvd dvdr dvdread eds emboss emovix enca encode epiphany evo exif expat extensions extras fam fat fbcondecor ffmpeg flac flash fontconfig fortran ftp gammu gd gdbm geoip gif glib glitz gnokii gnome-keyring gnutls gphoto2 gpm gstreamer gtalk gtk gzip hal hddtemp highlight history httpd iconv id3 ieee1394 imagemagick imlib insecure-patches isdnlog ithreads jabber javascript jfs jpeg jpg kde kde4 kdeenablefinal kdeprefix lame ldap libass libextractor libnotify lm_sensors logrotate lzma mad matroska midi mikmod mktemp mkvlinks mmx mmxext mng mouse mozdevelop mozilla mp3 mp4 mpeg mplayer mudflap musicbrainz mysql mysqli nas nautilus ncurses nepomuk network nls nowlistening nptl nptlonly nsplugin ntfs ntlm nvidia obex ogg opengl openmp openntpd oscar pam passwordsave pch pcre perl pertty php plasma plugins png ppds pppd python qt-copy qt3 qt3support qt4 quicktime rdesktop readline reflection samba sasl screen sdl semantic-desktop session sha512 simplexml slang smb sndfile spell spl sqlite sqlite3 srt srv sse sse2 ssl startup-notification statistics subtitles subversion svg svnserve swat sysfs syslog taglib tcpd theora threads threadsafe tiff tordns tos tracker translator trayicon truetype type1 unicode upnp urandom usb utempter vim-syntax visualization vnc vorbis wavpack weather web webkit win32codecs winbind wxwindows x264 x86 xcb xcomposite xfs xhtml xine xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xsl xulrunner xv xvid zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="radeonhd fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Magnus Granberg gentoo-dev 2009-03-05 01:20:49 UTC
Created attachment 183955 [details]
fix for O_CREAT bug in src/tools.c
Comment 2 Patrick Lauer gentoo-dev 2009-04-03 14:54:48 UTC
+  03 Apr 2009; Patrick Lauer <patrick@gentoo.org>
+  +files/pavuk-0.9.34-gcc43.patch, +pavuk-0.9.34-r2.ebuild:
+  Gcc 4.3.3 compile fix, thanks to Magnus Granberg. Closes #259699