https://bugzilla.novell.com/show_bug.cgi?id=632180
https://bugzilla.novell.com/show_bug.cgi?id=632180#c4
--- Comment #4 from Ralph Schaffner 2010-09-11 06:44:05 UTC ---
Ok, I've had a little free time and I've managed to build a working version of
novell-ipsec-tools with the policy priority feature.
The problem is caused by the configure scripts trying to find pfkeyv2.h in the
wrong place. It expects "/lib/modules/`uname
-r`/build/include/linux/pfkeyv2.h".
I took the shortcut of copying pfkeyv2.h to
/lib/modules/2.6.34.4-0.1-desktop/build/include/linux/ and then running
rpmbuild. A proper solution would be to modify configure.ac to properly define
KERNEL_INCLUDE.
Here is a snippet from the config.log
configure:11650: checking for struct sadb_x_policy.sadb_x_policy_priority
configure:11650: gcc -c -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -fno-strict-aliasing conftest.c >&5
conftest.c:25:75: fatal error:
/lib/modules/2.6.34.4-0.1-desktop/build/include/linux/pfkeyv2.h: No such file
or directory
compilation terminated.
configure:11650: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "novell-ipsec-tools"
| #define PACKAGE_TARNAME "novell-ipsec-tools"
| #define PACKAGE_VERSION "0.7.1"
| #define PACKAGE_STRING "novell-ipsec-tools 0.7.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "novell-ipsec-tools"
| #define VERSION "0.7.1"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define YYTEXT_POINTER 1
| #define PATH_IPSEC_H
| /* end confdefs.h. */
| #include "/lib/modules/2.6.34.4-0.1-desktop/build/include/linux/pfkeyv2.h"
|
| int
| main ()
| {
| static struct sadb_x_policy ac_aggr;
| if (ac_aggr.sadb_x_policy_priority)
| return 0;
| ;
| return 0;
| }
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.