[Solved] Compiling OpenVPN 2.3.2 on Mac OS X 10.9 Fails
Posted: Fri Feb 21, 2014 10:33 pm
I am trying to compile OpenVPN 2.3.2 on a Mac running OS X 10.9 (Mavericks). I have LZO v2.06 installed (both library types), and have invoked configure with the following command:
I believe configure completes successfully, because no errors are reported via stdout before the shell returns me to a prompt. Upon making the code, I get the following error. (This is the entire output from make.)
What does the error mean? It appears that the CFLAGS variable does not have a value (and it doesn't if I attempt to echo it) ... but why would that be? Should I be looking for any tell-tale signs in config.log to isolate what is failing on configure? Or am I not invoking configure correctly to allow it to find my LZO libraries? Or is there something else entirely that I am overlooking?
Code: Select all
LZO_CFLAGS="-I/usr/local/include" LZO_LIBS="-L/usr/local/lib" ./configure
Code: Select all
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in build
Making all in msvc
Making all in msvc-generate
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
make[3]: Nothing to be done for `all-am'.
Making all in distro
Making all in rpm
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in include
make[2]: Nothing to be done for `all'.
Making all in src
Making all in compat
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -no-cpp-precomp @CFLAGS@ -MT compat-dirname.lo -MD -MP -MF .deps/compat-dirname.Tpo -c -o compat-dirname.lo compat-dirname.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -no-cpp-precomp @CFLAGS@ -MT compat-dirname.lo -MD -MP -MF .deps/compat-dirname.Tpo -c compat-dirname.c -fno-common -DPIC -o .libs/compat-dirname.o
clang: error: no such file or directory: '@CFLAGS@'
make[3]: *** [compat-dirname.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2