Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302736 - net-misc/asterisk-1.6.2.1 installation failed: asterisk/buildinfo.h: No such file or directory
Summary: net-misc/asterisk-1.6.2.1 installation failed: asterisk/buildinfo.h: No such ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-29 10:38 UTC by Alexey McSakoff
Modified: 2010-08-20 23:12 UTC (History)
1 user (show)

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


Attachments
complete build log (build.log,55.23 KB, text/plain)
2010-01-29 12:51 UTC, Alexey McSakoff
Details
fix for strip_noapi script (asterisk-1.6.2.2-strip_noapi.patch,742 bytes, patch)
2010-02-10 16:33 UTC, Alexey McSakoff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey McSakoff 2010-01-29 10:38:09 UTC
On two different boxes both asterisk-1.6.2.0 and asterisk-1.6.2.1 fail to install with the same error:

>>> Install asterisk-1.6.2.1 into /var/tmp/portage/net-misc/asterisk-1.6.2.1/image/ category net-misc
make -j3 DESTDIR=/var/tmp/portage/net-misc/asterisk-1.6.2.1/image/ install                           
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//usr/lib/asterisk/modules                  
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//usr/sbin                                  
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//etc/asterisk                              
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//usr/bin                                   
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//var/run/asterisk                          
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//var/spool/asterisk/voicemail              
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//var/spool/asterisk/dictate
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//var/spool/asterisk/system
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//var/spool/asterisk/tmp
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//var/spool/asterisk/meetme
mkdir -p /var/tmp/portage/net-misc/asterisk-1.6.2.1/image//var/spool/asterisk/monitor
Installing modules from channels...
Installing modules from pbx...
Installing modules from codecs...
Installing modules from formats...
Installing modules from apps...
Installing modules from cdr...
Installing modules from bridges...
Installing modules from tests...
Installing modules from funcs...
buildinfo.c:26:32: error: asterisk/buildinfo.h: No such file or directory
make[1]: *** [asterisk] Error 1
make: *** [main-install] Error 2
make: *** Waiting for unfinished jobs....
Installing modules from res...
 * ERROR: net-misc/asterisk-1.6.2.1 failed:
 *   emake install failed
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_install
 *   environment, line 3765:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
 *
 * If you need support, post the output of 'emerge --info =net-misc/asterisk-1.6.2.1',
 * the complete build log and the output of 'emerge -pqv =net-misc/asterisk-1.6.2.1'.
 * The complete build log is located at '/var/tmp/portage/net-misc/asterisk-1.6.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/asterisk-1.6.2.1/temp/environment'.
 * S: '/var/tmp/portage/net-misc/asterisk-1.6.2.1/work/asterisk-1.6.2.1'

>>> Failed to emerge net-misc/asterisk-1.6.2.1


Reproducible: Always

Steps to Reproduce:
1. ACCEPT_KEYWORDS="~x86" emerge "=asterisk-1.6.2.1"



# pwd
/var/tmp/portage/net-misc/asterisk-1.6.2.1

# find . -name buildinfo.h
./work/asterisk-1.6.2.1/include/asterisk/buildinfo.h

# emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-AMD_Sempron-tm-_Dual_Core_Processor_2100-with-gentoo-1.12.13
Timestamp of tree: Thu, 28 Jan 2010 13:00:24 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 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"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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=k8 -pipe -fvisibility-inlines-hidden"
DISTDIR="/gentoo/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j3"
PKGDIR="/gentoo/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="/gentoo/portage"
PORTDIR_OVERLAY="/gentoo/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext acpi berkdb boundschecking bzip2 cli colordiff cracklib crypt cups cxx dbus dri ffmpeg flac fortran gdbm gnutls hal iconv ithreads jbig jpeg kerberos ldap lzo mmx modules mudflap musepack musicbrainz ncurses nls nptl nptlonly ogg openmp pam pcre perl png pppd python readline reflection sdl session sndfile spl sse sse2 ssl sysfs tcpd threads tiff unicode userlocales vim-syntax x86 xml 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" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexey McSakoff 2010-01-29 12:49:49 UTC
# emerge -pqv "=net-misc/asterisk-1.6.2.1"
[ebuild     U ] net-misc/asterisk-1.6.2.1 [1.6.1.1] USE="alsa caps curl freetds iconv jabber ldap speex ssl vorbis -dahdi -debug -keepsrc -misdn -newt -nosamples -oss -postgres -radius -snmp -span -sqlite -static (-h323%) (-imap%) (-odbc%*)"

Build log attached.
Comment 2 Alexey McSakoff 2010-01-29 12:51:11 UTC
Created attachment 217830 [details]
complete build log
Comment 3 Alexey McSakoff 2010-02-03 12:00:59 UTC
Same with asterisk-1.6.2.2
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2010-02-09 14:02:28 UTC
System 1, unable to reproduce:
[ebuild   R   ] net-misc/asterisk-1.6.2.2  USE="alsa caps curl iconv jabber ldap snmp span speex sqlite ssl vorbis -dahdi -debug -freetds -keepsrc -misdn -newt -nosamples -oss -postgres -radius -static" 0 kB

Portage 2.1.7.17 (default/linux/amd64/10.0/no-multilib, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-2.0.1
Timestamp of tree: Unknown
app-shells/bash:     4.0_p37
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.4.4-r6, 2.5.4-r2, 2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.1.2, 4.2.4, 4.3.3-r2, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe -D_FORTIFY_SOURCE=2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
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/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -D_FORTIFY_SOURCE=2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms sign strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,--as-needed"
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="/cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="cvs://chainsaw@cvs.gentoo.org:/var/cvsroot"
USE="16bit 16bit-indices 7zip S3TC X a52 aac aalib ace acpi adns adplug aesicm aio alac alsa amd64 amr amrnb amrwb animgif aotuv applet archive aspell async asyncns audacious audiofile autoipd avahi bash-completion berkdb binary-drivers binfilter bluetooth bonjour bs2b bzip2 cairo calendar canberra caps cardbus cdaudio cdda cddb cdparanoia cdr cdrkit cdrom chardet chipcard chm cleartype cli consolekit cpio cracklib crypt css cue cups curl cxx dbus device-mapper dhcp dhcpcd dirac disk-partition diskio divx djvu dmi dns dri drm dtmf dts dv dvb dvd dvdr dvi ecc eds elf enca encode epiphany erandom exif exiv2 expat extras fam fat fax fbcon fbcondecor ffmpeg fftw flac fortran ftp fts3 fuse g15 galago gconf gcrypt gd gdbm gdl gdm gedit gif gimp glib glitz glut gmedia gnome gnome-keyring gnutls gpg gphoto2 gs gsf gsm gstreamer gtk gzip h224 h281 h323 hal hddtemp hdri hfs howl-compat hpn ical icons iconv id3 id3tag idle idn ieee1394 imagemagick imap imlib inkjar inotify iplayer ipod iptc ipv6 irda ivr jabber java jbig jce john jpeg jpeg2k juju kdrive keyring lame laptop lcms ldap libburn libcaca libgcrypt libnotify libsamplerate libsexy libssh2 libwww libyaml lilo logrotate lzma lzo mad magic mail md5sum mdnsresponder-compat mikmod mime mjpeg mmap mmx mmxext mng modplug modules moonlight mp2 mp3 mp4 mpeg mplayer mudflap musepack music nano-syntax nautilus ncurses nemesi neon network-cron networkmanager nls nptl nptlonly nsplugin nss nut nuv nvidia ogg opencore-amr opengl openmp openssl otr ots pam pango pccts pcmcia pcre pdf perl physfs pidgin pipechan plotutils png pnm policykit posix postscript ppds pppd pulseaudio python qos rar rdesktop readline reflection remote replytolist resolvconf rfc4175 rss rtc samba sbc scenarios schroedinger screenshot scrobbler sdl session sftp shorten sid sip sipim smp sms sndfile snmp soup sourceview sox span speex spell spl sqlite srt srtp srv sse sse2 sse3 ssh ssl ssse3 startup-notification subtitles svg svgz sysfs syslog szip t1lib taglib tagwriting targrey tcpd telnet theora thesaurus threads tiff timidity tk tls tordns totem tracker trayicon truetype tta tts twolame unicode urandom usb v4l2 vcd video vnc vorbis vorbis-psy vte vxml wav wavpack webkit wifi wma wmf wmp x264 xcap xcb xcomposite xface xhtml xinerama xml xmp xorg xpm xscreensaver xsettings xslt xulrunner xv xvid xvmc yv12 zeroconf 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 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" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2010-02-09 14:03:17 UTC
System 2, unable to reproduce:
[ebuild   R   ] net-misc/asterisk-1.6.2.2  USE="caps dahdi iconv jabber snmp span speex ssl vorbis -alsa -curl -debug -freetds -keepsrc -ldap -misdn -newt -nosamples -oss -postgres -radius -sqlite -static" 0 kB

Portage 2.1.7.16 (hardened/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r1, 2.6.28-hardened-r9 x86_64)
=================================================================
System uname: Linux-2.6.28-hardened-r9-x86_64-Dual-Core_AMD_Opteron-tm-_Processor_2218-with-gentoo-1.12.13
Timestamp of tree: Thu, 04 Feb 2010 12:15:03 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r2
dev-lang/python:     2.4.6, 2.6.4
dev-python/pycrypto: 2.1.0_beta1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/asterisk"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
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://portage-rsync.linx.net/gentoo-portage"
USE="amd64 apache2 berkdb bzip2 cli cracklib crypt cxx dahdi dri ecmark2 gd gnutls hardened iconv idn ipv6 jabber jbig jpeg justify mmx modules mudflap mysql ncurses no-old-linux nptl nptlonly ogg pam pcre perl pic pppd python readline reflection rtc session snmp span speex spl sse sse2 ssl sysfs unicode urandom vim-syntax vorbis watchdog xml xmlreader xmlwriter xorg zaptel zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Alexey McSakoff 2010-02-09 14:46:08 UTC
I found that problems is that on building stage at the line:

   [LD] abstract_jb.o acl.o adsistub.o aescrypt.o aeskey.o aestab.o alaw.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autoservice.o bridging.o callerid.o cdr.o channel.o chanvars.o cli.o config.o cryptostub.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o poll.o privacy.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o strings.o taskprocessor.o tcptls.o tdd.o term.o threadstorage.o timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o editline/libedit.a db1-ast/libdb1.a -> asterisk
nm: asterisk: no symbols

main/asterisk file is not created and later during installation stage it tries to build it again.

Interesting that I can build asterisk on my test (~x86) box but cannot do that on production one (x86).
Comment 7 Tony Vroon (RETIRED) gentoo-dev 2010-02-09 14:57:32 UTC
Try without your LDFLAGS, if that works, try mine.
Comment 8 Alexey McSakoff 2010-02-09 15:28:31 UTC
My current flags are:

CFLAGS="-O2 -march=k8 -pipe"
CXXFLAGS="-O2 -march=k8 -pipe"
LDFLAGS="-Wl,-O1"

Actually, falling back to the set of flags helped on one of my boxes but not on that one.

Set #1:
CFLAGS="-O2 -march=native -mtune=native -pipe -D_FORTIFY_SOURCE=2"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,--as-needed"

Result: Failed.

Set #2 is like mine but -march=opteron.

Result: Failed.
Comment 9 Alexey McSakoff 2010-02-09 17:36:01 UTC
main/Makefile:~175:

$(CMD_PREFIX) $(ASTTOPDIR)/build_tools/strip_nonapi $@ || rm $@

The line removes target file (main/asterisk) if nm in strip_nonapi returned:

nm: asterisk: no symbols

(the binary probably is pre-stripped?)
Comment 10 Alexey McSakoff 2010-02-09 17:52:35 UTC
If I run the command manually:

../build_tools/strip_nonapi asterisk || rm asterisk

it works correctly and does remove anything. o_O
Comment 11 Alexey McSakoff 2010-02-09 17:53:36 UTC
it works correctly and does NOT remove anything. o_O

Comment 12 Alexey McSakoff 2010-02-10 15:17:55 UTC
build_tools/strip_nonapi:~32:

nm ${1} | ${GREP} -e "$TEXTSYM" | cut -d" " -f3 | ${FILTER} > striplist

1. nm ${1} returns nothing
2. ${GREP} -e "$TEXTSYM" exits with error code 1
3. as the script has -e option set (#!/bin/sh -e) it stops and returns 1








Comment 13 Alexey McSakoff 2010-02-10 16:33:32 UTC
Created attachment 219111 [details, diff]
fix for strip_noapi script
Comment 14 Tony Vroon (RETIRED) gentoo-dev 2010-08-20 15:20:43 UTC
I have never been able to reproduce this in any way; could you confirm whether you still need to apply this patch to 1.6.2.11 please?
Comment 15 Alexey McSakoff 2010-08-20 16:05:15 UTC
Same problem with 1.6.2.11. The patch still works without any changes.
Comment 16 Tony Vroon (RETIRED) gentoo-dev 2010-08-20 23:12:27 UTC
+*asterisk-1.6.2.11-r1 (20 Aug 2010)
+
+  20 Aug 2010; <chainsaw@gentoo.org> asterisk-1.2.40.ebuild,
+  asterisk-1.6.2.10.ebuild, asterisk-1.6.2.11.ebuild,
+  +asterisk-1.6.2.11-r1.ebuild,
+  +files/1.6.2/asterisk-1.6.2.11-strip-noapi.patch,
+  +files/1.6.2/asterisk.initd2, +files/1.6.2/asterisk.logrotate,
+  asterisk-1.2.37.ebuild:
+  Tweak nm call to avoid binary deletion as requested by Alexey McSakoff in
+  bug #302736. Bashims removed from init script by Kerin Millar & Federico
+  Santulli, closes bug #309277. Stock audio prompts now split out to
+  separate ebuilds and logrotate support thanks to Jaco Kroon, closes bug
+  #328513 & #329281 respectively.