View Single Post
Posts: 7 | Thanked: 3 times | Joined on Apr 2013
#1136
I can't compile this:
Code:
FREMANTLE=1 DEBUG=0 CC=gcc make
I've added "-Llibs" to LDFLAGS.
Output:
Code:
Using built-in specs.
COLLECT_GCC=gcc
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.1-maemo6' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.6.1 (Debian 4.6.1-maemo6) 
COMPILER_PATH=/usr/lib/gcc/arm-linux-gnueabi/4.6.1/:/usr/lib/gcc/arm-linux-gnueabi/4.6.1/:/usr/lib/gcc/arm-linux-gnueabi/:/usr/lib/gcc/arm-linux-gnueabi/4.6.1/:/usr/lib/gcc/arm-linux-gnueabi/
LIBRARY_PATH=/usr/lib/gcc/arm-linux-gnueabi/4.6.1/:/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../://lib/://usr/lib/
COLLECT_GCC_OPTIONS='-Wl' '-v' '-fPIC' '-Llibs' '-pthread' '-o' 'apkenv'
 ld --sysroot=/ --build-id --no-add-needed --as-needed --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.3 -X --hash-style=both -m armelf_linux_eabi -o apkenv //usr/lib/crt1.o //usr/lib/crti.o /usr/lib/gcc/arm-linux-gnueabi/4.6.1/crtbegin.o -Llibs -L/usr/lib/gcc/arm-linux-gnueabi/4.6.1 -L/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../.. -L//lib -L//usr/lib -ldl -lz -lSDL -lSDL_mixer -lpng -ljpeg -lGLES_CM -lGLESv2 -lEGL -lSDL_gles apkenv.o linker/dlfcn.o linker/linker.o linker/linker_environ.o linker/rt.o linker/strlcpy.o compat/egl_wrappers.o compat/gles2_wrappers.o compat/gles_wrappers.o compat/hooks.o compat/libc_wrappers.o compat/liblog_wrappers.o compat/pthread_wrappers.o apklib/apklib.o apklib/ioapi.o apklib/ioapi_mem.o apklib/unzip.o jni/jnienv.o jni/shlib.o imagelib/loadjpeg.o imagelib/loadpng.o debug/debug.o n9xx/platform.o -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-gnueabi/4.6.1/crtend.o //usr/lib/crtn.o
libs/libc.so: warning: the use of `pthread_attr_setstackaddr' is deprecated, use `pthread_attr_setstack'
libs/libc.so: warning: the use of `pthread_attr_getstackaddr' is deprecated, use `pthread_attr_getstack'
ld: compat/libc_wrappers.o: undefined reference to symbol '_IO_putc@@GLIBC_2.4'
ld: note: '_IO_putc@@GLIBC_2.4' is defined in DSO /lib/libc.so.6 so try adding it to the linker command line
/lib/libc.so.6: could not read symbols: Invalid operation
make: *** [apkenv] Error 1