compiling pjproject using c99 standard

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

 



Hello,

I need to compile pjproject using the c99 standard. To do so, I set the
configuration to: ./configure CFLAGS="-std=c99"

Starting make, I can see the whole gcc command: gcc -c -Wall -DPJ_AUTOCONF=1
-std=c99 -I .....
"make dep" finishes without an error but "make" brings the following error:

gcc -c -Wall -DPJ_AUTOCONF=1 -std=c99    -I../include \
-ooutput/pjlib-x86_64-unknown-linux-gnu/addr_resolv_sock.o \
../src/pj/addr_resolv_sock.c
In file included from ../src/pj/addr_resolv_sock.c:22:
../include/pj/string.h: In function ?pj_bzero?:
../include/pj/string.h:602: warning: implicit declaration of function
?bzero?
../src/pj/addr_resolv_sock.c: In function ?pj_getaddrinfo?:
../src/pj/addr_resolv_sock.c:65: error: storage size of ?hint? isn?t known
../src/pj/addr_resolv_sock.c:112: warning: implicit declaration of function
?getaddrinfo?
../src/pj/addr_resolv_sock.c:119: error: dereferencing pointer to incomplete
type
../src/pj/addr_resolv_sock.c:121: error: dereferencing pointer to incomplete
type
../src/pj/addr_resolv_sock.c:125: error: dereferencing pointer to incomplete
type
../src/pj/addr_resolv_sock.c:126: error: dereferencing pointer to incomplete
type
../src/pj/addr_resolv_sock.c:134: error: dereferencing pointer to incomplete
type
../src/pj/addr_resolv_sock.c:134: error: dereferencing pointer to incomplete
type
../src/pj/addr_resolv_sock.c:135: error: dereferencing pointer to incomplete
type
../src/pj/addr_resolv_sock.c:135: error: dereferencing pointer to incomplete
type
../src/pj/addr_resolv_sock.c:144: warning: implicit declaration of function
?freeaddrinfo?
../src/pj/addr_resolv_sock.c:65: warning: unused variable ?hint?
make[2]: *** [output/pjlib-x86_64-unknown-linux-gnu/addr_resolv_sock.o]
Fehler 1
make[2]: Verlasse Verzeichnis '/home/matthias/pjproject-1.8.10/pjlib/build'
make[1]: *** [pjlib] Fehler 2
make[1]: Verlasse Verzeichnis '/home/matthias/pjproject-1.8.10/pjlib/build'
make: *** [all] Fehler 1


I thought c99 standard is fully compatible to old c89!? Does anybody has an
idea?

Thanks !
Regards
Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110325/0e246a3b/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux