Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72448 - openh323 doesn't compile on amd64 arch. Problem with ixjunix.cxx
Summary: openh323 doesn't compile on amd64 arch. Problem with ixjunix.cxx
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-25 05:22 UTC by Bachelier Vincent
Modified: 2004-11-30 14:31 UTC (History)
1 user (show)

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


Attachments
Patch for ebuild openh323-1.13.2-r1.ebuild (openh323-1.13.2-r1.ebuild.diff,365 bytes, patch)
2004-11-25 05:29 UTC, Bachelier Vincent
Details | Diff
Patch to solve the bug (openh323-1.13.2-ixjuser.diff,364 bytes, patch)
2004-11-25 05:32 UTC, Bachelier Vincent
Details | Diff
New openh323-1.13.2-ixjuser.diff (openh323-1.13.2-ixjuser.diff,284 bytes, patch)
2004-11-29 11:09 UTC, Abdul-Wahid Paterson
Details | Diff
My portage overlay (myportage.tgz,3.82 KB, application/x-tgz)
2004-11-29 22:12 UTC, Bachelier Vincent
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bachelier Vincent 2004-11-25 05:22:31 UTC
I emerge gnomemeeting (1.00) and the openh323 dependancy fail with this below.

This is the error message:


In file included from /usr/share/pwlib/include/ptlib/contain.h:782,
                 from /usr/share/pwlib/include/ptlib.h:146,
                 from h235auth1.cxx:75:
/usr/share/pwlib/include/ptlib/contain.inl: In constructor `PAbstractList::PAbstractList()':
/usr/share/pwlib/include/ptlib/contain.inl:428: warning: right-hand operand of comma has no effect
g++ -DP_USE_PRAGMA  -ffunction-sections -fdata-sections -D_REENTRANT  -Wall  -DP_64BIT -fPIC -I/var/tmp/portage/openh323-1.13.2-r1/work/openh323/include  -I/usr/include/ffmpeg -DPASN_NOPRINTON -DPASN_LEANANDMEAN -DHAS_OSS -DPASN_NOPRINTON -I/usr/share/pwlib/include -Os  -O1 -fPIC -x c++ -c ixjunix.cxx -o /var/tmp/portage/openh323-1.13.2-r1/work/openh323/lib/obj_linux_x86_64_rn/ixjunix.o
In file included from /usr/share/pwlib/include/ptlib/contain.h:782,
                 from /usr/share/pwlib/include/ptlib.h:146,
                 from ixjunix.cxx:485:
/usr/share/pwlib/include/ptlib/contain.inl: In constructor `PAbstractList::PAbstractList()':
/usr/share/pwlib/include/ptlib/contain.inl:428: warning: right-hand operand of comma has no effect
In file included from /var/tmp/portage/openh323-1.13.2-r1/work/openh323/include/ixjlid.h:260,
                 from ixjunix.cxx:491:
/usr/include/linux/ixjuser.h: At global scope:
/usr/include/linux/ixjuser.h:353: error: expected `;' before '*' token
make[1]: *** [/var/tmp/portage/openh323-1.13.2-r1/work/openh323/lib/obj_linux_x86_64_rn/ixjunix.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/openh323-1.13.2-r1/work/openh323/src'
make: *** [opt] Error 2

!!! ERROR: net-libs/openh323-1.13.2-r1 failed.
!!! Function src_compile, Line 84, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message. 

Reproducible: Always
Steps to Reproduce:
1.emerge gnomemeeting or emerge openh323 (~amd64 or amd64)
2.
3.
Comment 1 Bachelier Vincent 2004-11-25 05:29:51 UTC
Created attachment 44704 [details, diff]
Patch for ebuild openh323-1.13.2-r1.ebuild

Just to add my patch under the ebuild
Comment 2 Bachelier Vincent 2004-11-25 05:32:14 UTC
Created attachment 44706 [details, diff]
Patch to solve the bug

Patch to successfull build openh323 on amd64 with kernel header based on 2.6
Comment 3 Abdul-Wahid Paterson 2004-11-29 11:09:32 UTC
Created attachment 44943 [details, diff]
New openh323-1.13.2-ixjuser.diff 

Bachelier, I tried your patch but it seemed to have the directories wrong. Here
is a new patch I created that works for me.

However, when I build I get an access viloation.... :(
Comment 4 Abdul-Wahid Paterson 2004-11-29 11:12:30 UTC
the Access Violation is caused by the writing the to /usr/lib as follows....

# cat /tmp/sandbox-net-libs_-_openh323-1.13.2-r1-20440.log
symlink:   /usr/lib/libh323_linux_x86_64_n.so
symlink:   /usr/lib/libh323_linux_x86_64_n.so.1
symlink:   /usr/lib/libh323_linux_x86_64_n.so.1.13
open_wr:   /usr/lib/libh323_linux_x86_64_n.so.1.13.2

Comment 5 Abdul-Wahid Paterson 2004-11-29 11:21:53 UTC
I managed to get around the access violation by adding

addwrite "/usr/lib" 

at the top of the src_compile() function....is that the proper way of getting around this type of problem?

Anyway...works for me...now openh323 is compiled and installed.
Comment 6 Bachelier Vincent 2004-11-29 15:58:14 UTC
I haven't got any problem of violation because my patch just add one line under a file, and it's a simple include ...
Perhaps the ebuild make a violation, it's another problem perhaps
there my emerge info:

Portage 2.0.51-r3 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/share/config /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox userpriv"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/myportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups dvd dvdr dvdread encode esd f77 foomaticdb fortran gdbm gif gnome gpm gtk gtk2 gtkhtmlimlib ipv6 jpeg kde ldap libg++ libwww mikmod motif mpeg multilib ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl tcltk tcpd tiff truetype usb xinerama xml2 xmms xv zlib linguas_fr"


anything in it ?
ok, what's yours ?
Comment 7 Benjamin 2004-11-29 16:11:49 UTC
Hello Bachelier Vincent & Abdul-Wahid Paterson,

the same problem occurs on my AMD 64 system if I start the emerge process for openh323-1.13.2. I copy your uploaded pics into /usr/portage/net-libs/openh323/files but the same error occurs.

You wrote:"Patch for ebuild openh323-1.13.2-r1.ebuild.
Just to add my patch under the ebuild."

Do I make anything wrong if I only copy the patches?
Should I make a temp directory for the 
emerge process?


Thanks,
Benjamin
Comment 8 Benjamin 2004-11-29 16:13:05 UTC
for more informations on my system:
bash-2.05b# emerge info
Portage 2.0.51-r3 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd f77 foomaticdb fortran gdbm gif gnome gphoto2 gpm gtk gtk2 imlib java jpeg kdeldap libg++ libwww mikmod motif mpeg multilib mysql ncurses nls nogcj oggvorbis opengl pam pdflib perl php png python qt quicktime readline sdl slang spellssl tcpd truetype usb video xine xml2 xmms xv zlib linguas_de"

bash-2.05b# 
Comment 9 Bachelier Vincent 2004-11-29 22:12:44 UTC
Created attachment 44972 [details]
My portage overlay

Decompress it, where you want, and don't forget to set portage overlay under 
make file

example:

I have put myportage under /usr
well: /usr/myportage then

I put under make file this line
PORTDIR_OVERLAY=/usr/myportage

Well, now try again
Comment 10 Abdul-Wahid Paterson 2004-11-30 01:32:02 UTC
Bachelier,

The patch I created fixed the same thing as your patch. In fact I got the idea from you. I don't understand though why the directories specified in the patch caused a problem for me.

The access violation is a completely different issue and I expect it is not an AMD64 specific issue. I have read elsewhere that it is to do with using the sandbox feature and compiling with the sandbox feature disabled will also prevent the access violation. However, I notice from your emerge info that you do have sandbox enabled. I am not sure therefore why I get this error and not you. 

Here is my emerge info...
 

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://192.168.1.10/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo.blueyonder.co.uk ftp://gentoo.blueyonder.co.uk/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 berkdb bitmap-fonts bonobo cdr cjk crypt cups curl dga directfb dvd dvdr emacs esd f77 fam flash fortran gd gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imlib java jp2 jpeg junit ldap libwww lzw lzw-tiff mad mbox md5sum mng motif mozilla mpeg multilib mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python readline samba scanner sdl slang spell ssl svg tcpd threads tiff truetype unicode usb userlocales xml xml2 xmms xpm xrandr xv zlib"

Comment 11 Benjamin 2004-11-30 09:47:45 UTC
Bachelier,
thanks for the description on howto use the portage_overlay feature. 
Your eBuild & patch works for me.


Thanks,
Benjamin
Comment 12 Stefan Knoblich (RETIRED) gentoo-dev 2004-11-30 14:31:18 UTC
fixed in cvs