[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-users] linphone-2.1.1 build completely broken on freebsd 7
From: |
alex |
Subject: |
[Linphone-users] linphone-2.1.1 build completely broken on freebsd 7 |
Date: |
Wed, 02 Apr 2008 01:49:51 +1100 |
User-agent: |
Thunderbird 2.0.0.9 (X11/20080212) |
Hi,
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
expecting.
in misc.c:244
payload=rtp_profile_find_payload(prof,confpayload->mime_type,confpayload->clock_rate,-1);
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(3)
NAME
alloca -- memory allocator
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#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
-DENABLE_TRACE -DLOG_DOMAIN=\"LinphoneCore\" -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
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
.libs/linphonecore.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 ns.xor.net 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] linphone-2.1.1 build completely broken on freebsd 7,
alex <=