[Live-devel] error compiling liveMedia with gcc 3.4.2 and uclibc
Mildred Frisco
mildred.frisco at gmail.com
Wed Jul 20 22:12:18 PDT 2005
I am compiling liveMedia for arm9. I am using gcc 3.4.2 and uclibc 0.9.27.
I modified config.armlinux, changed elf to linux and gcc with g++.
Below is my config file:
----------------------------------
CROSS_COMPILE= arm-linux-
COMPILE_OPTS = $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t
-DNO_STRSTREAM=1 -D_LARGEFILE_SOURCE=1
C = c
C_COMPILER = $(CROSS_COMPILE)g++
C_FLAGS = $(COMPILE_OPTS)
CPP = cpp
CPLUSPLUS_COMPILER = $(CROSS_COMPILE)g++
CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
OBJ = o
LINK = $(CROSS_COMPILE)g++ -o
LINK_OPTS = -L.
CONSOLE_LINK_OPTS = $(LINK_OPTS)
LIBRARY_LINK = $(CROSS_COMPILE)ld -o
LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
LIB_SUFFIX = a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =
-------------------------
The error occurs at the groupsock directory, particularly with inet.c
Here's the log:
make[1]: Entering directory `/home/milds/live/groupsock'
arm-linux-g++ -c -Iinclude -I../UsageEnvironment/include -I. -O2
-DSOCKLEN_T=socklen_t -DNO_STRSTREAM=1 -D_LARGEFILE_SOURCE=1 -DEMBED
-D__cplusplus -DNO_MM -DUSE_BSD -DUSE_MISC inet.c
inet.c:17: error: `cp' was not declared in this scope
inet.c:18: error: expected `,' or `;' before "char"
inet.c:19: error: expected unqualified-id before '{' token
inet.c:19: error: expected `,' or `;' before '{' token
inet.c:24: error: `in' was not declared in this scope
inet.c:25: error: expected `,' or `;' before "struct"
inet.c:26: error: expected unqualified-id before '{' token
inet.c:26: error: expected `,' or `;' before '{' token
inet.c:87: error: `name' was not declared in this scope
inet.c:88: error: expected `,' or `;' before "char"
inet.c:89: error: expected unqualified-id before '{' token
inet.c:89: error: expected `,' or `;' before '{' token
inet.c:302: error: `seed' was not declared in this scope
inet.c:302: error: `arg_state' was not declared in this scope
inet.c:302: error: `n' was not declared in this scope
inet.c:303: error: initializer expression list treated as compound expression
inet.c:303: error: expected `,' or `;' before "unsigned"
inet.c:306: error: expected unqualified-id before '{' token
inet.c:306: error: expected `,' or `;' before '{' token
inet.c:368: error: expected `,' or `;' before "char"
inet.c:369: error: expected unqualified-id before '{' token
inet.c:369: error: expected `,' or `;' before '{' token
make[1]: *** [inet.o] Error 1
make[1]: Leaving directory `/home/milds/live/groupsock'
make: *** [groupsock/libgroupsock.a] Error 2
------
I tried to compile this with gcc 2.95.3 using libc and it was
successful. However, I need to compile this with this toolchain.
Mildred
More information about the live-devel
mailing list