[Home]

Summary:ASTERISK-03283: h323 channel compile broken PPC
Reporter:adria vidal (adriavidal)Labels:
Date Opened:2005-01-15 12:52:22.000-0600Date Closed:2011-06-07 14:04:51
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Hi, i've succesfully compiled pwlib & openh323, but when i do

cd /path/to/asterisk/channels/h323
make  



[root@asterisk h323]# make
g++ -g -c -fno-rtti -o ast_h323.o -march=ppc -DPBYTE_ORDER=PLITTLE_ENDIAN -DNDEBUG -DDO_CRASH -DDEBUG_THREADS -pipe -Wall -fPIC -D_REENTRANT -D_GNU_SOURCE -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS -DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA -I../../include -I/root/pwlib/include/ptlib/unix -I/root/pwlib/include -I/root/openh323/include -Wno-missing-prototypes -Wno-missing-declarations ast_h323.cpp
cc1plus: invalid option `arch=ppc'
make: *** [ast_h323.o] Error 1
[root@asterisk h323]#


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

Well i'm running YDL into a Apple PPC computer, please need to run h323.....
Comments:By: twisted (twisted) 2005-01-15 12:58:19.000-0600

looks like the problem is actually with g++ (cc1plus) the compiler....

By: Mark Spencer (markster) 2005-01-15 13:01:21.000-0600

Fixed in CVS head.

By: adria vidal (adriavidal) 2005-01-16 06:13:10.000-0600

cd /path/to/asterisk/channels/h323
make  

it's ok now, thanks

but make install into asterisk dir finish with



n_h323.c:480: structure has no member named `callerid'
chan_h323.c:482: structure has no member named `callername'
chan_h323.c:483: structure has no member named `callername'
chan_h323.c:487: structure has no member named `callername'
chan_h323.c:489: structure has no member named `callername'
chan_h323.c:489: structure has no member named `callername'
chan_h323.c:489: structure has no member named `callername'
chan_h323.c:492: structure has no member named `callerid'
....

chan_h323.c: In function `load_module':
chan_h323.c:1995: warning: passing arg 1 of `h323_callback_register' from incompatible pointer type
chan_h323.c:1995: warning: passing arg 4 of `h323_callback_register' from incompatible pointer type
chan_h323.c:1995: too few arguments to function `h323_callback_register'
chan_h323.c:1998: `bindaddr' undeclared (first use in this function)
make[1]: *** [chan_h323.o] Error 1
make[1]: Leaving directory `/mnt/60gbide2/usr/src/asterisk/channels'
make: *** [subdirs] Error 1

By: Mark Spencer (markster) 2005-01-16 16:28:08.000-0600

The code you are trying to compile is not CVS head.

By: adria vidal (adriavidal) 2005-01-16 18:07:57.000-0600

I've done

cvs checkout -r v1-0 zaptel libpri asterisk asterisk-addons asterisk-sounds


cd /asterisk/channels/h323
make clean
make

cd ../../asterisk
make clean
make install

.....

DASTERISK_VERSION=\"CVS-HEAD-01/16/05-12:46:45\"

.....




chan_h323.c:505: incompatible type for argument 3 of `h323_make_call'
chan_h323.c: In function `oh323_hangup':
chan_h323.c:560: too few arguments to function `h323_clear_call'
chan_h323.c: In function `setup_incoming_call':
chan_h323.c:1153: structure has no member named `incominglimit'
chan_h323.c:1154: structure has no member named `inUse'
chan_h323.c:1154: structure has no member named `incominglimit'
chan_h323.c:1155: structure has no member named `incominglimit'
chan_h323.c:1179: structure has no member named `inUse'
chan_h323.c: In function `cleanup_connection':
chan_h323.c:1371: structure has no member named `inUse'
chan_h323.c: In function `reload_config':
chan_h323.c:1632: too many arguments to function `h323_end_point_create'
chan_h323.c:1637: `bindaddr' undeclared (first use in this function)
chan_h323.c:1637: (Each undeclared identifier is reported only once
chan_h323.c:1637: for each function it appears in.)
chan_h323.c:1776: warning: implicit declaration of function `h323_set_options'
chan_h323.c: In function `load_module':
chan_h323.c:1995: warning: passing arg 1 of `h323_callback_register' from incompatible pointer type
chan_h323.c:1995: warning: passing arg 4 of `h323_callback_register' from incompatible pointer type
chan_h323.c:1995: too few arguments to function `h323_callback_register'
chan_h323.c:1998: `bindaddr' undeclared (first use in this function)
make[1]: *** [chan_h323.o] Error 1
make[1]: Leaving directory `/mnt/60gbide2/usr/src/asterisk/channels'
make: *** [subdirs] Error 1
[root@asterisk asterisk]#


i'm a little bit lost, sorry.
What's next?

By: Mark Spencer (markster) 2005-01-16 22:07:29.000-0600

That's not CVS head.  Please use CVS head.

By: adria vidal (adriavidal) 2005-01-17 08:23:40.000-0600

cvs update -r HEAD asterisk

h323 dir
make clean
make

asterisk dir
make clean
make install

get error too.... now i'm in cvs head for sure....



an_h323.c:496: structure has no member named `callername'
chan_h323.c:497: structure has no member named `callername'
chan_h323.c:498: structure has no member named `callername'
chan_h323.c:505: incompatible type for argument 3 of `h323_make_call'
chan_h323.c: In function `oh323_hangup':
chan_h323.c:560: too few arguments to function `h323_clear_call'
chan_h323.c: In function `setup_incoming_call':
chan_h323.c:1153: structure has no member named `incominglimit'
chan_h323.c:1154: structure has no member named `inUse'
chan_h323.c:1154: structure has no member named `incominglimit'
chan_h323.c:1155: structure has no member named `incominglimit'
chan_h323.c:1179: structure has no member named `inUse'
chan_h323.c: In function `cleanup_connection':
chan_h323.c:1371: structure has no member named `inUse'
chan_h323.c: In function `reload_config':
chan_h323.c:1632: too many arguments to function `h323_end_point_create'
chan_h323.c:1637: `bindaddr' undeclared (first use in this function)
chan_h323.c:1637: (Each undeclared identifier is reported only once
chan_h323.c:1637: for each function it appears in.)
chan_h323.c:1776: warning: implicit declaration of function `h323_set_options'
chan_h323.c: In function `load_module':
chan_h323.c:1995: warning: passing arg 1 of `h323_callback_register' from incompatible pointer type
chan_h323.c:1995: warning: passing arg 4 of `h323_callback_register' from incompatible pointer type
chan_h323.c:1995: too few arguments to function `h323_callback_register'
chan_h323.c:1998: `bindaddr' undeclared (first use in this function)
make[1]: *** [chan_h323.o] Error 1
make[1]: Leaving directory `/mnt/60gbide2/usr/src/asterisk/channels'
make: *** [subdirs] Error 1
[root@asterisk asterisk]#

By: nick (nick) 2005-01-17 11:47:38.000-0600

You might try rm -rf ing your directories and doing a fresh 'cvs co' of everything...

Nick

By: adria vidal (adriavidal) 2005-01-17 17:31:33.000-0600

well i've removed asterisk dir
/h323
make
cvs -r HEAD asterisk
make install

new error

gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6  -fsigned-char  -DZAPTEL_OPTIMIZATIONS  -DASTERISK_VERSION=\"CVS-NHEAD-01/17/05-19:15:56\" -DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN      -Wno-missing-prototypes -Wno-missing-declarations   -DZAPATA_PRI   -DIAX_TRUNKING   -DCRYPTO -fPIC    -c -o chan_h323.o chan_h323.c
gcc -shared -Xlinker -x -o chan_h323.so chan_h323.o h323/libchanh323.a -ldl -L/usr/src/pwlib/lib -lpt_linux_x86_r -L/usr/src/openh323/lib -lh323_linux_x86_r -L/usr/lib -lcrypto -lssl -lexpat
/usr/bin/ld: cannot find -lpt_linux_x86_r
collect2: ld returned 1 exit status
make[1]: *** [chan_h323.so] Error 1
make[1]: Leaving directory `/mnt/60gbide2/usr/src/asterisk/channels'
make: *** [subdirs] Error 1
[root@asterisk asterisk]#

By: twisted (twisted) 2005-01-17 17:59:52.000-0600

wierd - isn't that the recursive pthread lib?  If so, do you have the kernel development headers/libs installed?

edited on: 01-17-05 18:00

By: Mark Spencer (markster) 2005-01-17 21:27:27.000-0600

This is obviously a compile issue and no longer a bug in Asterisk.  Please take your support needs to #asterisk or another more appropriate forum than the bug tracker.

By: Digium Subversion (svnbot) 2008-01-15 15:21:50.000-0600

Repository: asterisk
Revision: 4801

U   trunk/channels/h323/Makefile

------------------------------------------------------------------------
r4801 | markster | 2008-01-15 15:21:49 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix H.323 build on ppc (bug ASTERISK-3283)

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

http://svn.digium.com/view/asterisk?view=rev&revision=4801