phoenixblue
07-02-2009, 03:12 AM
hello everyone,
I'm trying to compile the upnp sdk for the arm-linux card (which uses atmel processor at91rm9200), but it doesn't work!
here is what I did and what I got as result:
Linux:/usr/local/libupnp-1.3.1# ./configure --enable-debug --host=arm-linux
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking for --enable-debug... yes
checking for --enable-client... yes
checking for --enable-device... yes
checking for --enable-webserver... yes
checking for --enable-tools... yes
checking for arm-linux-gcc... arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of arm-linux-gcc... gcc
checking whether arm-linux-gcc and cc understand -c and -o together... yes
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by arm-linux-gcc... /usr/local/arm-linux/arm-linux/bin/ld
checking if the linker (/usr/local/arm-linux/arm-linux/bin/ld) is GNU ld... yes
checking for /usr/local/arm-linux/arm-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/bin/arm-linux-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... arm-linux-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for arm-linux-g++... arm-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-linux-g++ accepts -g... yes
checking dependency style of arm-linux-g++... gcc
checking how to run the C++ preprocessor... arm-linux-g++ -E
checking for arm-linux-g77... no
checking for arm-linux-f77... no
checking for arm-linux-xlf... no
checking for arm-linux-frt... no
checking for arm-linux-pgf77... no
checking for arm-linux-fort77... no
checking for arm-linux-fl32... no
checking for arm-linux-af77... no
checking for arm-linux-f90... no
checking for arm-linux-xlf90... no
checking for arm-linux-pgf90... no
checking for arm-linux-epcf90... no
checking for arm-linux-f95... no
checking for arm-linux-fort... no
checking for arm-linux-xlf95... no
checking for arm-linux-ifc... no
checking for arm-linux-efc... no
checking for arm-linux-pgf95... no
checking for arm-linux-lf95... no
checking for arm-linux-gfortran... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/local/bin/arm-linux-nm -B output from arm-linux-gcc object... ok
checking for objdir... .libs
checking for arm-linux-ar... arm-linux-ar
checking for arm-linux-ranlib... arm-linux-ranlib
checking for arm-linux-strip... (cached) arm-linux-strip
checking if arm-linux-gcc static flag works... yes
checking if arm-linux-gcc supports -fno-rtti -fno-exceptions... yes
checking for arm-linux-gcc option to produce PIC... -fPIC
checking if arm-linux-gcc PIC flag -fPIC works... yes
checking if arm-linux-gcc supports -c -o file.o... yes
checking whether the arm-linux-gcc linker (/usr/local/arm-linux/arm-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by arm-linux-g++... /usr/local/arm-linux/arm-linux/bin/ld
checking if the linker (/usr/local/arm-linux/arm-linux/bin/ld) is GNU ld... yes
checking whether the arm-linux-g++ linker (/usr/local/arm-linux/arm-linux/bin/ld) supports shared libraries... yes
checking for arm-linux-g++ option to produce PIC... -fPIC
checking if arm-linux-g++ PIC flag -fPIC works... yes
checking if arm-linux-g++ supports -c -o file.o... yes
checking whether the arm-linux-g++ linker (/usr/local/arm-linux/arm-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking CFLAGS for maximum warnings... -Wall
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for socklen_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... arm-linux-gcc
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ixml/Makefile
config.status: creating ixml/doc/Makefile
config.status: creating threadutil/Makefile
config.status: creating upnp/Makefile
config.status: creating upnp/doc/Makefile
config.status: creating libupnp.pc
config.status: creating autoconfig.h
config.status: autoconfig.h is unchanged
config.status: creating upnp/inc/upnpconfig.h
config.status: upnp/inc/upnpconfig.h is unchanged
config.status: executing depfiles commands
Linux:/usr/local/libupnp-1.3.1# make
make all-recursive
make[1]: Entering directory `/usr/local/libupnp-1.3.1'
Making all in ixml
make[2]: Entering directory `/usr/local/libupnp-1.3.1/ixml'
Making all in doc
make[3]: Entering directory `/usr/local/libupnp-1.3.1/ixml/doc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/libupnp-1.3.1/ixml/doc'
make[3]: Entering directory `/usr/local/libupnp-1.3.1/ixml'
/bin/sh ../libtool --mode=link --tag=CC arm-linux-gcc -g -O2 -Wall -o libixml.la -rpath /usr/local/lib -version-info 2:0:0 -export-symbols-regex '^ixml.*' src/ixml.lo src/node.lo src/ixmlparser.lo src/ixmlmembuf.lo src/nodeList.lo src/element.lo src/attr.lo src/document.lo src/namedNodeMap.lo
rm -fr .libs/libixml.exp .libs/libixml.ver
generating symbol list for `libixml.la'
/usr/local/bin/arm-linux-nm -B src/.libs/ixml.o src/.libs/node.o src/.libs/ixmlparser.o src/.libs/ixmlmembuf.o src/.libs/nodeList.o src/.libs/element.o src/.libs/attr.o src/.libs/document.o src/.libs/namedNodeMap.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | /bin/sed 's/.* //' | sort | uniq > .libs/libixml.exp
grep -E -e "^ixml.*" ".libs/libixml.exp" > ".libs/libixml.expT"
mv -f ".libs/libixml.expT" ".libs/libixml.exp"
echo "{ global:" > .libs/libixml.ver
cat .libs/libixml.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libixml.ver
echo "local: *; };" >> .libs/libixml.ver
arm-linux-gcc -shared src/.libs/ixml.o src/.libs/node.o src/.libs/ixmlparser.o src/.libs/ixmlmembuf.o src/.libs/nodeList.o src/.libs/element.o src/.libs/attr.o src/.libs/document.o src/.libs/namedNodeMap.o -Wl,-soname -Wl,libixml.so.2 -Wl,-version-script -Wl,.libs/libixml.ver -o .libs/libixml.so.2.0.0
/usr/local/arm-linux/arm-linux/bin/ld:.libs/libixml.ver:1: parse error in VERSION script
collect2: ld returned 1 exit status
make[3]: *** [libixml.la] Error 1
make[3]: Leaving directory `/usr/local/libupnp-1.3.1/ixml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/libupnp-1.3.1/ixml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/libupnp-1.3.1'
make: *** [all] Error 2
Linux:/usr/local/libupnp-1.3.1#
How do I fix it?
Please help!
I'm trying to compile the upnp sdk for the arm-linux card (which uses atmel processor at91rm9200), but it doesn't work!
here is what I did and what I got as result:
Linux:/usr/local/libupnp-1.3.1# ./configure --enable-debug --host=arm-linux
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking for --enable-debug... yes
checking for --enable-client... yes
checking for --enable-device... yes
checking for --enable-webserver... yes
checking for --enable-tools... yes
checking for arm-linux-gcc... arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of arm-linux-gcc... gcc
checking whether arm-linux-gcc and cc understand -c and -o together... yes
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by arm-linux-gcc... /usr/local/arm-linux/arm-linux/bin/ld
checking if the linker (/usr/local/arm-linux/arm-linux/bin/ld) is GNU ld... yes
checking for /usr/local/arm-linux/arm-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/bin/arm-linux-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... arm-linux-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for arm-linux-g++... arm-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-linux-g++ accepts -g... yes
checking dependency style of arm-linux-g++... gcc
checking how to run the C++ preprocessor... arm-linux-g++ -E
checking for arm-linux-g77... no
checking for arm-linux-f77... no
checking for arm-linux-xlf... no
checking for arm-linux-frt... no
checking for arm-linux-pgf77... no
checking for arm-linux-fort77... no
checking for arm-linux-fl32... no
checking for arm-linux-af77... no
checking for arm-linux-f90... no
checking for arm-linux-xlf90... no
checking for arm-linux-pgf90... no
checking for arm-linux-epcf90... no
checking for arm-linux-f95... no
checking for arm-linux-fort... no
checking for arm-linux-xlf95... no
checking for arm-linux-ifc... no
checking for arm-linux-efc... no
checking for arm-linux-pgf95... no
checking for arm-linux-lf95... no
checking for arm-linux-gfortran... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/local/bin/arm-linux-nm -B output from arm-linux-gcc object... ok
checking for objdir... .libs
checking for arm-linux-ar... arm-linux-ar
checking for arm-linux-ranlib... arm-linux-ranlib
checking for arm-linux-strip... (cached) arm-linux-strip
checking if arm-linux-gcc static flag works... yes
checking if arm-linux-gcc supports -fno-rtti -fno-exceptions... yes
checking for arm-linux-gcc option to produce PIC... -fPIC
checking if arm-linux-gcc PIC flag -fPIC works... yes
checking if arm-linux-gcc supports -c -o file.o... yes
checking whether the arm-linux-gcc linker (/usr/local/arm-linux/arm-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by arm-linux-g++... /usr/local/arm-linux/arm-linux/bin/ld
checking if the linker (/usr/local/arm-linux/arm-linux/bin/ld) is GNU ld... yes
checking whether the arm-linux-g++ linker (/usr/local/arm-linux/arm-linux/bin/ld) supports shared libraries... yes
checking for arm-linux-g++ option to produce PIC... -fPIC
checking if arm-linux-g++ PIC flag -fPIC works... yes
checking if arm-linux-g++ supports -c -o file.o... yes
checking whether the arm-linux-g++ linker (/usr/local/arm-linux/arm-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking CFLAGS for maximum warnings... -Wall
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for socklen_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... arm-linux-gcc
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ixml/Makefile
config.status: creating ixml/doc/Makefile
config.status: creating threadutil/Makefile
config.status: creating upnp/Makefile
config.status: creating upnp/doc/Makefile
config.status: creating libupnp.pc
config.status: creating autoconfig.h
config.status: autoconfig.h is unchanged
config.status: creating upnp/inc/upnpconfig.h
config.status: upnp/inc/upnpconfig.h is unchanged
config.status: executing depfiles commands
Linux:/usr/local/libupnp-1.3.1# make
make all-recursive
make[1]: Entering directory `/usr/local/libupnp-1.3.1'
Making all in ixml
make[2]: Entering directory `/usr/local/libupnp-1.3.1/ixml'
Making all in doc
make[3]: Entering directory `/usr/local/libupnp-1.3.1/ixml/doc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/libupnp-1.3.1/ixml/doc'
make[3]: Entering directory `/usr/local/libupnp-1.3.1/ixml'
/bin/sh ../libtool --mode=link --tag=CC arm-linux-gcc -g -O2 -Wall -o libixml.la -rpath /usr/local/lib -version-info 2:0:0 -export-symbols-regex '^ixml.*' src/ixml.lo src/node.lo src/ixmlparser.lo src/ixmlmembuf.lo src/nodeList.lo src/element.lo src/attr.lo src/document.lo src/namedNodeMap.lo
rm -fr .libs/libixml.exp .libs/libixml.ver
generating symbol list for `libixml.la'
/usr/local/bin/arm-linux-nm -B src/.libs/ixml.o src/.libs/node.o src/.libs/ixmlparser.o src/.libs/ixmlmembuf.o src/.libs/nodeList.o src/.libs/element.o src/.libs/attr.o src/.libs/document.o src/.libs/namedNodeMap.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | /bin/sed 's/.* //' | sort | uniq > .libs/libixml.exp
grep -E -e "^ixml.*" ".libs/libixml.exp" > ".libs/libixml.expT"
mv -f ".libs/libixml.expT" ".libs/libixml.exp"
echo "{ global:" > .libs/libixml.ver
cat .libs/libixml.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libixml.ver
echo "local: *; };" >> .libs/libixml.ver
arm-linux-gcc -shared src/.libs/ixml.o src/.libs/node.o src/.libs/ixmlparser.o src/.libs/ixmlmembuf.o src/.libs/nodeList.o src/.libs/element.o src/.libs/attr.o src/.libs/document.o src/.libs/namedNodeMap.o -Wl,-soname -Wl,libixml.so.2 -Wl,-version-script -Wl,.libs/libixml.ver -o .libs/libixml.so.2.0.0
/usr/local/arm-linux/arm-linux/bin/ld:.libs/libixml.ver:1: parse error in VERSION script
collect2: ld returned 1 exit status
make[3]: *** [libixml.la] Error 1
make[3]: Leaving directory `/usr/local/libupnp-1.3.1/ixml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/libupnp-1.3.1/ixml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/libupnp-1.3.1'
make: *** [all] Error 2
Linux:/usr/local/libupnp-1.3.1#
How do I fix it?
Please help!