linphone-users
[Top][All Lists]
Advanced

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

[Linphone-users] linphonecore.c throws compile error : call to function


From: Bent
Subject: [Linphone-users] linphonecore.c throws compile error : call to function ‘set_user_agent’ wi thout a real prototype
Date: Mon, 8 Jun 2009 19:29:19 +0200

Hi list

After having overcome the problems I reported in thread "cannot find
-lavcodec" I run into this:

=======================
...
Making all in coreapi
make[2]: Entering directory `/usr/local/src/linphone-3.1.2/coreapi'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I.. -I.. -I../mediastreamer2/include   -Wall
-Wp,-D_FORTIFY_SOURCE=2 -Werror  -DIN_LINPHONE -DOSIP_MT
-DHAVE_PTHREAD -DHAVE_SYS_SEM_H   -DOSIP_MT -DHAVE_PTHREAD
-DHAVE_SYS_SEM_H   -DOSIP_MT  -I../oRTP/include -DENABLE_TRACE
-DLOG_DOMAIN=\"LinphoneCore\" -DINET6 -DORTP_INET6  -g -O2
-fno-strict-aliasing -MT linphonecore.lo -MD -MP -MF
".deps/linphonecore.Tpo" -c -o linphonecore.lo linphonecore.c; \
        then mv -f ".deps/linphonecore.Tpo" ".deps/linphonecore.Plo";
else rm -f ".deps/linphonecore.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I../mediastreamer2/include -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror
-DIN_LINPHONE -DOSIP_MT -DHAVE_PTHREAD -DHAVE_SYS_SEM_H -DOSIP_MT
-DHAVE_PTHREAD -DHAVE_SYS_SEM_H -DOSIP_MT -I../oRTP/include
-DENABLE_TRACE -DLOG_DOMAIN=\"LinphoneCore\" -DINET6 -DORTP_INET6 -g
-O2 -fno-strict-aliasing -MT linphonecore.lo -MD -MP -MF
.deps/linphonecore.Tpo -c linphonecore.c  -fPIC -DPIC -o
.libs/linphonecore.o
cc1: warnings being treated as errors
linphonecore.c: In function ‘linphone_core_set_sip_port’:
linphonecore.c:969: error: call to function ‘set_user_agent’ without a
real prototype
linphonecore.c:922: note: ‘set_user_agent’ was declared here
make[2]: *** [linphonecore.lo] Error 1
make[2]: Leaving directory `/usr/local/src/linphone-3.1.2/coreapi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/linphone-3.1.2'
make: *** [all] Error 2
=====================

How come warnings are suddenly treated as errors?

Am I the only one to run into these kinds of errors?

What can I do to get around (or over) this error?

Kind regards,

Bent




reply via email to

[Prev in Thread] Current Thread [Next in Thread]