Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285374 - net-irc/bitchx-1.1-r4 fails to build with _FORTIFY_SOURCE=2
Summary: net-irc/bitchx-1.1-r4 fails to build with _FORTIFY_SOURCE=2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: fortify-source
  Show dependency tree
 
Reported: 2009-09-17 23:30 UTC by James Homuth
Modified: 2009-11-17 00:10 UTC (History)
0 users

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


Attachments
Build.log from latest failed compile. (build.log,54.07 KB, text/plain)
2009-09-17 23:32 UTC, James Homuth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Homuth 2009-09-17 23:30:01 UTC
Running ~x86, tried both with gcc-4.3.4 and 4.4.1 with same results. Complains about too few arguments provided to a function in /usr/include/bits/fcntl.h.

In function 'open',
    inlined from 'create_ipc_socket' at commands2.c:2578:
/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
gmake[1]: *** [commands2.o] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/net-irc/bitchx-1.1-r4/work/BitchX/source'
make: *** [BitchX] Error 2

Also tried with 4.3.4 (see attached build.log), with same result. Compiles fine with 4.3.4 and glibc 2.9.

Reproducible: Always

Steps to Reproduce:
1. Upgrade glibc to 2.10.1.
2. Emerge bitchx.
3. Watch it die.

Actual Results:  
Compile error indicating /usr/include/bits/fcntl.h.

Expected Results:  
Successful compilation?

Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.23.17-linode43 i686)
=================================================================
System uname: Linux-2.6.23.17-linode43-i686-UML-with-gentoo-2.0.1
Timestamp of tree: Sun, 23 Aug 2009 04:00:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1, 3.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--buildpkg --usepkg"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cgi clamav clamd cli cracklib crypt cups curl curlwrappers dri fortran gdbm gpm iconv imap ipv6 isdnlog libwww maildir memlimit mode-owner msn mudflap mysql ncurses nls nptl nptlonly openmp pcre perl php pppd python readline reflection sasl session spl spoof-source ssl subject-rewrite suexec sysfs tcl tcpd unicode vda vhosts x86 xinetd xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 James Homuth 2009-09-17 23:32:43 UTC
Created attachment 204476 [details]
Build.log from latest failed compile.
Comment 2 Dawid Węgliński (RETIRED) gentoo-dev 2009-11-17 00:10:51 UTC
  17 Nov 2009; Dawid Węgliński <cla@gentoo.org> bitchx-1.1-r4.ebuild,
  +files/1.1/bitchx-1.1-open-mode.patch:
  Pass mode to O_CREAT bug #285374