All pastes #68538 Raw Edit

Unnamed

public text v1 · immutable
#68538 ·published 2006-06-21 19:23 UTC
rendered paste body
root@asterisk:/usr/src# tar zxf pwlib_1.5.2.tar.gz
root@asterisk:/usr/src# cd pwlib/
root@asterisk:/usr/src/pwlib# ./configure
root@asterisk:/usr/src/pwlib# make
root@asterisk:/usr/src/pwlib# cd
###NOTE: compile completed without errors.
###I set PWLIBDIR=/usr/src/pwlib, put /usr/src/pwlib in /etc/ld.so.conf, ran ldconfig
root@asterisk:/usr/src# tar zxf openh323_1.12.2.tar.gz
root@asterisk:/usr/src# cd openh323
root@asterisk:/usr/src/openh323# ./configure
root@asterisk:/usr/src/openh323# make opt
root@asterisk:/usr/src/openh323# cd
###NOTE: compile completed without errors.
###I set OPENH323DIR=/usr/src/openh323, put /usr/src/openh323 in /etc/ld.so.conf, ran ldconfig
root@asterisk:/usr/src# cd asterisk-1.2.8
root@asterisk:/usr/src/asterisk-1.2.8# apt-get install openssl libssl-dev expat libexpat-dev
###NOTE at this point there are three options I tried: 
### 1. Build asterisk without modification
### 2. Add chan_h323.so into channels/Makefile's CHANNEL_LIBS and make from /usr/src/asterisk
### 3. build chan_h323.so in /usr/src/asterisk-1.2.8/channels/h323
### Option #1 completes successfully without building any h323 modules.
### I will now procede to paste the last parts of the build for #1, and the whole build for #2.
### In order to save time, for purposes of creating this log I only did make and make clean in
### /usr/src/asterisk-1.2.8/channels
###### OPTION #2:  CHANNEL_LIBS += chan_h323.so
root@asterisk:/usr/src/asterisk-1.2.8# 
gcc  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686         -fomit-frame-pointer  -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DCRYPTO -fPIC    -c -o chan_h323.o chan_h323.c
make[1]: *** No rule to make target `h323/libchanh323.a', needed by `chan_h323.so'.  Stop.
make[1]: Leaving directory `/usr/src/asterisk-1.2.8/channels'
make: *** [subdirs] Error 1
###### OPTION #3
root@asterisk:/usr/src/asterisk-1.2.8/channels/h323# make opt
g++ -DNDEBUG   -I../../include -Wmissing-prototypes -fPIC  -DP_LINUX=2.4.27-3-686-smp -ffunction-sections -fdata-sections -D_REENTRANT -Wall  -fPIC -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/usr/src/pwlib/include/ptlib/unix -I/usr/include/pwlib -I/usr/src/pwlib/include -DPTRACING -I/usr/src/openh323/include -DHAS_IXJ -DHAS_OSS -fPIC -DP_USE_PRAGMA -Os -DNDEBUG -pipe -x c++ -c ast_h323.cxx -o ast_h323.o
ast_h323.cxx:1:1: warning: "_GNU_SOURCE" redefined
<command line>:4:1: warning: this is the location of the previous definition
In file included from ast_h323.cxx:51:
ast_h323.h:159: error: type specifier omitted for parameter `RTP_QOS'
ast_h323.h:159: error: parse error before `*' token
ast_h323.cxx:957: error: type specifier omitted for parameter `RTP_QOS'
ast_h323.cxx:957: error: parse error before `*' token
ast_h323.cxx: In member function `H323Channel*
   MyH323Connection::CreateRealTimeLogicalChannel(...)':
ast_h323.cxx:959: error: `capability' undeclared (first use this function)
ast_h323.cxx:959: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
ast_h323.cxx:959: error: `dir' undeclared (first use this function)
ast_h323.cxx:959: error: `sessionID' undeclared (first use this function)
make: *** [ast_h323.o] Error 1