Summary: | net-misc/asterisk-1.6.2.1 installation failed: asterisk/buildinfo.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexey McSakoff <mcsakoff> |
Component: | Current packages | Assignee: | Tony Vroon (RETIRED) <chainsaw> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | voip+disabled |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
complete build log
fix for strip_noapi script |
Description
Alexey McSakoff
2010-01-29 10:38:09 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. Created attachment 217830 [details]
complete build log
Same with asterisk-1.6.2.2 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 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 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). Try without your LDFLAGS, if that works, try mine. 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. 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?) If I run the command manually: ../build_tools/strip_nonapi asterisk || rm asterisk it works correctly and does remove anything. o_O it works correctly and does NOT remove anything. o_O 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 Created attachment 219111 [details, diff]
fix for strip_noapi script
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? Same problem with 1.6.2.11. The patch still works without any changes. +*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. |