gcc flag to avoid asterisk-ooh323c compilation error on x86_64 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm having trouble compiling asterisk-ooh323c on amd64
Gentoo platform with gcc:

# gcc -v
Reading specs from
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs
Configured with:
/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure
--prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include/g++-v3
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
--disable-altivec --enable-nls
--without-included-gettext --with-system-zlib
--disable-checking --disable-werror
--disable-libunwind-exceptions --enable-multilib
--disable-libgcj --enable-languages=c,c++,f77
--enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0,
pie-8.7.8)

Please take a look at the forwarded messages.

Help appreciated.

--- Avin Patel <apatel@xxxxxxxxxxx> wrote:

> From: "Avin Patel" <apatel@xxxxxxxxxxx>
> To: <ooh323c-devel@xxxxxxxxxxxxxxxxxxxxx>
> CC: "Vieri Di Paola" <vieridipaola@xxxxxxxxx>
> Subject: RE: [ooh323c-devel] asterisk-ooh323c 
> compilation error on x86_64
> Date: Tue, 11 Apr 2006 18:17:06 -0400
> 
> 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:vieridipaola@xxxxxxxxx]
> > Sent: Tuesday, April 11, 2006 3:11 AM
> > To: ooh323c-devel@xxxxxxxxxxxxxxxxxxxxx
> > 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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux