Discussion:
[OpenWrt-Devel] [PATCH] upgrade baresip, restund, libre, librem to version 0.4.0
Alfred E. Heggestad
2012-01-14 14:05:12 UTC
Permalink
Hi,


this patch upgrades the following packages to v0.4.0:

baresip v0.4.0 (Portable and modular SIP User-Agent with audio and video support)
restund v0.4.0 (Modular STUN/TURN server)
libre v0.4.0 (Generic library for real-time communications with async IO support)
librem v0.4.0 (Audio and video processing media library)

detailed changes can be found in <package>/docs/ChangeLog
(See http://www.creytiv.com/)


Please review and apply if OK.


Signed-Off-By: Alfred E. Heggestad <***@db.org>
---
Jo-Philipp Wich
2012-01-19 02:12:04 UTC
Permalink
Hi,

libre fails to build here, seems to lack an include of stdint.h in
re_types.h :

- -- >8 --

make -C
/home/jow/devel/openwrt/trunk/build_dir/target-mips-linux-gnu/re-0.4.0
HAVE_LIBRESOLV= CC="mips-linux-gnu-gcc" EXTRA_CFLAGS="-Os -pipe -mips32
- -mtune=mips32 -fno-caller-saves -msoft-float -fpic -DOPENWRT"
EXTRA_LFLAGS="-lm" DES
TDIR="/home/jow/devel/openwrt/trunk/build_dir/target-mips-linux-gnu/re-0.4.0/ipkg-install"
SYSROOT="/home/jow/devel/openwrt/trunk/staging_dir/toolchain-mips-linux-gnu"
SYSROOT_ALT="/home/jow/devel/openwrt/trunk/staging_dir/target-mips-
linux-gnu/usr" RELEASE=1 CROSS_COMPILE="mips-linux-gnu-" OS=linux all
install
make[3]: Entering directory
`/home/jow/devel/openwrt/trunk/build_dir/target-mips-linux-gnu/re-0.4.0'
CC build-mips/sip/addr.o
In file included from src/sip/addr.c:7:0:
include/re_types.h:57:18: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'socklen_t'
In file included from src/sip/addr.c:8:0:
include/re_fmt.h:31:10: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'pl_u32'
include/re_fmt.h:32:10: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'pl_x32'
include/re_fmt.h:33:10: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'pl_u64'
include/re_fmt.h:34:10: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'pl_x64'
include/re_fmt.h:101:9: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'ch_hex'
include/re_fmt.h:105:22: error: expected ')' before '*' token
include/re_fmt.h:114:49: warning: type defaults to 'int' in declaration
of 'uint32_t'
include/re_fmt.h:114:58: error: expected ';', ',' or ')' before '*' token
...

- -- 8< --

~ Jow
Jo-Philipp Wich
2012-01-19 02:18:03 UTC
Permalink
Post by Jo-Philipp Wich
libre fails to build here, seems to lack an include of stdint.h in
re_types.h
Adding stdint.h indeed solves it nicely.

- --- a/include/re_types.h
+++ b/include/re_types.h
@@ -5,6 +5,7 @@
*/

#include <sys/types.h>
+#include <stdint.h>

#ifdef _MSC_VER
#include <stdlib.h>


How to proceed with this? Local OpenWrt patch and keep libre vanilla?

~ Jow
Jo-Philipp Wich
2012-01-19 02:45:51 UTC
Permalink
Hi,

so I added the stdint.h patch for now. After that the build fails on
linking baresip:

- -- 8< --
LD baresip
build-mips/src/play.o: In function `play_alloc':
/home/jow/devel/openwrt/trunk/build_dir/target-mips-linux-gnu/baresip-0.4.0/src/play.c:146:
undefined reference to `lock_alloc'
build-mips/src/play.o: In function `tmr_polling':
/home/jow/devel/openwrt/trunk/build_dir/target-mips-linux-gnu/baresip-0.4.0/src/play.c:65:
undefined reference to `lock_write_get'
/home/jow/devel/openwrt/trunk/build_dir/target-mips-linux-gnu/baresip-0.4.0/src/play.c:79:
undefined reference to `lock_rel'
build-mips/src/play.o: In function `tmr_repeat':
/home/jow/devel/openwrt/trunk/build_dir/target-mips-linux-gnu/baresip-0.4.0/src/play.c:50:
undefined reference to `lock_write_get'
/home/jow/devel/openwrt/trunk/build_dir/target-mips-linux-gnu/baresip-0.4.0/src/play.c:57:
undefined reference to `lock_rel'
...
- -- >8 ---

Which library or object is supposed to provide those symbols?
And is there any way to disable the fancy output? I want to see the
compiler command lines.

Regards,
Jow
Jo-Philipp Wich
2012-01-19 13:24:25 UTC
Permalink
Hi again,

it is all solved now.

Ultimatively the problem boiled down to a bad SYSROOT value which makes
things go wrong in various ways.

~ Jow

Loading...