I am trying to cross compile to an ARM based processor.
I am using poco-1.3.2-ssl package.
I first cross compiled the Openssl library, zLib and bzLib Libraries. [all compiled successfully]
Then I edited the "GCCEMBEDEDLINUX config file, and set the tool:
''TOOL = /opt/pxa310/arm-iwmmxt-linux-gnueabi/bin/arm-linux''
And saved it as PXA310LINUX config file.
Then I edited the "Makefile" in the root directory:
Change the line: ''export POCO_PREFIX=/usr/local'' to: ''export POCO_PREFIX=/opt/pxa310/arm-iwmmxt-linux-gnueabi''
Change the line: SYSFLAGS = -I$(STLPORT_INCLUDE) -I$(OPENSSL_INCLUDE) -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_REENTRANT -D_THREAD_SAFE -DPOCO_NO_FPENVIRONMENT
To:
SYSFLAGS = -I$(STLPORT_INCLUDE) -I$(OPENSSL_INCLUDE) -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_REENTRANT -D_THREAD_SAFE -DPOCO_NO_FPENVIRONMENT -I/opt/pxa310/arm-iwmmxt-linux-gnueabi/include
as /opt/pxa310/arm-iwmmxt-linux-gnueabi/include is the header location for all the ARM cross compiled libraries such as OpenSSL
Then I run the make like this:
''cd ~/Libraries/Arm-Linux-Libraries/boost_1_36_0/
export POCO_BASE=~/Libraries/ARM-Linux-Libs/poco-1.3.2-ssl
export POCO_CONFIG=PXA310LINUX
sudo chown -R iharrold /opt/pxa310
make
sudo chown -R root /opt/pxa310''
Except, the make fales with:
---
/home/iharrold/Libraries/ARM-Linux-Libs/poco-1.3.2-ssl/lib/Linux/ARM/libPocoFoundationd.a(Path.o): In function `Poco::PathImpl::homeImpl()':
src/Path_UNIX.cpp:73: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/iharrold/Libraries/ARM-Linux-Libs/poco-1.3.2-ssl/lib/Linux/ARM/libPocoFoundationd.a(SharedMemory.o): In function `Poco::SharedMemoryImpl::close()':
src/SharedMemory_POSIX.cpp:151: undefined reference to `shm_unlink'
/home/iharrold/Libraries/ARM-Linux-Libs/poco-1.3.2-ssl/lib/Linux/ARM/libPocoFoundationd.a(SharedMemory.o): In function `SharedMemoryImpl':
src/SharedMemory_POSIX.cpp:72: undefined reference to `shm_open'
src/SharedMemory_POSIX.cpp:81: undefined reference to `shm_unlink'
src/SharedMemory_POSIX.cpp:72: undefined reference to `shm_open'
src/SharedMemory_POSIX.cpp:81: undefined reference to `shm_unlink'
collect2: ld returned 1 exit status
make[2]: ***
[/home/iharrold/Libraries/ARM-Linux-Libs/poco-1.3.2-ssl/Foundation/testsuite/bin/Linux/ARM/testrunnerd_s] Error 1
make[2]: Leaving directory `/home/iharrold/Libraries/ARM-Linux-Libs/poco-1.3.2-ssl/Foundation/testsuite'
make[1]: *** [projects] Error 2
make[1]: Leaving directory `/home/iharrold/Libraries/ARM-Linux-Libs/poco-1.3.2-ssl/Foundation/testsuite'
make: *** [Foundation-tests] Error 2
---
What am I missing here?





