Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180510 - net-misc/asterisk-1.2.17 bad headers include path with h323 USE flag set
Summary: net-misc/asterisk-1.2.17 bad headers include path with h323 USE flag set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-01 02:10 UTC by Jesse Adelman
Modified: 2007-07-12 21:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Adelman 2007-06-01 02:10:16 UTC
"emerge asterisk" (resulting log file):

 * This profile has not been tested thoroughly and is not considered to be
 * a supported server profile at this time.  For a supported server
 * profile, please check the Hardened project (http://hardened.gentoo.org).

 * This profile is merely a convenience for people who require a more
 * minimal profile, yet are unable to use hardened due to restrictions in
 * the software being used on the server. This profile should also be used
 * if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
 * applies to you, then it doesn't and you should probably be using
 * Hardened, instead.

 * Running some pre-flight checks...

>>> Unpacking source...
>>> Unpacking asterisk-1.2.17.tar.gz to /var/tmp/portage/net-misc/asterisk-1.2.17/work
>>> Unpacking asterisk-1.2.17-patches-1.0.tar.bz2 to /var/tmp/portage/net-misc/asterisk-1.2.17/work
 * Applying asterisk-1.2.0-gentoo-channels.diff ...
  [ ok ]
 * Applying asterisk-1.2.8-gentoo-astdb.diff ...
  [ ok ]
 * Applying asterisk-1.2.8-gentoo-base.diff ...
  [ ok ]
 * Applying asterisk-1.2.8-gentoo-cdr.diff ...
  [ ok ]
 * Applying asterisk-1.2.11-gentoo-codecs.diff ...
  [ ok ]
 * Applying asterisk-1.2.10-astcfg-0.0.2.diff ...
  [ ok ]
 * Applying asterisk-1.2.0-scripts.diff ...
  [ ok ]
 * Applying asterisk-1.2.4-weak-references.diff ...
  [ ok ]
 * Applying asterisk-1.2.17-ASA-2007-011.patch ...
  [ ok ]
 * Applying asterisk-1.2.17-ASA-2007-012.patch ...
  [ ok ]
 * Enabling mmx optimization
 * Disabling debug support
 * Applying asterisk-1.2.17-h323-dumb-makefile.diff ...
  [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-misc/asterisk-1.2.17/work/asterisk-1.2.17 ...
 * Building H.323 wrapper lib...
make: Entering directory `/var/tmp/portage/net-misc/asterisk-1.2.17/work/asterisk-1.2.17/channels/h323'
g++ -march=athlon-xp -O3 -pipe -I/usr/include/openh323   -c -o ast_h323.o ast_h323.cpp
ast_h323.cpp:1:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
ast_h323.cpp:44:29: error: asterisk/logger.h: No such file or directory
ast_h323.cpp:45:30: error: asterisk/channel.h: No such file or directory
chan_h323.h:55: error: 'AST_MAX_ACCOUNT_CODE' was not declared in this scope
ast_h323.cpp: In member function 'virtual int PAsteriskLog::Buffer::sync()':
ast_h323.cpp:133: error: 'ast_verbose' was not declared in this scope
ast_h323.cpp: In function 'void PAssertFunc(const char*)':
ast_h323.cpp:169: error: 'LOG_ERROR' was not declared in this scope
ast_h323.cpp:169: error: 'ast_log' was not declared in this scope
make: *** [ast_h323.o] Error 1
make: Leaving directory `/var/tmp/portage/net-misc/asterisk-1.2.17/work/asterisk-1.2.17/channels/h323'

!!! ERROR: net-misc/asterisk-1.2.17 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  asterisk-1.2.17.ebuild, line 269:   Called die

!!! Make h323 failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/net-misc:asterisk-1.2.17:20070601-020523.log'.

And, find seems to show the tale of the tape:

homeserver-02 ~ # find /var/tmp/portage/net-misc/asterisk-1.2.17/work/asterisk-1.2.17/ -name "logger.h"
/var/tmp/portage/net-misc/asterisk-1.2.17/work/asterisk-1.2.17/include/asterisk/logger.h
homeserver-02 ~ #

homeserver-02 ~ # find /var/tmp/portage/net-misc/asterisk-1.2.17/work/asterisk-1.2.17/ -name "channel.h"
/var/tmp/portage/net-misc/asterisk-1.2.17/work/asterisk-1.2.17/include/asterisk/channel.h
homeserver-02 ~ #

gcc is looking to include "asterisk/...", but the tarball unpacks to "include/asterisk/..."

I'll include "emerge info" next:

*** Deprecated use of action 'info', use '--info' instead
Portage 2.1.2.7 (default-linux/x86/2006.1/server, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r6 i686)
=================================================================
System uname: 2.6.20-gentoo-r6 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 31 May 2007 18:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.1.3-r1, 2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.llarian.net/ http://mirror.usu.edu/mirrors/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow aac acl acpi acpi4linux alsa apache2 bash-completion berkdb bzip2 calendar cdr cgi chroot cli cracklib crypt cups curl dba dbm dedicated dhcp dri dvd dvdr encode ethereal evms2 expat fastcgi fbcon ffmpeg flac ftp gd gdbm gif gmp gpm gs h323 iconv idn imagemagick imap isdnlog jbig jdepend jikes jp2 jpeg jta junit large-domain libg++ lm_sensors logrotate lzw mad maildir mailwrapper mhash midi mmx mmxext mod_muc mpm-worker mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses netpbm neural nls no-suexec noweb nptl nptlonly offensive ogg openmp pam pam-mysql pcre pear perl php png posix ppds pppd procmail python readline reflection rrdtool rtc ruby sasl servlet-2.3 servlet-2.4 session shaper shared slang snmp soap sockets socks5 speex spell spl sse ssl svg svga tcpd theora threads tidy tiff tokenizer truetype unicode unzip usb utf8 v4l v4l2 vhosts virtual-users virus-scan web x86 xchatnogtk xchattext xml xmlrpc xorg yv12 zeo zip 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 mulaw multi null plug rate route share shm softvol" 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="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Thanks in advance!
Comment 1 Jesse Adelman 2007-06-01 02:30:02 UTC
Ah, and this seems to only occur with the h323 USE flag set. Disabling gets around this.
Comment 2 Jesse Adelman 2007-06-01 02:30:32 UTC
Updated summary.
Comment 3 Petric Frank 2007-07-10 13:00:13 UTC
Using the patch below i got asterisk 1.2.17 compiled, even with the h323 use flag on.

I don't know whether it is to correct location of that fix, but it works for me. Now the compiler find the missing include files.

I attach the patch inline because creating an attachment fails (see Bug #184835).
----------------------- cut -----------------------------
diff -Nura asterisk-1.2.17.old/channels/h323/Makefile asterisk-1.2.17/channels/h323/Makefile
--- asterisk-1.2.17.old/channels/h323/Makefile	2007-07-04 18:28:46.000000000 +0200
+++ asterisk-1.2.17/channels/h323/Makefile	2007-07-04 18:21:57.000000000 +0200
@@ -14,7 +14,7 @@
 STDCCFLAGS 	+= -I/usr/include/openh323
 #OPTCCFLAGS	+=
 CFLAGS		+= -pipe
-CXXFLAGS	+= -I/usr/include/openh323 -I../../include
+CXXFLAGS	+= -I/usr/include/openh323
 TARGET		+= libchanh323.a
 TARGET		+= Makefile.ast
 SOURCES		= ast_h323.cxx
----------------------- cut -----------------------------

Hope that helps.
Comment 4 Petric Frank 2007-07-10 13:03:24 UTC
Grmbl - wrong patch.

Here is the correct one:
----------------------- cut -----------------------------
diff -Nura asterisk-1.2.17.old/channels/h323/Makefile asterisk-1.2.17/channels/h323/Makefile
--- asterisk-1.2.17.old/channels/h323/Makefile	2007-07-04 18:28:46.000000000 +0200
+++ asterisk-1.2.17/channels/h323/Makefile	2007-07-04 18:21:57.000000000 +0200
@@ -14,7 +14,7 @@
 STDCCFLAGS 	+= -I/usr/include/openh323
 #OPTCCFLAGS	+=
 CFLAGS		+= -pipe
-CXXFLAGS	+= -I/usr/include/openh323
+CXXFLAGS	+= -I/usr/include/openh323 -I../../include
 TARGET		+= libchanh323.a
 TARGET		+= Makefile.ast
 SOURCES		= ast_h323.cxx
----------------------- cut -----------------------------
Comment 5 Gustavo Zacarias (RETIRED) gentoo-dev 2007-07-12 21:37:47 UTC
Fixed in asterisk-1.2.21.1.