Hi everyone!
I’m trying to “habitatize” a third party/vendor application that depends on libFoundation. There’s no libFoundation in core, so I guessed I’d have to write that first - however, I hit an issue in the do_build method, where I keep on getting an “Objective-C runtime” issue.
output of ./configure
checking host system type... Invalid configuration `x86_64-pc-linux-gnuoldld': machine `x86_64-pc' not recognized
*************** Warning ****************
This package was not ported to running operating system.
We'll use the default configuration file ./config//.h.
****************************************
./configure: line 684: test: =: unary operator expected
checking for a BSD compatible install... /hab/pkgs/core/coreutils/8.25/20170513213226/bin/install -c
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc -I/hab/pkgs/core/glibc/2.22/20170513201042/include -I/hab/pkgs/core/glibc/2.22/20170513201042/include -I/hab/pkgs/core/gcc/5.2.0/20170513202244/include -L/hab/pkgs/core/glibc/2.22/20170513201042/lib -L/hab/pkgs/core/glibc/2.22/20170513201042/lib -L/hab/pkgs/core/gcc/5.2.0/20170513202244/lib) works... yes
checking whether the C compiler (gcc -I/hab/pkgs/core/glibc/2.22/20170513201042/include -I/hab/pkgs/core/glibc/2.22/20170513201042/include -I/hab/pkgs/core/gcc/5.2.0/20170513202244/include -L/hab/pkgs/core/glibc/2.22/20170513201042/lib -L/hab/pkgs/core/glibc/2.22/20170513201042/lib -L/hab/pkgs/core/gcc/5.2.0/20170513202244/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking how to run the C preprocessor... gcc -E
checking for gmake... no
checking for gnumake... no
checking for make... no
checking for the C structures alignment... 8
checking for dlopen in -ldl... yes
checking for pthread_create in -lpcthread... no
checking for pthread_create in -lpthread... yes
checking for sqrt in -lm... yes
checking for chown in -lnsl... yes
checking for accept in -lsocket... no
checking for in -lwsock32... no
checking for in -ladvapi32... no
checking for the Objective-C runtime...
configure: error: Cannot determine the Objective-C runtime! Probably you have to specify some additional libraries needed to link an ObjC program
The actual plan.sh is pretty straightforward currently:
pkg_name=libFoundation
pkg_description="libFoundation"
pkg_origin=escapetechnology
pkg_maintainer="Escape Technology Development <development@escape-technology.com>"
pkg_license=('BSD')
pkg_version=0.9.0
pkg_source=https://sourceforge.net/projects/libfoundation/files/${pkg_name}/${pkg_version}/${pkg_name}-${pkg_version}.tar.gz
pkg_shasum=8439a4a60fba6d8eced64787f0dc6228138d6ec87713bf8534849dac4c81b159
pkg_deps=(core/glibc)
pkg_build_deps=(core/glibc core/gcc core/gnupg)
do_build() {
cd ${HAB_CACHE_SRC_PATH}/${pkg_name}/${pkg_name}
./configure
make
}
Thanks in advance for your help!