[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 12:53:16 +1000
User-agent: Thunderbird (X11/20080212)

Sorry for the flood of messages, but i discovered the cause of the ortp header file issue. It appears that if install ortp 0.13.1 from your site, I get the issue. If i remove the installation of ortp, the build continues. From this I can gather that the payloadtype.h included with ortp and the one included in the source are not the same?

I am now stuck with:

gcc -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror -DENABLE_TRACE -D_ORTP_SOURCE -DOSIP_MT -I/usr/local/include -g -O2 -fno-strict-aliasing -pthread -o .libs/linphonec linphonec.o commands.o ../coreapi/.libs/ -L/usr/local/lib /usr/local/lib/ -lssl /home/alex/linphone-2.1.1/mediastreamer2/src/.libs/ /home/alex/linphone-2.1.1/oRTP/src/.libs/ /usr/local/lib/ -lm -lpthread -lrt -lreadline -lncurses /usr/local/lib/ /usr/local/lib/ -Wl,--rpath -Wl,/usr/local/lib
linphonec.o(.text+0x906): In function `main':
/home/alex/linphone-2.1.1/console/linphonec.c:380: undefined reference to `libintl_bindtextdomain' linphonec.o(.text+0x922):/home/alex/linphone-2.1.1/console/linphonec.c:383: undefined reference to `libintl_bind_textdomain_codeset' linphonec.o(.text+0x92e):/home/alex/linphone-2.1.1/console/linphonec.c:385: undefined reference to `libintl_textdomain' ../coreapi/.libs/ undefined reference to `ms_alsa_card_new_custom'
../coreapi/.libs/ undefined reference to `libintl_gettext'
gmake[2]: *** [linphonec] Error 1

Which seems to be a linker issue. Perhaps its linking against the wrong library or I am missing a library or I have an old library thats missing some functionality. I'll have to look into this.

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]