This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
illyb
- OpenVpn Newbie
- Posts: 19
- Joined: Sat Jan 18, 2014 5:42 am
Post
by illyb » 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:
Code: Select all
LZO_CFLAGS="-I/usr/local/include" LZO_LIBS="-L/usr/local/lib" ./configure
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.)
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
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?
Last edited by
debbie10t on Fri Feb 28, 2014 12:05 pm, edited 1 time in total.
Reason: [Solved / closed]
-
illyb
- OpenVpn Newbie
- Posts: 19
- Joined: Sat Jan 18, 2014 5:42 am
Post
by illyb » Fri Feb 28, 2014 4:30 am
Resolved.
There were several issues that I was dealing with, but the key one was that I needed to invoke the OpenVPN build with the following command instead of the one I was using in my first post:
Code: Select all
LZO_CFLAGS="-I/usr/local/include" LZO_LIBS="-L/usr/local/lib -llzo2" ./configure
I also rebuilt LZO a different way to be sure that it wasn't the source of any problems. I am fairly certain that it was never causing me problems, but I wanted to make sure.
Hopefully someone else can benefit from my posting of the command above, as I could not find any help about the issue anywhere on the web. There were posts close to to the issue I was having (which I think got me thinking on the right track), but there weren't any specific references to the issues I was having on a Mac OS X system.