Project

General

Profile

Bug #169

Mac OS X Port make install fail.

Added by Dj CC almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
libstrongswan
Target version:
Start date:
26.01.2012
Due date:
Estimated time:
Affected version:
4.6.1
Resolution:

Description

When i run make after running the provided mac os x configure line, I get a failure on an undeclared constant (judging by the CAPS). I've copied an excerpt below.

The configure command completed without any errors. That was copied below the error make result. I also attached the two as files. Did you guys run into this when you did the MacOSX port?

Thanks for your help.

---------- Make ---------------
crypto/crypto_tester.c: In function ‘start_timing’:
crypto/crypto_tester.c:110: warning: implicit declaration of function ‘clock_gettime’
crypto/crypto_tester.c:110: error: ‘CLOCK_THREAD_CPUTIME_ID’ undeclared (first use in this function)
crypto/crypto_tester.c:110: error: (Each undeclared identifier is reported only once
crypto/crypto_tester.c:110: error: for each function it appears in.)
crypto/crypto_tester.c: In function ‘end_timing’:
crypto/crypto_tester.c:120: error: ‘CLOCK_THREAD_CPUTIME_ID’ undeclared (first use in this function)
make5: * [crypto_tester.lo] Error 1
make4:
[all-recursive] Error 1
make3:
[all] Error 2
make2:
[all-recursive] Error 1
make1:
[all-recursive] Error 1
make: *
[all] Error 2

--------- ./configure command ---------------
207:strongswan-4.6.1 ab$ ./configure --enable-kernel-pfkey --enable-kernel-pfroute --disable-kernel-netlink --enable-vstr --disable-tools --disable-scripts --disable-pluto --with-group=wheel --with-lib-prefix=/opt/local
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... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for pkg-config... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-apple-darwin10.7.0
checking host system type... x86_64-apple-darwin10.7.0
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... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
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 whether byte ordering is bigendian... no
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... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/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 /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/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... no
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 (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.7.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 egrep... (cached) /usr/bin/grep -E
checking for gawk... (cached) gawk
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for perl... /usr/bin/perl
checking for gperf... /opt/local/bin/gperf
checking gperf version >= 3.0.0... yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for library containing dlopen... none required
checking for library containing backtrace... none required
checking for backtrace... yes
checking for library containing socket... none required
checking for library containing clock_gettime... no
checking for clock_gettime... no
checking for library containing pthread_create... none required
checking for dladdr... yes
checking for pthread_condattr_setclock(CLOCK_MONOTONE)... no
checking for pthread_condattr_init... yes
checking for pthread_cond_timedwait_monotonic... no
checking for pthread_cancel... yes
checking for pthread_rwlock_init... yes
checking for prctl... no
checking for mallinfo... no
checking for getpass... yes
checking for closefrom... no
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking net/pfkeyv2.h usability... yes
checking net/pfkeyv2.h presence... yes
checking for net/pfkeyv2.h... yes
checking netipsec/ipsec.h usability... no
checking netipsec/ipsec.h presence... no
checking for netipsec/ipsec.h... no
checking netinet6/ipsec.h usability... yes
checking netinet6/ipsec.h presence... yes
checking for netinet6/ipsec.h... yes
checking linux/udp.h usability... no
checking linux/udp.h presence... no
checking for linux/udp.h... no
checking for struct sockaddr.sa_len... yes
checking for struct sadb_x_policy.sadb_x_policy_priority... no
checking for in6addr_any... yes
checking for in6_pktinfo... yes
checking for IPSEC_MODE_BEET... no
checking for IPSEC_DIR_FWD... no
checking for RTA_TABLE... no
checking for gcc atomic operations... yes
checking for register_printf_specifier... no
checking for register_printf_function... no
configure: printf does not support custom format specifiers!
checking for main in -lvstr... yes
checking for main in -lgmp... yes
checking mpz_powm_sec... yes
checking gmp.h version >= 4.1.4... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating init/Makefile
config.status: creating init/systemd/Makefile
config.status: creating src/Makefile
config.status: creating src/include/Makefile
config.status: creating src/libstrongswan/Makefile
config.status: creating src/libstrongswan/plugins/aes/Makefile
config.status: creating src/libstrongswan/plugins/des/Makefile
config.status: creating src/libstrongswan/plugins/blowfish/Makefile
config.status: creating src/libstrongswan/plugins/md4/Makefile
config.status: creating src/libstrongswan/plugins/md5/Makefile
config.status: creating src/libstrongswan/plugins/sha1/Makefile
config.status: creating src/libstrongswan/plugins/sha2/Makefile
config.status: creating src/libstrongswan/plugins/fips_prf/Makefile
config.status: creating src/libstrongswan/plugins/gmp/Makefile
config.status: creating src/libstrongswan/plugins/random/Makefile
config.status: creating src/libstrongswan/plugins/hmac/Makefile
config.status: creating src/libstrongswan/plugins/xcbc/Makefile
config.status: creating src/libstrongswan/plugins/x509/Makefile
config.status: creating src/libstrongswan/plugins/revocation/Makefile
config.status: creating src/libstrongswan/plugins/constraints/Makefile
config.status: creating src/libstrongswan/plugins/pubkey/Makefile
config.status: creating src/libstrongswan/plugins/pkcs1/Makefile
config.status: creating src/libstrongswan/plugins/pgp/Makefile
config.status: creating src/libstrongswan/plugins/dnskey/Makefile
config.status: creating src/libstrongswan/plugins/pem/Makefile
config.status: creating src/libstrongswan/plugins/curl/Makefile
config.status: creating src/libstrongswan/plugins/soup/Makefile
config.status: creating src/libstrongswan/plugins/ldap/Makefile
config.status: creating src/libstrongswan/plugins/mysql/Makefile
config.status: creating src/libstrongswan/plugins/sqlite/Makefile
config.status: creating src/libstrongswan/plugins/padlock/Makefile
config.status: creating src/libstrongswan/plugins/openssl/Makefile
config.status: creating src/libstrongswan/plugins/gcrypt/Makefile
config.status: creating src/libstrongswan/plugins/agent/Makefile
config.status: creating src/libstrongswan/plugins/pkcs11/Makefile
config.status: creating src/libstrongswan/plugins/ctr/Makefile
config.status: creating src/libstrongswan/plugins/ccm/Makefile
config.status: creating src/libstrongswan/plugins/gcm/Makefile
config.status: creating src/libstrongswan/plugins/af_alg/Makefile
config.status: creating src/libstrongswan/plugins/test_vectors/Makefile
config.status: creating src/libhydra/Makefile
config.status: creating src/libhydra/plugins/attr/Makefile
config.status: creating src/libhydra/plugins/attr_sql/Makefile
config.status: creating src/libhydra/plugins/kernel_klips/Makefile
config.status: creating src/libhydra/plugins/kernel_netlink/Makefile
config.status: creating src/libhydra/plugins/kernel_pfkey/Makefile
config.status: creating src/libhydra/plugins/kernel_pfroute/Makefile
config.status: creating src/libhydra/plugins/resolve/Makefile
config.status: creating src/libfreeswan/Makefile
config.status: creating src/libsimaka/Makefile
config.status: creating src/libtls/Makefile
config.status: creating src/libtncif/Makefile
config.status: creating src/libtnccs/Makefile
config.status: creating src/libpts/Makefile
config.status: creating src/libimcv/Makefile
config.status: creating src/libimcv/plugins/imc_test/Makefile
config.status: creating src/libimcv/plugins/imv_test/Makefile
config.status: creating src/libimcv/plugins/imc_scanner/Makefile
config.status: creating src/libimcv/plugins/imv_scanner/Makefile
config.status: creating src/libimcv/plugins/imc_attestation/Makefile
config.status: creating src/libimcv/plugins/imv_attestation/Makefile
config.status: creating src/pluto/Makefile
config.status: creating src/pluto/plugins/xauth/Makefile
config.status: creating src/whack/Makefile
config.status: creating src/charon/Makefile
config.status: creating src/libcharon/Makefile
config.status: creating src/libcharon/plugins/eap_aka/Makefile
config.status: creating src/libcharon/plugins/eap_aka_3gpp2/Makefile
config.status: creating src/libcharon/plugins/eap_identity/Makefile
config.status: creating src/libcharon/plugins/eap_md5/Makefile
config.status: creating src/libcharon/plugins/eap_gtc/Makefile
config.status: creating src/libcharon/plugins/eap_sim/Makefile
config.status: creating src/libcharon/plugins/eap_sim_file/Makefile
config.status: creating src/libcharon/plugins/eap_sim_pcsc/Makefile
config.status: creating src/libcharon/plugins/eap_simaka_sql/Makefile
config.status: creating src/libcharon/plugins/eap_simaka_pseudonym/Makefile
config.status: creating src/libcharon/plugins/eap_simaka_reauth/Makefile
config.status: creating src/libcharon/plugins/eap_mschapv2/Makefile
config.status: creating src/libcharon/plugins/eap_tls/Makefile
config.status: creating src/libcharon/plugins/eap_ttls/Makefile
config.status: creating src/libcharon/plugins/eap_peap/Makefile
config.status: creating src/libcharon/plugins/eap_tnc/Makefile
config.status: creating src/libcharon/plugins/eap_radius/Makefile
config.status: creating src/libcharon/plugins/tnc_ifmap/Makefile
config.status: creating src/libcharon/plugins/tnc_imc/Makefile
config.status: creating src/libcharon/plugins/tnc_imv/Makefile
config.status: creating src/libcharon/plugins/tnc_tnccs/Makefile
config.status: creating src/libcharon/plugins/tnccs_11/Makefile
config.status: creating src/libcharon/plugins/tnccs_20/Makefile
config.status: creating src/libcharon/plugins/tnccs_dynamic/Makefile
config.status: creating src/libcharon/plugins/socket_default/Makefile
config.status: creating src/libcharon/plugins/socket_raw/Makefile
config.status: creating src/libcharon/plugins/socket_dynamic/Makefile
config.status: creating src/libcharon/plugins/farp/Makefile
config.status: creating src/libcharon/plugins/smp/Makefile
config.status: creating src/libcharon/plugins/sql/Makefile
config.status: creating src/libcharon/plugins/medsrv/Makefile
config.status: creating src/libcharon/plugins/medcli/Makefile
config.status: creating src/libcharon/plugins/nm/Makefile
config.status: creating src/libcharon/plugins/addrblock/Makefile
config.status: creating src/libcharon/plugins/uci/Makefile
config.status: creating src/libcharon/plugins/ha/Makefile
config.status: creating src/libcharon/plugins/whitelist/Makefile
config.status: creating src/libcharon/plugins/certexpire/Makefile
config.status: creating src/libcharon/plugins/led/Makefile
config.status: creating src/libcharon/plugins/duplicheck/Makefile
config.status: creating src/libcharon/plugins/coupling/Makefile
config.status: creating src/libcharon/plugins/android/Makefile
config.status: creating src/libcharon/plugins/maemo/Makefile
config.status: creating src/libcharon/plugins/stroke/Makefile
config.status: creating src/libcharon/plugins/updown/Makefile
config.status: creating src/libcharon/plugins/dhcp/Makefile
config.status: creating src/libcharon/plugins/unit_tester/Makefile
config.status: creating src/libcharon/plugins/load_tester/Makefile
config.status: creating src/stroke/Makefile
config.status: creating src/ipsec/Makefile
config.status: creating src/starter/Makefile
config.status: creating src/_updown/Makefile
config.status: creating src/_updown_espmark/Makefile
config.status: creating src/_copyright/Makefile
config.status: creating src/openac/Makefile
config.status: creating src/scepclient/Makefile
config.status: creating src/pki/Makefile
config.status: creating src/dumm/Makefile
config.status: creating src/dumm/ext/extconf.rb
config.status: creating src/libfast/Makefile
config.status: creating src/manager/Makefile
config.status: creating src/medsrv/Makefile
config.status: creating src/checksum/Makefile
config.status: creating src/conftest/Makefile
config.status: creating scripts/Makefile
config.status: creating testing/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands

configure.rtf (14.6 KB) configure.rtf Dj CC, 26.01.2012 16:03
make_fail.rtf (120 KB) make_fail.rtf Dj CC, 26.01.2012 16:03

History

#1 Updated by Tobias Brunner almost 7 years ago

  • Category set to libstrongswan
  • Status changed from New to Resolved
  • Assignee set to Tobias Brunner
  • Target version set to 4.6.2

It's been a while since we did the initial port to Mac OS X (I think it was 4.3.4), and there was not much done since.

Commit 7171d876 should fix this problem by disabling the crypto benchmarking mechanism if CLOCK_THREAD_CPUTIME_ID is not available (benchmarking is disabled anyway by default).

#2 Updated by Tobias Brunner almost 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF