[Asterisk-Users] Problems Compiling and Loading asterisk-oh323 0.6.2

Brian Wilkins brian at hcc.net
Mon Jun 28 10:03:20 MST 2004


Michael: 
    I wish I could break it again for you, but I got it working eventually. My 
terminal cache is only so long, so I'm not able to go back and look at what 
the errors were.  Everything works fine now and Asterisk loads the module 
correctly. 

On Yaum al-Ithnain 10 Jumaada al-Awal 1425 12:01 pm, Michael Manousos wrote:
> Brian,
> Send the first lines right after 'make'.
>
> Michael
>
> Brian Wilkins wrote:
> > Michael:
> >       I tried that version also and got the following errors. I just
> > upgraded to 0.6.3 version and it gave me the exact same errors. Any
> > clues? PWLib and Openh323 build just fine, maybe path got b0rked ?
> > Thanks.
> >
> > This is just a snippet of the hundred of errors that I got:
> >
> > -- snip --
> > asteriskaudio.cxx:170: syntax error before `::'
> > asteriskaudio.cxx:173: syntax error before `;'
> > asteriskaudio.cxx:177: ANSI C++ forbids declaration `error' with no type
> > asteriskaudio.cxx:177: conflicting types for `int error[0]'
> > asteriskaudio.hxx:59: previous declaration as `int error'
> > asteriskaudio.cxx:177: invalid initializer
> > asteriskaudio.cxx:180: parse error before `for'
> > asteriskaudio.cxx:180: parse error before `;'
> > asteriskaudio.cxx:180: syntax error before `++'
> > asteriskaudio.cxx:182: ANSI C++ forbids declaration `snprintf' with no
> > type asteriskaudio.cxx:182: initializer list being treated as compound
> > expression asteriskaudio.cxx:183: ANSI C++ forbids declaration
> > `recordArray' with no type asteriskaudio.cxx:183: variable-size type
> > declared outside of any function asteriskaudio.cxx:183: invalid
> > initializer
> > asteriskaudio.cxx:184: parse error before `}'
> > asteriskaudio.cxx:187: parse error before `;'
> > asteriskaudio.cxx:187: syntax error before `++'
> > asteriskaudio.cxx:189: ANSI C++ forbids declaration `snprintf' with no
> > type asteriskaudio.cxx:189: redefinition of `int snprintf'
> > asteriskaudio.cxx:182: `int snprintf' previously defined here
> > asteriskaudio.cxx:189: initializer list being treated as compound
> > expression asteriskaudio.cxx:189: multiple initializations given for
> > `snprintf' asteriskaudio.cxx:190: ANSI C++ forbids declaration
> > `playArray' with no type asteriskaudio.cxx:190: variable-size type
> > declared outside of any function asteriskaudio.cxx:190: invalid
> > initializer
> > asteriskaudio.cxx:191: parse error before `}'
> > asteriskaudio.cxx:202: syntax error before `::'
> > asteriskaudio.cxx:217: parse error before `&'
> > asteriskaudio.cxx:225: invalid use of undefined type `class
> > PAsteriskSoundChannel'
> > asteriskaudio.hxx:69: forward declaration of `class
> > PAsteriskSoundChannel' asteriskaudio.cxx: In method `BOOL
> > PAsteriskSoundChannel::Open(...)': asteriskaudio.cxx:232: `deviceFd'
> > undeclared (first use this function) asteriskaudio.cxx:235: `os_handle'
> > undeclared (first use this function) asteriskaudio.cxx:236: `mediaFmt'
> > undeclared (first use this function) asteriskaudio.cxx:237: `frameTm'
> > undeclared (first use this function) asteriskaudio.cxx:238: `frameNm'
> > undeclared (first use this function) asteriskaudio.cxx:239: `packetSz'
> > undeclared (first use this function) asteriskaudio.cxx:240: invalid use
> > of undefined type `class
> > PAsteriskSoundChannel'
> > asteriskaudio.hxx:69: forward declaration of `class
> > PAsteriskSoundChannel' asteriskaudio.cxx:225: incomplete `this' defined
> > here
> > asteriskaudio.cxx: At top level:
> > asteriskaudio.cxx:247: invalid use of undefined type `class
> > PAsteriskSoundChannel'
> > asteriskaudio.hxx:69: forward declaration of `class
> > PAsteriskSoundChannel' asteriskaudio.cxx: In method `BOOL
> > PAsteriskSoundChannel::Close()': asteriskaudio.cxx:255: invalid use of
> > undefined type `class
> > PAsteriskSoundChannel'
> > asteriskaudio.hxx:69: forward declaration of `class
> > PAsteriskSoundChannel' asteriskaudio.cxx:247: incomplete `this' defined
> > here
> > asteriskaudio.cxx:256: `PChannel' undeclared (first use this function)
> > asteriskaudio.cxx:256: parse error before `::'
> > asteriskaudio.cxx:258: confused by earlier errors, bailing out
> > make[1]: *** [asteriskaudio.o] Error 1
> > -- end snip --
> >
> > On Yaum al-Ithnain 10 Jumaada al-Awal 1425 06:28 am, Michael Manousos 
wrote:
> >>Use the 0.6.2a version.
> >>
> >>Michael.
> >>
> >>Brian Wilkins wrote:
> >>>Hi,
> >>>
> >>>   I having a problem compiling the wrapper for oh323. I am running
> >>>Debian, kernel version 2.4.18-bf2.4. The pwlib version I have is 1.6.6
> >>>and the openh323 version I have is 1.13.5. I execute the following
> >>>commands first before attempting to compile the wrapper:
> >>>
> >>>pwlib_1.6.6:
> >>>          make both
> >>>openh323 1.13.5
> >>>          ./configure
> >>>          make opt
> >>>asterisk-oh323 0.6.2
> >>>          make
> >>>
> >>>I also applied the patch that is said that is needed for openh323
> >>> 1.13.5.
> >>>
> >>>And I get the following errors:
> >>>
> >>>make[1]: Leaving directory `/usr/src/asterisk-oh323-0.6.2/wrapper'
> >>>make[1]: Entering directory
> >>>`/usr/src/asterisk-oh323-0.6.2/asterisk-driver' gcc -Wall -pipe -Wall
> >>>-Wstrict-prototypes -Wmissing-prototypes
> >>>-Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -
> >>>I/usr/src/asterisk/include
> >>>-I../wrapper -g -c -o chan_oh323.o chan_oh323.c
> >>>chan_oh323.c:660:
> >>>`__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__'
> >>>undeclared here (not in a function)
> >>>chan_oh323.c:660: initializer element is not constant
> >>>chan_oh323.c:660: (near initialization for `oh323_ep_list.lock')
> >>>
> >>>I have been sucessful before in compiling all packages before. I still
> >>>have the libraries installed from the wrapper package. I decided to try
> >>>and download a newer version of openh323 and pwlib, but they did not
> >>>compile correctly either, so I went back to the versions that I listed
> >>>above, because
> >>>I knew they would compile correctly. I still have the successfully
> >>>compiled and installed modules, and before attempting to upgrade to the
> >>>newer versions
> >>>of pwlib and openh323, I ran asterisk -vvvv. This is the error I got :
> >>>
> >>>[chan_oh323.so]Jun 25 13:45:13 WARNING[1024]: loader.c:242
> >>>ast_load_resource: /usr/local/lib/liboh323wrap.so: undefined symbol:
> >>>__tf6PMutex
> >>>Jun 25 13:45:13 WARNING[1024]: loader.c:423 load_modules: Loading module
> >>>chan_oh323.so failed!
> >>>
> >>>So, I am wondering what is wrong and whether the packages I have built
> >>>are compatible. Any help on this is greatly appreciated.
> >>>
> >>>--
> >>>Brian Wilkins
> >>>brian at hcc.net
> >>>Heritage Communications Corporation
> >>>  Melbourne, FL     USA     32935
> >>>
> >>>_______________________________________________
> >>>Asterisk-Users mailing list
> >>>Asterisk-Users at lists.digium.com
> >>>http://lists.digium.com/mailman/listinfo/asterisk-users
> >>>To UNSUBSCRIBE or update options visit:
> >>>   http://lists.digium.com/mailman/listinfo/asterisk-users
> >>
> >>_______________________________________________
> >>Asterisk-Users mailing list
> >>Asterisk-Users at lists.digium.com
> >>http://lists.digium.com/mailman/listinfo/asterisk-users
> >>To UNSUBSCRIBE or update options visit:
> >>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
--
Heritage Communications Corporation
  Melbourne, FL     USA     32935
http://www.hcc.net



More information about the asterisk-users mailing list