Discussion:
[strongSwan] Not using libsoup
Nicolas Fitton
2017-07-10 10:48:09 UTC
Permalink
Hi all,
Trying to build from source with the intent of trying out the Mac OS X tool.
I’m using the configuration suggested:

CFLAGS="-O2 -g -Wall -Wno-format -Wno-pointer-sign -Wno-deprecated-declarations" \
./configure --enable-monolithic --disable-shared --enable-static \
--disable-defaults \
--enable-openssl --enable-kernel-libipsec --enable-kernel-pfroute \
--enable-eap-mschapv2 --enable-eap-identity --enable-eap-md5 \
--enable-eap-gtc --enable-pkcs1 --enable-socket-default --enable-osx-attr \
--enable-xauth-generic --enable-gcm --enable-ccm --enable-ctr \
--enable-keychain --enable-nonce --enable-charon \
--enable-ikev1 --enable-ikev2

And I get the error

./configure: line 19934: syntax error near unexpected token `soup,'
./configure: line 19934: ` PKG_CHECK_MODULES(soup, libsoup-2.4)'

I’ve tried installing LibSoup with MacPorts

sudo port install libsoup
---> Computing dependencies for libsoup
---> Cleaning libsoup
---> Scanning binaries for linking errors
---> No broken files found.

Which made no difference.

I also have all of the dependencies either installed with brew or MacPorts.

Any advice or suggestions?
Nick Fitton
Tobias Brunner
2017-07-10 12:37:28 UTC
Permalink
Hi Nicolas,
Post by Nicolas Fitton
And I get the error
./configure: line 19934: syntax error near unexpected token `soup,'
./configure: line 19934: `PKG_CHECK_MODULES(soup, libsoup-2.4)'
Sounds like you were missing pkg-config when you called ./autogen.sh.
The built configure script should not contain the macro anymore.

Regards,
Tobias
Tobias Brunner
2017-07-10 15:27:46 UTC
Permalink
Hi Nicolas,
Correct, the brew version of pkg-config was insufficient using `sudo port install pkgconfig` worked
The brew version works fine if you also use libraries installed via
brew, but you have to heed the console output that brew spits out when
it installs libraries (i.e. to use it correctly you have to define
several environment variables before or when calling configure, see e.g.
[1]).

Regards,
Tobias

[1]
https://git.strongswan.org/?p=strongswan.git;a=blob;f=scripts/test.sh;h=22e74033e276388545aeafbe7c941ea30fe72de9;hb=HEAD#l106
Loading...