Hi Vieri,
This looks like problem with newer version of gcc compiler. I have tried to
cross compile with gcc 3.4.4 from crosstool, which worked ok. I was not able
to create the library, as I was not able to cross compile the asterisk
source.

If you have newer version of gcc, usually returns this error for function
returning "string" value. Please gcc mailing list for possible
fix/compilation option can be added.

Regards,
Avin Patel
Objective Systems, Inc.



> -----Original Message-----
> From: Vieri Di Paola [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 11, 2006 3:11 AM
> To: ooh323c-devel@lists.sourceforge.net
> Subject: [ooh323c-devel] asterisk-ooh323c compilation error on x86_64
>
>
> Compilation error on x86_64:
>
> /usr/src/asterisk-addons/asterisk-ooh323c # make
> make  all-am
> make[1]: Entering directory
> `/usr/src/asterisk-addons/asterisk-ooh323c'
> source='src/chan_h323.c' object='chan_h323.lo'
> libtool=yes \
> depfile='.deps/chan_h323.Plo'
> tmpdepfile='.deps/chan_h323.TPlo' \
> depmode=gcc3 /bin/sh ./config/depcomp \
> /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I. -I. -I./ooh323c/src -I./ooh323c/src/h323
> -DGNU -D_GNU_SOURCE -D_REENTRANT -D_COMPACT -c -o
> chan_h323.lo `test -f 'src/chan_h323.c' || echo
> './'`src/chan_h323.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I./ooh323c/src
> -I./ooh323c/src/h323 -DGNU -D_GNU_SOURCE -D_REENTRANT
> -D_COMPACT -c src/chan_h323.c -MT chan_h323.lo -MD -MP
> -MF .deps/chan_h323.TPlo  -fPIC -DPIC -o
> .libs/chan_h323.lo
> src/chan_h323.c: In function `ooh323_new':
> src/chan_h323.c:253: warning: passing arg 1 of
> `snprintf' discards qualifiers from pointer target
> type
> src/chan_h323.c:260: error: structure has no member
> named `type'
> src/chan_h323.c:324: warning: passing arg 1 of
> `strncpy' discards qualifiers from pointer target type
> src/chan_h323.c:325: error: assignment of read-only
> location
> src/chan_h323.c: In function `ooh323_call':
> src/chan_h323.c:722: warning: assignment discards
> qualifiers from pointer target type
> src/chan_h323.c:727: warning: assignment discards
> qualifiers from pointer target type
> src/chan_h323.c:734: warning: assignment discards
> qualifiers from pointer target type
> src/chan_h323.c:738: warning: assignment discards
> qualifiers from pointer target type
> make[1]: *** [chan_h323.lo] Error 1
> make[1]: Leaving directory
> `/usr/src/asterisk-addons/asterisk-ooh323c'
> make: *** [all] Error 2
>
> /usr/src/asterisk-addons/asterisk-ooh323c # svn info
> Path: .
> URL:
> http://svn.digium.com/svn/asterisk-addons/trunk/asterisk-ooh323c
> Repository UUID: bbbafe65-6c06-0410-a0a5-c710d232821c
> Revision: 204
> Node Kind: directory
> Schedule: normal
> Last Changed Author: objsys
> Last Changed Rev: 200
> Last Changed Date: 2006-02-22 22:46:45 +0100 (Wed, 22
> Feb 2006)
>
> Any suggestions?
>
> Regards
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking
> scripting language
> that extends applications into web and mobile media. Attend the
> live webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> ooh323c-devel mailing list
> ooh323c-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ooh323c-devel
>
>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
ooh323c-devel mailing list
ooh323c-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ooh323c-devel

Reply via email to