Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openh323 compiling errors [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Elmo234
n00b
n00b


Joined: 08 Oct 2004
Posts: 48

PostPosted: Fri Nov 05, 2004 10:03 pm    Post subject: openh323 compiling errors [solved] Reply with quote

Hi!

I haven't been able to emerge openh323 (I want to use it with gnomemeeting). I've tried to compile it with many flags (even -O1 only) and many versions. But it always breaks saying this:

Code:

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.


If somebody could just help me... :(

Thank you very much!


Last edited by Elmo234 on Sun Mar 06, 2005 11:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
vincent_bachelier
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2004
Posts: 96

PostPosted: Fri Nov 19, 2004 5:05 pm    Post subject: Same problems Reply with quote

Hi them,
well sorry to don't solve your problems but I've got the same
same on error on this file ...
I don't understand why
I've try different solution, with and without CFLAGS ... but nothing change
I've try a more recent library openh323 and pwlib ... and the but same errors !
What's that ?
Something to do ?
I will try to compile it from vanilla sources ...
report something if the test is ok
see ya
_________________
Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ]
Back to top
View user's profile Send private message
vincent_bachelier
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2004
Posts: 96

PostPosted: Sat Nov 20, 2004 4:11 pm    Post subject: Solution Reply with quote

Hi again,
well I have found a solution on google
I have make a new gnomemeeting ebuild and I have add the patch
After that, all done !

Have fun
I paste here my file


Here the file:
openh323-1.13.2-r1.ebuild
place it in net-libs/openh323 of your own portage overlay
You can define it in make.conf
--------------------------------------------------

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.13.2-r1.ebuild,v 1.15 2004/10/04 22:25:14 pvdabeel Exp $

inherit eutils flag-o-matic

S=${WORKDIR}/${PN}
DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
HOMEPAGE="http://www.openh323.org/"
SRC_URI="http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P}.tar.gz"

LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="x86 sparc amd64 ppc"
IUSE="ssl"

DEPEND=">=sys-apps/sed-4
~dev-libs/pwlib-1.6.3
>=media-video/ffmpeg-0.4.7
ssl? ( dev-libs/openssl )"

pkg_setup() {
# to prevent merge problems with broken makefiles from old
# pwlib versions, we double-check here.

if [ "` fgrep '\$(OPENSSLDIR)/include' /usr/share/pwlib/make/unix.mak`"]
then
# patch unix.mak so it doesn't require annoying
# unmerge/merge cycle to upgrade
einfo "Fixing broken pwlib makefile."
cd /usr/share/pwlib/make
sed -i \
-e "s:-DP_SSL -I\$(OPENSSLDIR)/include -I\$(OPENSSLDIR)/crypto:-DP_SSL:" \
-e "s:^LDFLAGS.*\+= -L\$(OPENSSLDIR)/lib -L\$(OPENSSLDIR):LDFLAGS +=:" \
unix.mak
fi

if has_version ">=sys-devel/gcc-3.3.2"; then
ewarn "If you are experiencing problems emerging openh323 with gcc-3.3.2"
ewarn "please try using CFLAGS=\"-O1\" when emergeing"
ewarn "we are currently investigating this problem..."
ewarn ""
#ewarn "<sleeping 10 seconds...>"
# epause 10
fi
}

src_unpack() {
unpack ${A}

cd ${S}
# fix and enable ffmpeg/h263 support (bug #32754)
epatch ${FILESDIR}/openh323-${PV}-ffmpeg.diff

# fix include order (bug #32522)
epatch ${FILESDIR}/openh323-${PV}-include-order.diff

# fix to compile on gcc-3.4 (bug #56951)
epatch ${FILESDIR}/${P}-gcc34.diff

# fix bug with 2.6 kernel base system
epatch ${FILESDIR}/${P}-ixjuser.diff
}

src_compile() {
local makeopts

export PWLIBDIR=/usr/share/pwlib
export PTLIB_CONFIG=/usr/bin/ptlib-config
export OPENH323DIR=${S}

# NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1
makeopts="${makeopts} ASNPARSER=/usr/bin/asnparser LDFLAGS=-L${S}/lib NOTRACE=1"

if use ssl; then
export OPENSSLFLAG=1
export OPENSSLDIR=/usr
export OPENSSLLIBS="-lssl -lcrypt"
fi

# use shipped speex version
econf \
--enable-localspeex || die

use amd64 && append-flags -fPIC

emake -j1 ${makeopts} opt || die "make failed"
}

src_install() {
local OPENH323_ARCH ALT_ARCH
# make NOTRACE=1 opt ==> linux_$ARCH_n
# make opt ==> linux_$ARCH_r

# amd64 needs special treatment
if [ ${ARCH} = "amd64" ]; then
OPENH323_ARCH="linux_x86_64_n"
else
OPENH323_ARCH="linux_${ARCH}_n"
fi

dodir /usr/bin /usr/lib/ /usr/share
make PREFIX=${D}/usr install || die "install failed"
dobin ${S}/samples/simple/obj_${OPENH323_ARCH}/simph323

# remove CVS stuff
find ${D} -name 'CVS' -type d | xargs rm -rf

# mod to keep gnugk happy
insinto /usr/share/openh323/src
newins ${FILESDIR}/openh323-1.11.7-emptyMakefile Makefile

# install version.h into $OPENH323DIR
insinto /usr/share/openh323
doins version.h

rm ${D}/usr/lib/libopenh323.so
dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libopenh323.so

# for backwards compatibility with _r versioned libraries
# (this might not work...)
ALT_ARCH=${OPENH323_ARCH/_n/_r}
for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
einfo "creating /usr/lib/libh323_${ALT_ARCH}.so.${pv} symlink"
dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so.${pv}
done
dosym /usr/lib/libh323_${OPENH323_ARCH}.so.${PV} /usr/lib/libh323_${ALT_ARCH}.so

# these should point to the right directories,
# openh323.org apps and others need this
dosed "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/lib:" \
/usr/share/openh323/openh323u.mak
dosed "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
/usr/share/openh323/openh323u.mak
# this is hardcoded now? nice...
dosed "s:^\(OPENH323DIR[ \t]\+=\) ${S}:\1 /usr/share/openh323:" \
/usr/share/openh323/openh323u.mak
}

------------------------------------------------------------


And copy all patch from portage to your portage overlay

Well, now the patch

place it under files/openh323-1.13.2-ixjuser.diff of your portage overlay

---------------------------------------------------------------
diff -wruN openh323.orig/include/ixjlid.h openh323/include/ixjlid.h
--- openh323.orig/include/ixjlid.h 2004-01-31 14:13:22.000000000 +0100
+++ openh323/include/ixjlid.h 2004-11-20 16:31:26.712116400 +0100
@@ -257,6 +257,7 @@
#ifdef HAS_IXJ
#ifdef P_LINUX
#include <linux/telephony.h>
+#include <linux/compiler.h>
#include <linux/ixjuser.h>
#endif
#ifdef P_FREEBSD
-------------------------------------------------------------------


finally do this
ebuild openh323-1.13.2-r1.ebuild digest

now you can emerge gnomemeeting
openh323 will compile now

The explanation of the bug ?
ok, this is because gentoo is now 2.6 header linux kernel base ...
and the line we have to add is to take this in concideration :d
ok hope it work for us
hope they will be include in portage soon

have fun
_________________
Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ]
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 476
Location: The Two Niles, Africa

PostPosted: Tue Nov 30, 2004 9:50 am    Post subject: Reply with quote

Vincent,

Did you manage to get gnomemeeting working under AMD64? After I finally got openh323 compile (I am Abdul-Wahid on bugzilla) ....I found I couldn't get gnomemeeting compiled. I then found bug #60310 that has the same problem as me. They installing newer versions of everything which are currently masked. However the last comment says...

Quote:
While 1.0.2 will run, it *poofs* as in goes away or locks up when connecting to netmeeting.


Have you or anyone else actually got gnomemeeting working properly under AMD64. If so which versions. thanks.
Back to top
View user's profile Send private message
vincent_bachelier
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2004
Posts: 96

PostPosted: Wed Dec 01, 2004 11:06 am    Post subject: Gnomemeeting Reply with quote

It works !
It run, I can see my face with the webcam
Just I haven't test it really, it run, that's all,
I write back when I have test it really with microphone and webcam
see ya
_________________
Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ]
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 476
Location: The Two Niles, Africa

PostPosted: Thu Dec 02, 2004 10:11 am    Post subject: Reply with quote

Yes, I now have it working too. At least, like you I haven't fully tested it but so far so good. I had to upgraded to openh323-1.13.5 and gnomemeeting-1.0.2.

It took me some time to get it installed though. I had to edit the ebuilds for pwlib and openh323. The gnomemeeting ebuild also didn't seem to fix the gconf stuff properly. I had to run
Code:
GCONF_CONFIG_SOURCE=xml::/home/aw/.gconf gconftool-2 --makefile-install-rule /etc/gconf/schemas/gnomemeeting.schemas


from the command line first.

I have read elswhere though that even though it compiles fine it drops out when trying to make network connections. The person I want to speak to though using gnomemeeting isn't around at the moment though so it will have to wait a few days before I can test it.

Thanks for your help though.
Back to top
View user's profile Send private message
giant
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2002
Posts: 107

PostPosted: Tue Jan 04, 2005 8:42 pm    Post subject: Reply with quote

I am trying to instal gnomemeeting right now.

I managed to emerge openh323 and pwlib.

Did you change anything for the gnomemeeting ebuild ?

This is what I get

Code:

connection.cpp: In member function `BOOL GMH323Connection::OnLogicalChannel(H323Channel*, BOOL)':
connection.cpp:118: Fehler: 'class H323Codec' has no member named 'IsDescendant'
make[2]: *** [connection.o] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/gnomemeeting-1.0.2-r1/work/gnomemeeting-1.0.2/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/gnomemeeting-1.0.2-r1/work/gnomemeeting-1.0.2'
make: *** [all-recursive-am] Fehler 2


[/quote]
Back to top
View user's profile Send private message
Kaboosh
Apprentice
Apprentice


Joined: 10 Jun 2004
Posts: 162
Location: Edmonton, AB - Canada

PostPosted: Tue Mar 01, 2005 1:59 am    Post subject: Me too Reply with quote

I'm getting the same error...it appears to me that it might be an error in openh323-1.15.2-r1 (and possibly openh323-1.15.2). I've masked it using >=openh323-1.15.2 in /etc/portage/package.mask.

Currently compiling - I'll update with results...
_________________
"The philosophy of one century is the common sense of the next." - Henry Ward Beecher
Back to top
View user's profile Send private message
Kaboosh
Apprentice
Apprentice


Joined: 10 Jun 2004
Posts: 162
Location: Edmonton, AB - Canada

PostPosted: Tue Mar 01, 2005 4:31 am    Post subject: Another roadblock... Reply with quote

...also had to drop to pwlib-1.6.6 because of an openh323 compile error due to a missing file /usr/share/ptlib/tools/asnparser (part of pwlib and missing in the 1.8.x series apparently)... :roll:
Back to top
View user's profile Send private message
Kaboosh
Apprentice
Apprentice


Joined: 10 Jun 2004
Posts: 162
Location: Edmonton, AB - Canada

PostPosted: Thu Mar 03, 2005 1:37 am    Post subject: Reply with quote

...OK so it's confirmed.

Compile using pwlib <1.8.x series with openh323 <1.15.x series and you should be OK for compiling gnomemeeting-1.0.2. The two successful builds I have are:
pwlib-1.6.6-r2 -> openh323-1.13.5-r1 -> gnomemeeting-1.0.2
pwlib-1.6.6 -> openh323-1.13.5 -> gnomemeeting-1.0.2

HTH 8)
_________________
"The philosophy of one century is the common sense of the next." - Henry Ward Beecher
Back to top
View user's profile Send private message
mikkoloo
Apprentice
Apprentice


Joined: 04 Nov 2003
Posts: 159
Location: .se and .nl

PostPosted: Wed Dec 21, 2005 2:32 pm    Post subject: Reply with quote

what a mess :s
_________________
----
AMD 64 4000+, nforce4 mobo, 2GB RAM, 200Gb SATA HDD, xfx Geforce 7900GT XE
----
HP pavilion zv5470EA: AMD 64 3400+, 512 Mb RAM, 80 Gb HDD, nvidia GeForce4 440 Go 64M, Cabletron RoamAbout 802.11 DS (orinoco gold) WiFi. Creative Webcam Pro (ov511)
Back to top
View user's profile Send private message
^jimmy^
n00b
n00b


Joined: 11 Jul 2004
Posts: 51
Location: Erlangen, Germany

PostPosted: Sun Mar 05, 2006 3:05 pm    Post subject: I can't compile openh323 amd64 Reply with quote

I was not able to emerge openh323 stable, but when I went to:

~amd64 on pwlib, openh323 and gnomemeeting,

then it all emerged without a problem.

But know when I try to run gnomemeeting I get the following:

gnomemeeting: error while loading shared libraries: libplc4.so: cannot open shared object file: No such file or directory

ACTUALIZATION:
-------------------------------------------------------------------------------------------------------------
SOLVED:

The problem was solved by:

#emerge nspr
-------------------------------------------------------------------------------------------------------------

Cheers!

^jimmy^
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum