Hi, On Tue, Sep 15, 2020 at 10:52:54PM +0200, David Sommerseth wrote: > --- > v2 - Process README files with correct instructions and details > v3 - Add missing -I$(top_srcdir)/include and explicitly state GNU Make > requirement
Unfortunately, we need a v4... stupid me... For in-tree builds, it is working: cc -c -o simple/simple.o -Wall -Wno-unused-parameter -Wno-unused-function -g -O2 -std=c99 -I../.. -I../../include -fPIC simple/simple.c cc -shared -fPIC -o simple/simple.so simple/simple.o rm simple/simple.o For out of tree builds, it is still failing: cc -c -o simple/simple.o -Wall -Wno-unused-parameter -Wno-unused-function -g -O2 -std=c99 -I../../../openvpn -I../../../openvpn/include -fPIC ../../../openvpn/sample/sample-plugins/simple/simple.c ../../../openvpn/sample/sample-plugins/simple/simple.c:37:10: fatal error: 'openvpn-plugin.h' file not found #include "openvpn-plugin.h" ^~~~~~~~~~~~~~~~~~ because "openvpn-plugin.h" is not actually to be found in the source tree, but it's generated at compile time - so "-I../../include" will find it. The other -I should maybe also be "-I../.."? What is it looking for in the $(top_builddir)? The only .h file in $(top_builddir) is "config-msvc.h" - config.h is in "../.." But anyway, if I do "-I../../include", it compiles out of tree as well... cc -c -o simple/simple.o -Wall -Wno-unused-parameter -Wno-unused-function -g -O2 -std=c99 -I../../../openvpn -I../../include -fPIC ../../../openvpn/sample/sample-plugins/simple/simple.c gert -- "If was one thing all people took for granted, was conviction that if you feed honest figures into a computer, honest figures come out. Never doubted it myself till I met a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress Gert Doering - Munich, Germany g...@greenie.muc.de
signature.asc
Description: PGP signature
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel