Libupnp for iOS - Armv7, Arm64 - ios

I have problem to commpile libupnp for iOS.
Commpilation for i386 and x86_64 works very good.
configre can not be passed for armv7, arm64. inttypes.h is missing for iPhoneOS.
Can anybody help me out ?
Configure LOG:
./build-libupnp.sh
Using libupnp-1.6.6.tar.bz2
Building ibupnp for iPhoneOS 8.4 armv7s
Please stand by...
patching file upnp/src/genlib/net/http/httpreadwrite.c
patching file upnp/src/api/upnpapi.c
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... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for armv7-apple-darwin-strip... no
checking for strip... strip
checking build system type... i386-apple-darwin15.0.0
checking host system type... armv7-apple-darwin
checking for --enable-debug... no
checking for --enable-client... yes
checking for --enable-device... yes
checking for --enable-webserver... yes
checking for --enable-tools... no
checking for --enable-samples... no
checking for documentation directory... ${datarootdir}/doc/libupnp-1.6.6
checking for armv7-apple-darwin-gcc... /Applications/Xcode.app/Contents/Developer/usr/bin/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 /Applications/Xcode.app/Contents/Developer/usr/bin/gcc accepts -g... yes
checking for /Applications/Xcode.app/Contents/Developer/usr/bin/gcc option to accept ISO C89... unsupported
checking for style of include used by make... GNU
checking dependency style of /Applications/Xcode.app/Contents/Developer/usr/bin/gcc... gcc3
checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by /Applications/Xcode.app/Contents/Developer/usr/bin/gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking dlfcn.h usability... no
checking dlfcn.h presence... yes
configure: WARNING: dlfcn.h: present but cannot be compiled
configure: WARNING: dlfcn.h: check for missing prerequisite headers?
configure: WARNING: dlfcn.h: see the Autoconf documentation
configure: WARNING: dlfcn.h: section "Present But Cannot Be Compiled"
configure: WARNING: dlfcn.h: proceeding with the preprocessor's result
configure: WARNING: dlfcn.h: in the future, the compiler will take precedence
configure: WARNING: ## --------------------------------------------- ##
configure: WARNING: ## Report this to mroberto#users.sourceforge.net ##
configure: WARNING: ## --------------------------------------------- ##
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/g++ accepts -g... yes
checking dependency style of /Applications/Xcode.app/Contents/Developer/usr/bin/g++... gcc3
checking how to run the C++ preprocessor... /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -E
checking for armv7-apple-darwin-g77... no
checking for armv7-apple-darwin-f77... no
checking for armv7-apple-darwin-xlf... no
checking for armv7-apple-darwin-frt... no
checking for armv7-apple-darwin-pgf77... no
checking for armv7-apple-darwin-cf77... no
checking for armv7-apple-darwin-fort77... no
checking for armv7-apple-darwin-fl32... no
checking for armv7-apple-darwin-af77... no
checking for armv7-apple-darwin-f90... no
checking for armv7-apple-darwin-xlf90... no
checking for armv7-apple-darwin-pgf90... no
checking for armv7-apple-darwin-pghpf... no
checking for armv7-apple-darwin-epcf90... no
checking for armv7-apple-darwin-gfortran... no
checking for armv7-apple-darwin-g95... no
checking for armv7-apple-darwin-f95... no
checking for armv7-apple-darwin-fort... no
checking for armv7-apple-darwin-xlf95... no
checking for armv7-apple-darwin-ifort... no
checking for armv7-apple-darwin-ifc... no
checking for armv7-apple-darwin-efc... no
checking for armv7-apple-darwin-pgf95... no
checking for armv7-apple-darwin-lf95... no
checking for armv7-apple-darwin-ftn... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for cf77... 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 pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... 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... 196608
checking command to parse /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm output from /Applications/Xcode.app/Contents/Developer/usr/bin/gcc object... ok
checking for objdir... .libs
checking for armv7-apple-darwin-ar... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar
checking for armv7-apple-darwin-ranlib... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib
checking for armv7-apple-darwin-strip... strip
checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc supports -fno-rtti -fno-exceptions... yes
checking for /Applications/Xcode.app/Contents/Developer/usr/bin/gcc option to produce PIC... -fno-common
checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc PIC flag -fno-common works... yes
checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc static flag -static works... no
checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc supports -c -o file.o... yes
checking whether the /Applications/Xcode.app/Contents/Developer/usr/bin/gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin dyld
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... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by /Applications/Xcode.app/Contents/Developer/usr/bin/g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the /Applications/Xcode.app/Contents/Developer/usr/bin/g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for /Applications/Xcode.app/Contents/Developer/usr/bin/g++ option to produce PIC... -fno-common
checking if /Applications/Xcode.app/Contents/Developer/usr/bin/g++ PIC flag -fno-common works... yes
checking if /Applications/Xcode.app/Contents/Developer/usr/bin/g++ static flag -static works... no
checking if /Applications/Xcode.app/Contents/Developer/usr/bin/g++ supports -c -o file.o... yes
checking whether the /Applications/Xcode.app/Contents/Developer/usr/bin/g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for egrep... (cached) /usr/bin/grep -E
--------------------- Default compilation flags -------------------------------
host is armv7-apple-darwin
host_os is darwin
Using non-specific system compiler settings
checking CFLAGS for gcc -Os... -Os
checking CFLAGS for maximum warnings... -Wall
-------------------------------------------------------------------------------
checking for size_t... no
checking for off_t... no
checking for ANSI C header files... (cached) no
checking arpa/inet.h usability... no
checking arpa/inet.h presence... yes
configure: WARNING: arpa/inet.h: present but cannot be compiled
configure: WARNING: arpa/inet.h: check for missing prerequisite headers?
configure: WARNING: arpa/inet.h: see the Autoconf documentation
configure: WARNING: arpa/inet.h: section "Present But Cannot Be Compiled"
configure: WARNING: arpa/inet.h: proceeding with the preprocessor's result
configure: WARNING: arpa/inet.h: in the future, the compiler will take precedence
configure: WARNING: ## --------------------------------------------- ##
configure: WARNING: ## Report this to mroberto#users.sourceforge.net ##
configure: WARNING: ## --------------------------------------------- ##
checking for arpa/inet.h... yes
checking fcntl.h usability... no
checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h: section "Present But Cannot Be Compiled"
configure: WARNING: fcntl.h: proceeding with the preprocessor's result
configure: WARNING: fcntl.h: in the future, the compiler will take precedence
configure: WARNING: ## --------------------------------------------- ##
configure: WARNING: ## Report this to mroberto#users.sourceforge.net ##
configure: WARNING: ## --------------------------------------------- ##
checking for fcntl.h... yes
checking for inttypes.h... (cached) no
configure: error: required header file missing
Here is my script for building.
#!/bin/bash
# Automatic build script for libupnp
# for iPhoneOS and iPhoneSimulator
#
###########################################################################
# Change values here
#libupnp
VERSION="1.6.19"
###########################################################################
#
# Don't change anything here
SDKVERSION=`xcrun -sdk iphoneos --show-sdk-version`
CURRENTPATH=`pwd`
ARCHS="x86_64 i386 armv7s arm64"
DEVELOPER=`xcode-select -print-path`
##########
set -e
if [ ! -e libupnp-${VERSION}.tar.bz2 ]; then
echo "Downloading libupnp-${VERSION}.tar.bz2"
curl -O http://pkgs.fedoraproject.org/repo/pkgs/libupnp/libupnp-1.6.6.tar.bz2/8918dcf7428cd119d0c8275765ff2833/libupnp-${VERSION}.tar.bz2
else
echo "Using libupnp-${VERSION}.tar.bz2"
fi
mkdir -p bin
mkdir -p lib
mkdir -p src
for ARCH in ${ARCHS}
do
if [[ "${ARCH}" == "i386" || "${ARCH}" == "x86_64" ]];
then
PLATFORM="iPhoneSimulator"
else
PLATFORM="iPhoneOS"
fi
echo "Building libupnp for ${PLATFORM} ${SDKVERSION} ${ARCH}"
echo "Please stand by..."
rm -rf src/libupnp-${VERSION}
tar zxf libupnp-${VERSION}.tar.bz2 -C src
if [[ "${ARCH}" == "i386" || "${ARCH}" == "x86_64" ]] ; then
export BUILD_DEVROOT="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer"
export BUILD_SDKROOT="${BUILD_DEVROOT}/SDKs/${PLATFORM}${SDKVERSION}.sdk"
else
export BUILD_DEVROOT="${DEVELOPER}/Toolchains/XcodeDefault.xctoolchain"
export BUILD_SDKROOT="${DEVELOPER}/Platforms/iPhoneOS.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk"
fi
export LD=${BUILD_DEVROOT}/usr/bin/ld
export CC=${DEVELOPER}/usr/bin/gcc
export CXX=${DEVELOPER}/usr/bin/g++
if [[ "${ARCH}" == "i386" || "${ARCH}" == "x86_64" ]];
then
export AR=${DEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar
export AS=${DEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/as
export NM=${DEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm
export RANLIB=${DEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib
else
export AR=${BUILD_DEVROOT}/usr/bin/ar
export AS=${BUILD_DEVROOT}/usr/bin/as
export NM=${BUILD_DEVROOT}/usr/bin/nm
export RANLIB=${DEVROOT}/usr/bin/ranlib
fi
export LDFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${BUILD_SDKROOT} -L${CURRENTPATH}/lib -miphoneos-version-min=7.0"
export CFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${BUILD_SDKROOT} -I${CURRENTPATH}/include -I/usr/include -miphoneos-version-min=7.0"
export CXXFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${BUILD_SDKROOT} -I${CURRENTPATH}/include -miphoneos-version-min=7.0"
mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk"
LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-libupnp-error-${VERSION}.log"
HOST=${ARCH}
if [ "${ARCH}" == "arm64" ];
then
HOST="aarch64"
fi
./configure --host=${HOST}-apple-darwin --prefix="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" --disable-shared --enable-static --disable-assembly
make
make install
cd ${CURRENTPATH}
rm -rf src/libupnp-${VERSION}
done
echo "Build library..."
lipo -create ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/lib/liblibupnp.a ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-x86_64.sdk/lib/liblibupnp.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7.sdk/lib/liblibupnp.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7s.sdk/lib/liblibupnp.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-arm64.sdk/lib/liblibupnp.a -output ${CURRENTPATH}/lib/liblibupnp.a
mkdir -p ${CURRENTPATH}/include/libupnp
cp -R ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/include/ ${CURRENTPATH}/include/libupnp/
echo "Building done."

Related

Cannot install "glog" for React Native app

I am stuck trying to run pod install to get my new React-Native App to build. I've had a look online - my xcode-select command is set correctly which seems to be the main solutions to this problem. Here is my output, does anyone have any clues?
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-apple-darwin-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for arm-apple-darwin-gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk
checking whether the C compiler works... no
/Users/lachlanedwards/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-1f3da/missing: Unknown `--is-lightweight' option
Try `/Users/lachlanedwards/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-1f3da/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/Users/lachlanedwards/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-1f3da':
configure: error: C compiler cannot create executables
See `config.log' for more details

Clustal Omega in Command Line

Below is what I am getting when I type ./configure on terminal while inside the clustal omega package.
Welcome to Clustal Omega - version 1.2.1 (AndreaGiacomo)
+NMMMMMMMMMS=
MMMMM? :MMMMM8
IMMMMS MMMMM,
~MMMMN ,MMMMM
=MMMMM MMMMM
?MMMMM +MMMMM
MMMMMS MMMMM
MMMMM MMMMM:
MMMMM MMMMM+
MMMMM MMMMM~
MMMMM MMMMM
MMMMMZ MMMMM
MMMMM ,MMMMZ
MMMM8 MMMM+
MMMMS MMMM,
MMMMO MMMM
,N SMMM MMM8 +8
,M7 M+ M+ :M8
,MMMMMMMMMMMMI MMMMMMMMMMMM8
,MMMMMMMMMMMM8 MMMMMMMMMMMM8
,MMMMMMMMMMMMN MMMMMMMMMMMM8
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... i386-apple-darwin13.4.0
checking host system type... i386-apple-darwin13.4.0
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.4.0 dyld
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
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking how to run the C++ preprocessor... g++ -E
checking for ANSI C header files... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for memory.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for inline... inline
checking for log in -lm... yes
checking for log2 in -lm... yes
checking argtable2.h usability... yes
checking argtable2.h presence... yes
checking for argtable2.h... yes
checking for arg_parse in -largtable2... yes
checking for OpenMP flag of C compiler... unknown
checking whether byte ordering is bigendian... no
checking for ntohs... yes
checking for ntohl... yes
checking for ntons... no
checking for ntonl... no
checking size of unsigned short... 2
checking size of unsigned int... 4
checking size of unsigned long... 8
checking size of unsigned long long... 8
checking for stroul... no
checking for strtoull... yes
checking for ftello... yes
checking for fseeko... yes
checking for ftello64... no
checking for fseeko64... no
checking for ftell64... no
checking for fseek64... no
checking for off_t... yes
checking size of fpos_t... 8
checking if malloc debugging is wanted... no
checking whether to build with debug information... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating clustalo.pc
config.status: creating Doxyfile
config.status: creating src/clustal/Makefile
config.status: creating src/hhalign/Makefile
config.status: creating src/kmpp/Makefile
config.status: creating src/squid/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing src/clustal-omega-config.h commands
config.status: creating src/clustal-omega-config.h - prefix CLUSTAL_OMEGA for src/config.h defines
config.status: src/clustal-omega-config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
then, when I "make", I am getting,
Making all in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in hhalign
make[3]: Nothing to be done for `all'.
Making all in squid
make[3]: Nothing to be done for `all'.
Making all in kmpp
make[3]: Nothing to be done for `all'.
Making all in clustal
make[3]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all-am'.
It must work fine when I type "make" so I move on and install the clustal omega. But that was what I have been getting. Please tell me what to do.
After typing the make command you must type
make install
Assuming you have all of the correct dependencies installed, namely argtable2.h, this should install clustal omega for you.
Does the program open if you type
clustal
At the command line?

set $PATH on iPhone

I have a jailbroken iphone 4s running 7.1.2 and I downloaded the IOS Tool chain from cydia. while trying to run the configure script for libressl i get...
Nah-Niggass-iPhone:/User/libressl-2.0.5 root# ./configure
checking build system type... arm-apple-darwin14.0.0
checking host system type... arm-apple-darwin14.0.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... no
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/User/libressl-2.0.5':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
So I added these lines to /etc/profile
PATH="$PATH:$HOME/bin:/usr/sbin:/usr/bin:/root/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/opt/csw/bin:/opt/csw/sbin:/opt/csw/gcc3/bin:/usr/sfw/sbin:/usr/sfw/bin:/opt/csw/mysql5/bin"
export PATH
But I still get the same error. I then checked config.log and it's show's the correct Path to clang
PATH: /usr/bin/clang
So How do i get ./configure working on a iphone?

Compiling expat for iOS - Command /bin/sh failed with exit code 2

PS: My earlier question was different, that could be fixed, now I am running into new problem
I am trying to import the libkml library into my iOS project. I realised that expat libraries cannot be linked (?) and so have to build the expat sources for it again.
I found a SO link where a gentleman mentions that he could successfully link expat with his iOS SDK 5.1: How to compile expat with iOS SDK 5.1?
I tried the same using the [script available in github][2] as mentioned in the above link.
But, I am getting an error in the Run phase of the script. I could not make the most out of it but I need help to fix this.
The script used is the same as from github link. C++ standard library in the project is set to "Compiler default" which I presume is LLVM C++. Below is the output from config.log which I am not able to make out with my level of understanding. Please help me out in resolving this problem and build the library to link it across with my project:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by expat configure 2.0.1, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/Users/raj/Projects/test/bin/iPhoneSimulator5.0-i386.sdk --host=i386-apple-darwin --enable-static
## --------- ##
## Platform. ##
## --------- ##
hostname = Rajs-MacBook-Pro.local
uname -m = x86_64
uname -r = 12.3.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 4.00 gigabytes
Default processor set: 124 tasks, 641 threads, 8 processors
Load average: 1.70, Mach factor: 6.28
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin
PATH: /Applications/Xcode.app/Contents/Developer/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/usr/local/bin
PATH: /Applications/Xcode.app/Contents/Developer/Tools
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2092: checking build system type
configure:2110: result: i386-apple-darwin12.3.0
configure:2118: checking host system type
configure:2132: result: i386-apple-darwin
configure:2148: checking for i386-apple-darwin-gcc
configure:2174: result: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
configure:2456: checking for C compiler version
configure:2459: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc --version </dev/null >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2462: $? = 0
configure:2464: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -v </dev/null >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
configure:2467: $? = 0
configure:2469: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -V </dev/null >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2472: $? = 1
configure:2495: checking for C compiler default output file name
configure:2498: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/raj/Projects/test/lib conftest.c >&5
configure:2501: $? = 0
configure:2547: result: a.out
configure:2552: checking whether the C compiler works
configure:2558: ./a.out
configure:2561: $? = 0
configure:2578: result: yes
configure:2585: checking whether we are cross compiling
configure:2587: result: no
configure:2590: checking for suffix of executables
configure:2592: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -o conftest -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/raj/Projects/test/lib conftest.c >&5
configure:2595: $? = 0
configure:2620: result:
configure:2626: checking for suffix of object files
configure:2647: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -c -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include conftest.c >&5
configure:2650: $? = 0
configure:2672: result: o
configure:2676: checking whether we are using the GNU C compiler
configure:2700: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -c -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include conftest.c >&5
configure:2706: $? = 0
configure:2710: test -z
|| test ! -s conftest.err
configure:2713: $? = 0
configure:2716: test -s conftest.o
configure:2719: $? = 0
configure:2732: result: yes
configure:2738: checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc accepts -g
configure:2759: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -c -g conftest.c >&5
configure:2765: $? = 0
configure:2769: test -z
|| test ! -s conftest.err
configure:2772: $? = 0
configure:2775: test -s conftest.o
configure:2778: $? = 0
configure:2789: result: yes
configure:2806: checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc option to accept ANSI C
configure:2876: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -c -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include conftest.c >&5
conftest.c:10:19: error: stdio.h: No such file or directory
conftest.c:11:23: error: sys/types.h: No such file or directory
conftest.c:12:22: error: sys/stat.h: No such file or directory
conftest.c:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
conftest.c:44: error: expected declaration specifiers or '...' before 'FILE'
configure:2882: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "expat"
| #define PACKAGE_TARNAME "expat"
| #define PACKAGE_VERSION "2.0.1"
| #define PACKAGE_STRING "expat 2.0.1"
| #define PACKAGE_BUGREPORT "expat-bugs#libexpat.org"
| /* end confdefs.h. */
| #include <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
| char *s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
.
.
.
.
.
configure: exit 0
In addition to the above config.log file, I could find a build log too.
Details of the build-expat-2.0.1.log file:
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 build system type... i386-apple-darwin12.3.0
checking host system type... i386-apple-darwin
checking for i386-apple-darwin-gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc accepts -g... yes
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc option to accept ANSI C... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking dlfcn.h usability... no
checking dlfcn.h presence... yes
configure: WARNING: dlfcn.h: present but cannot be compiled
configure: WARNING: dlfcn.h: check for missing prerequisite headers?
configure: WARNING: dlfcn.h: see the Autoconf documentation
configure: WARNING: dlfcn.h: section "Present But Cannot Be Compiled"
configure: WARNING: dlfcn.h: proceeding with the preprocessor's result
configure: WARNING: dlfcn.h: in the future, the compiler will take precedence
configure: WARNING: ## -------------------------------------- ##
configure: WARNING: ## Report this to expat-bugs#libexpat.org ##
configure: WARNING: ## -------------------------------------- ##
checking for dlfcn.h... yes
checking for i386-apple-darwin-g++... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++
checking whether we are using the GNU C++ compiler... yes
checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ accepts -g... yes
checking how to run the C++ preprocessor... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-cpp-4.2
checking for i386-apple-darwin-g77... no
checking for i386-apple-darwin-f77... no
checking for i386-apple-darwin-xlf... no
checking for i386-apple-darwin-frt... no
checking for i386-apple-darwin-pgf77... no
checking for i386-apple-darwin-fort77... no
checking for i386-apple-darwin-fl32... no
checking for i386-apple-darwin-af77... no
checking for i386-apple-darwin-f90... no
checking for i386-apple-darwin-xlf90... no
checking for i386-apple-darwin-pgf90... no
checking for i386-apple-darwin-epcf90... no
checking for i386-apple-darwin-f95... no
checking for i386-apple-darwin-fort... no
checking for i386-apple-darwin-xlf95... no
checking for i386-apple-darwin-ifc... no
checking for i386-apple-darwin-efc... no
checking for i386-apple-darwin-pgf95... no
checking for i386-apple-darwin-lf95... no
checking for i386-apple-darwin-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... 196608
checking command to parse /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/nm output from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc object... ok
checking for objdir... .libs
checking for i386-apple-darwin-ar... no
checking for ar... ar
checking for i386-apple-darwin-ranlib... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ranlib
checking for i386-apple-darwin-strip... no
checking for strip... strip
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc supports -fno-rtti -fno-exceptions... no
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc option to produce PIC... -fno-common
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc PIC flag -fno-common works... yes
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc static flag -static works... no
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc supports -c -o file.o... yes
checking whether the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin dyld
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 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) is GNU ld... no
checking whether the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) supports shared libraries... yes
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ option to produce PIC... -fno-common
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ PIC flag -fno-common works... yes
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ static flag -static works... no
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ supports -c -o file.o... yes
checking whether the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for i386-apple-darwin-gcc... (cached) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc accepts -g... (cached) yes
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc option to accept ANSI C... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc accepts -fexceptions... yes
checking for ANSI C header files... (cached) no
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for size_t... no
checking for memmove... no
checking for bcopy... no
checking fcntl.h usability... no
checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h: section "Present But Cannot Be Compiled"
configure: WARNING: fcntl.h: proceeding with the preprocessor's result
configure: WARNING: fcntl.h: in the future, the compiler will take precedence
configure: WARNING: ## -------------------------------------- ##
configure: WARNING: ## Report this to expat-bugs#libexpat.org ##
configure: WARNING: ## -------------------------------------- ##
checking for fcntl.h... yes
checking for unistd.h... (cached) no
checking for off_t... no
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) no
checking for getpagesize... no
checking for working mmap... no
checking for an ANSI C99-conforming __func__... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating expat_config.h
config.status: expat_config.h is unchanged
/bin/sh ./libtool --silent --mode=compile /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -I./lib -I. -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o lib/xmlparse.lo -c lib/xmlparse.c
lib/xmlparse.c:6:65: error: string.h: No such file or directory
lib/xmlparse.c:7:20: error: assert.h: No such file or directory
In file included from lib/xmlparse.c:24:
lib/expat.h:17:20: error: stdlib.h: No such file or directory
lib/xmlparse.c:81:2: error: #error memmove does not exist on this platform, nor is a substitute available
lib/xmlparse.c: In function 'parserCreate':
lib/xmlparse.c:719: warning: implicit declaration of function 'malloc'
lib/xmlparse.c:719: warning: incompatible implicit declaration of built-in function 'malloc'
lib/xmlparse.c:722: warning: assignment from incompatible pointer type
lib/xmlparse.c:723: error: 'realloc' undeclared (first use in this function)
lib/xmlparse.c:723: error: (Each undeclared identifier is reported only once
lib/xmlparse.c:723: error: for each function it appears in.)
lib/xmlparse.c:724: error: 'free' undeclared (first use in this function)
lib/xmlparse.c: In function 'parserInit':
lib/xmlparse.c:848: warning: implicit declaration of function 'memset'
lib/xmlparse.c:848: warning: incompatible implicit declaration of built-in function 'memset'
lib/xmlparse.c: In function 'XML_Parse':
lib/xmlparse.c:1543: warning: implicit declaration of function 'memcpy'
lib/xmlparse.c:1543: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'XML_GetBuffer':
lib/xmlparse.c:1627: warning: implicit declaration of function 'memmove'
lib/xmlparse.c:1627: warning: incompatible implicit declaration of built-in function 'memmove'
lib/xmlparse.c:1656: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'XML_GetParsingStatus':
lib/xmlparse.c:1750: warning: implicit declaration of function 'assert'
lib/xmlparse.c: In function 'storeRawNames':
lib/xmlparse.c:2009: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'doContent':
lib/xmlparse.c:2424: warning: implicit declaration of function 'memcmp'
lib/xmlparse.c: In function 'storeAtts':
lib/xmlparse.c:2922: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c:2931: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'addBinding':
lib/xmlparse.c:3039: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'lookup':
lib/xmlparse.c:5871: warning: incompatible implicit declaration of built-in function 'memset'
lib/xmlparse.c:5898: warning: incompatible implicit declaration of built-in function 'memset'
lib/xmlparse.c:5927: warning: incompatible implicit declaration of built-in function 'memset'
lib/xmlparse.c: In function 'poolGrow':
lib/xmlparse.c:6112: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c:6148: warning: incompatible implicit declaration of built-in function 'memcpy'
make: *** [lib/xmlparse.lo] Error 1
Two suggestions:
1) build the library for OSX, that is run ./configure and make. If that works, construct a Xcode library project, add all the library source files, and the created congig.h etc. get this project to compile, then add the project to your app. I have done this and it's often the easiest (in the end) solution.
2) if you cannot get that to work offer a 100 to 250 bounty and someone else will do it. That's a clear benefit of building up points here - you can use them for something when you really need to!

Creating a static c lib for ios

I'm want to compile a c library for the iphone. I'm totally unexperienced with that and googled around and found this her: Compile C lib for iPhone
The original source code of the project I want to build compiles fine on my mac and the result contains the following directory structure
bin include lib share
So after that I now want to build this stuff so that I can use it on my iphone. For the first step I just copy and pasted the configure command from the link above and hit enter. This is the result:
./configure --build=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 CFLAGS="-pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=3.1.2 -gdwarf-2 -mthumb -I/Library/iPhone/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk -mdynamic-no-pic" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar AS=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as LIBTOOL=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool STRIP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/strip RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib
checking build system type... arm-apple-darwin
checking host system type... arm-apple-darwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking host system type... posix
checking for gcc... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
checking whether the C compiler works... no
configure: error: in `/path/to/gwenhywfar-4.3.0-src':
configure: error: C compiler cannot create executables
But what is the problem with that? How can this be repaired? Am I right if I assume that preventing creating binary executables would be the solution?

Resources