Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292654 - asterisk-1.2.x compile error, function open needs 3 arguments
Summary: asterisk-1.2.x compile error, function open needs 3 arguments
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-10 09:26 UTC by floppe
Modified: 2011-02-27 19:18 UTC (History)
0 users

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


Attachments
build.log (build.log,52.82 KB, text/plain)
2009-11-23 06:36 UTC, floppe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description floppe 2009-11-10 09:26:02 UTC
chan_zap.c: In function 'zt_pri_message':
chan_zap.c:8059: warning: ignoring return value of 'write', declared with attribute warn_unused_result
chan_zap.c: In function 'zt_pri_error':
chan_zap.c:8098: warning: ignoring return value of 'write', declared with attribute warn_unused_result
In function 'open',
    inlined from 'handle_pri_set_debug_file' at chan_zap.c:9389:
/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[1]: *** [chan_zap.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/asterisk-1.2.36/work/asterisk-1.2.36/channels'
make: *** [subdirs] Error 1


Reproducible: Always

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




I guess this is a GCC 4.3 compatibility issue cause I cant recompile my old Asterisk either. Maybe time for portage to use Asterisk-1.6 now?
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2009-11-22 19:17:02 UTC
This bug report is incomplete and as a result it can not be actioned.

1) emerge --info is missing
2) the build log output has been redacted, attach build.log as provided
3) Asterisk 1.6 is already in portage
Comment 2 floppe 2009-11-23 06:36:15 UTC
Created attachment 210951 [details]
build.log

build.log
Comment 3 floppe 2009-11-23 06:36:49 UTC
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.23-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.23-gentoo-r8-i686-Intel-R-_Pentium-R-_D_CPU_3.20GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 23 Nov 2009 05:45:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://mirror.mdfnet.se/mirror/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY="/usr/local/portage/floppe"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cups dri fortran gd gdbm gpm iconv ipv6 jpeg mmx modules mudflap ncurses nls nptl nptlonly ogg openmp pam pcre perl png pppd python readline reflection session speex spl sse sse2 ssl sysfs tcpd unicode x86 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 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 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 floppe 2009-12-02 07:07:10 UTC
This also happens in 1.2.37
Comment 5 floppe 2009-12-07 08:19:43 UTC
Well, got bored of waiting so I switched to gcc-4.1 and it compiled fine as I thought in the first place.
Comment 6 Tony Vroon (RETIRED) gentoo-dev 2011-02-27 19:18:22 UTC
Asterisk 1.2 has been removed from the portage tree. Please use, at your option, the 1.6.2 branch or the 1.8 branch of Asterisk. I can confirm that neither of them have this bug.