[Asterisk-Users] Compiling Asterisk with gcc 3.4

Karl Rannseier mlsammel at gmx.de
Sun May 30 07:00:38 MST 2004


>> But I have to compile the Kernel with GCC 3.4.

>Why do you "have to" use 3.4? Even if you use 3.4 for the kernel,
you can use a different version for your applications.

I´m currently using both Versions. Gcc 3.3.2 can´t compile the
kernel 2.6.x in some situations (known bug). 
For the asterisk-modules (zaptel/zaphfc) I have to use 3.4.0
because otherwise I can´t load the modules.

>> Trying to compile Asterisk with gcc 3.4 will result in a 
>> compiler-crash.

>Qualify this, is there error messages about the code or does the
compiler itself segfault. If the compiler fails, you need to make
sure your machine >>>
isn't the problem. Then you need to contact the gcc people to see
why the software blew up, especially since it is a "stable"
release. 


This message occurs (compiling with GCC 3.3.2 works fine, Asterisk
CVS from bristuff.0.0.2) usering "make":

gcc -shared -Xlinker -x -o chan_modem_aopen.so chan_modem_aopen.o
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -g  -Iinclude -I../include  -D_REENTRANT
-D_GNU_SOURCE  -O6 -march=i586  -DZAPTEL_OPTIMIZATIONS
-DASTERISK_VERSION=\"CVS-05/24/04-23:12:15\" -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
-DNEW_PRI_HANGUP  -Wno-missing-prototypes
-Wno-missing-declarations   -DZAPATA_PRI   -DIAX_TRUNKING
-DCRYPTO -fPIC    -c -o chan_modem_bestdata.o
chan_modem_bestdata.c
chan_modem_bestdata.c: In function `bestdata_read':
chan_modem_bestdata.c:373: warning: assignment discards qualifiers
from pointer target type
chan_modem_bestdata.c: In function `bestdata_startrec':
chan_modem_bestdata.c:62: internal compiler error: in
gen_subprogram_die, at dwarf2out.c:10736
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.
make[1]: *** [chan_modem_bestdata.o] Fehler 1
make[1]: Leaving directory
`/usr/src/bri-stuff.0.0.2/asterisk/channels'
make: *** [subdirs] Fehler 1
[root at linux3 asterisk]#


Yours,
Karl




More information about the asterisk-users mailing list