[Top][All Lists]

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

Re: [Linphone-users] linphone-2.1.1 build completely broken on freebsd 7

From: alex
Subject: Re: [Linphone-users] linphone-2.1.1 build completely broken on freebsd 7
Date: Wed, 23 Apr 2008 11:15:14 +1000
User-agent: Thunderbird (X11/20080212)

Hi Simon,

Thanks for the reply. Sorry if my attitude seemed a bit poor in my previous emails. I was frustrated at the time. I am happy to test future releases on FreeBSD and report problems if they arise.

I'll look into the obsolete header files and see how it all goes.

Thanks again.

Simon Morlat wrote:

This oRTP error would mean that the compiler is using an old version of payloadtype.h, probably installed in /usr/include/ortp or /usr/local/include/ortp
I'll fix the alloca.h and __FreeBSD__ problem in the cvs.
You are right, the *BSD port are quite untested. I cannot afford alone to check the build on every unix variant of the world. Various patches to get things working on BSDs have been sent to me past years. I've merged them and kept them, but as the code evolves and **BSDs evolve, it is not guaranteed that it works everytime. Anyway thank you for reporting thoses problems. Thanks to you the next version should compile better.


Le Tuesday 01 April 2008 16:49:51 alex, vous avez écrit :

I keep running into this error:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../mediastreamer2/include
-I/usr/local/include -Wp,-D_FORTIFY_SOURCE=2 -Werror -DOSIP_MT
-I/usr/local/include -DOSIP_MT -I/usr/local/include -DOSIP_MT
-I../oRTP/include -DENABLE_TRACE -DLOG_DOMAIN=\"LinphoneCore\"
-DORTP_INET6 -g -O2 -fno-strict-aliasing -MT misc.lo -MD -MP -MF
.deps/misc.Tpo -c misc.c  -fPIC -DPIC -o .libs/misc.o
misc.c: In function 'fix_codec_list':
misc.c:244: error: too many arguments to function
'rtp_profile_find_payload' gmake: *** [misc.lo] Error 1

This error makes no sense to me, in misc.c 4 parameters are being
supplied to rtp_profile_find_payload() which is what the function is

in misc.c:244


from ortp/payload.c

int rtp_profile_find_payload_number(RtpProfile*profile,const char
*mime,int rate,int channels)

and its prototype in payload.h

int rtp_profile_find_payload_number(RtpProfile *prof,const char
*mime,int rate, int channels);

I've had to also edit mediastreamer2/oss.c because that wouldn't build.
It appears there is no alloca.h on FreeBSD 7 (don't know about earlier
versions), but the alloc() functions exist in stdlib.h

address@hidden /usr/home/alex/linphone-2.1.1/mediastreamer2/src]# man alloca
ALLOCA(3)              FreeBSD Library Functions Manual

     alloca -- memory allocator

     Standard C Library (libc, -lc)

     #include <stdlib.h>

By the amount of hackery I've had to use, can I assume this code is
HUGELY untested on FreeBSD?

Yet another problem I encountered during the build:

gmake[2]: Entering directory `/usr/home/alex/linphone-2.1.1/coreapi'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I.. -I.. -I../mediastreamer2/include  -I/usr/local/include
-Wp,-D_FORTIFY_SOURCE=2 -Werror -DOSIP_MT -I/usr/local/include
-DOSIP_MT -I/usr/local/include   -DOSIP_MT  -I../oRTP/include
-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
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../mediastreamer2/include
-I/usr/local/include -Wp,-D_FORTIFY_SOURCE=2 -Werror -DOSIP_MT
-I/usr/local/include -DOSIP_MT -I/usr/local/include -DOSIP_MT
-I../oRTP/include -DENABLE_TRACE -DLOG_DOMAIN=\"LinphoneCore\"
-DORTP_INET6 -g -O2 -fno-strict-aliasing -MT linphonecore.lo -MD -MP -MF
.deps/linphonecore.Tpo -c linphonecore.c  -fPIC -DPIC -o
In file included from /usr/local/include/osipparser2/osip_port.h:93,
                 from /usr/local/include/osipparser2/osip_headers.h:25,
                 from /usr/local/include/osipparser2/osip_message.h:25,
                 from linphonecore.h:23,
                 from linphonecore.c:20:
../config.h:155:1: error: "__FreeBSD__" redefined
<built-in>: error: this is the location of the previous definition
gmake[2]: *** [linphonecore.lo] Error 1
gmake[2]: Leaving directory `/usr/home/alex/linphone-2.1.1/coreapi'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/alex/linphone-2.1.1'
gmake: *** [all] Error

Funnily enough commenting out the line in config.h allowed the build to
go further until I hit the issue up at the top of this email with misc.c

Whats going on?!?!?!?!?

address@hidden /usr/home/alex/linphone-2.1.1]# uname -a
FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Sat Mar 15
03:00:16 EST 2008     address@hidden:/usr/obj/usr/src/sys/custom  i386
address@hidden /usr/home/alex/linphone-2.1.1]# gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]

Linphone-users mailing list

reply via email to

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