Re: FC3 + oh323
Либы то здесь причем ?
Не идет именно трансляция .c -> .o
Или под либами имеется ввиду копирование и инклудов и либов ?
Не знаю. Все уже перепробовал.
Естественно без make install в pwlib и openh323
Как доктор прописал в README: ./configure; make clean; make opt;
На другом компутере.
И asterisk 1.0.0
и pwlib - 1.5.2 без Janus patch4 - не компилируется сам
pwlib
и openh323 - 1.12.2 без Janus patch4
Может дело в компилере для fedora core 3
gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
или в самой федоре (в самой - врядли)
Для oh323 и h323 не делается configure
Может какие ключи для gcc в Makefile ?
кусочек LOGa oh323:
===========
[root@fc3 asterisk-oh323-0.6.5]# make
for x in wrapper asterisk-driver; do make -C $x build || exit 1 ; done
make[1]: Entering directory `/usr/src/asterisk/asterisk-oh323-0.6.5/wrapper'
./check_ver /usr/src/asterisk/pwlib pwlib
./check_ver /usr/src/asterisk/openh323 openh323
ar rc liboh323wrap_s.a wrapper_misc.o asteriskaudio.o wrapconnection.o wrapendpoint.o wrapper.o wrapcaps.o wrapgkserver.o
make[1]: Leaving directory `/usr/src/asterisk/asterisk-oh323-0.6.5/wrapper'
make[1]: Entering directory `/usr/src/asterisk/asterisk-oh323-0.6.5/asterisk-driver'
gcc -Wall -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -I/usr/include/asterisk -I../wrapper -g -c -o chan_oh323.o chan_oh323.c
In file included from /usr/include/string.h:33,
from chan_oh323.c:34:
/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h:213: error: syntax error before "typedef"
In file included from chan_oh323.c:34:
/usr/include/string.h:38: error: syntax error before "extern"
/usr/include/string.h:40: error: syntax error before "__THROW"
/usr/include/string.h:44: error: syntax error before "__THROW"
/usr/include/string.h:59: error: syntax error before "extern"
/usr/include/string.h:59: error: syntax error before "__THROW"
===========
Не понятно почему channels/h323 не компилируется ?
Ведь присутствует в самом tar.gz asterisk(a).
asterisk компилируется с пол-пинка и работает
LOG channels/h323:
===========
[root@fc3 h323]# make
g++ -g -c -fno-rtti -o ast_h323.o -march=i686 -DPBYTE_ORDER=PLITTLE_ENDIAN -DNDEBUG -DDO_CRASH -DDEBUG_THREADS -pipe -Wall -fPIC -DP_LINUX -D_REENTRANT -D_GNU_SOURCE -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS -DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA -I../../include -I/usr/src/asterisk/pwlib/include/ptlib/unix -I/usr/src/asterisk/pwlib/include -I/usr/src/asterisk/openh323/include -Wno-missing-prototypes -Wno-missing-declarations ast_h323.cpp
cc1plus: warning: command line option "-Wno-missing-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-missing-declarations" is valid for C/ObjC but not for C++
In file included from /usr/src/asterisk/pwlib/include/ptlib.h:145,
from ast_h323.cpp:34:
/usr/src/asterisk/pwlib/include/ptbuildopts.h:124:1: warning: "P_LINUX" redefined
<command line>:6:1: warning: this is the location of the previous definition
In file included from /usr/src/asterisk/pwlib/include/ptlib.h:169,
from ast_h323.cpp:34:
/usr/src/asterisk/pwlib/include/ptlib/unix/ptlib/pdirect.h:78: error: expected unqualified-id before "protected"
/usr/src/asterisk/pwlib/include/ptlib/unix/ptlib/pdirect.h:78: error: expected `,' or `;' before "protected"
/usr/src/asterisk/pwlib/include/ptlib/unix/ptlib/pdirect.h:80: error: expected constructor, destructor, or type conversion before '*' token
/usr/src/asterisk/pwlib/include/ptlib/unix/ptlib/pdirect.h:80: error: expected `,' or `;' before '*' token
In file included from /usr/src/asterisk/pwlib/include/ptlib.h:181,
|