[Home]

Summary:ASTERISK-05310: Cannot compile h323 on FreeBSD
Reporter:stavros (stavros)Labels:
Date Opened:2005-10-18 09:31:57Date Closed:2011-06-07 14:00:42
Priority:BlockerRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:
version openh323_1.12.0.tar.gz installed from ports (only did make as per INSTALL file).


/usr/local/src/asterisk-1.2.0-beta1/channels/h323
sip# gmake opt
g++ -DNDEBUG   -I../../include -Wmissing-prototypes -fPIC  -DP_FREEBSD=503001 -I/usr/local/include -I/usr/local/include -D_REENTRANT -Wall -DP_FREEBSD=503001 -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/usr/ports/devel/pwlib/work/pwlib/include/ptlib/unix -I/usr/ports/devel/pwlib/work/pwlib/include -DPTRACING -I/usr/ports/net/openh323/work/openh323//include -DHAS_OSS -DNDEBUG -pipe -c ast_h323.cxx -o ast_h323.o
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++
In file included from /usr/ports/devel/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../contain.h:776,
                from /usr/ports/devel/pwlib/work/pwlib/include/ptlib/unix/ptlib/contain.h:120,
                from /usr/ports/devel/pwlib/work/pwlib/include/ptlib.h:139,
                from ast_h323.cxx:35:
/usr/ports/devel/pwlib/work/pwlib/include/ptlib/contain.inl: In constructor `PAbstractList::PAbstractList()':
/usr/ports/devel/pwlib/work/pwlib/include/ptlib/contain.inl:419: warning: right-hand operand of comma has no effect
In file included from ast_h323.cxx:51:
ast_h323.h: At global scope:
ast_h323.h:159: error: `RTP_QOS' has not been declared
ast_h323.h:159: error: ISO C++ forbids declaration of `parameter' with no type
ast_h323.cxx:952: error: `RTP_QOS' has not been declared
ast_h323.cxx:953: error: ISO C++ forbids declaration of `parameter' with no type
/usr/ports/devel/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../pdirect.h:458: warning: inline function `static
BOOL PDirectory::Remove(const PString&)' used but never defined
gmake: *** [ast_h323.o] Error 1
sip#



****** ADDITIONAL INFORMATION ******

sip# uname -a
FreeBSD 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

I had to change the OPENH323DIRin the Makefile in h323 directory to
OPENH323DIR=/usr/ports/net/openh323/work/openh323
Comments:By: Tilghman Lesher (tilghman) 2005-10-18 11:36:08

Looking in the README for h323, it says, quote:

NOTICE: Whatever you do, DO NOT USE distrubution specific installs
of Open H.323 and PWLib. In fact, you should check to make sure
your distro did not install them for you without your knowledge.

So you're using the distribution-specific install, and then you're wondering why it doesn't work?