It appears that configure.in and the Makefile.am files also need patches similar to the ones I did for some of the other subdirectories.
I have a test patch here, which I built with:
diff -ur scep scep-new
Try applying this new patch over what you already have, and see if this fixes your problem.
For some reason, I can't get anonymous CVS to work right now, so I'm hoping that my files are current enough for this to be a good test.
Regards, Rob
Alessandro Razeto wrote:
With the latest patch from Rob I get the following error when building the package: # rm src/scep/autom4te.cache/output.0 # rm src/scep/autom4te.cache/requests # rm src/scep/autom4te.cache/traces.0 # rmdir src/scep/autom4te.cache rm -rf src/scep/autom4te.cache make[4]: Leaving directory `/home/razeto/openca-0.9' make[3]: Leaving directory `/home/razeto/openca-0.9' cd src/scep; aclocal -I . -I build cd src/scep; libtoolize --automake --copy --force cd src/scep; automake --add-missing --copy --gnu automake: configure.in: installing `build/install-sh' automake: configure.in: installing `build/mkinstalldirs' automake: configure.in: installing `build/missing' src/Makefile.am:58: variable `OPENSSL_INCLUDE_LIBS' not defined make[2]: *** [auto-scep] Error 1
Both compiling on woody and on sid.
For people interested in compiling a debian package with woody now I removed some dependancy for the build procedure, and it is possible to build with only using openss >= 0.9.7 got from backports (http://www.backports.org/debian/dists/woody/openssl/binary-i386/)
Ciao Alessandro
On Fri, Jan 16, 2004 at 11:58:01 -0800, Rob Thorne <[EMAIL PROTECTED]> wrote:
Michael Bell wrote:
Hi Rob,????
the patch doesn't work but I found the problem. You fixed some things in openca-sv in a wrong way and doesn't test it with --with-openssl-prefix.
What's the specific problem?
I looked at the generated Makefiles in openca-sv. They generate the following flags for OPENSSL_INCLUDES and OPENSSL_LIBS when you call configure with "--with-openssl-prefix=/usr/share/ssl":
OPENSSL_INCLUDE = -I/usr/share/ssl/includeThere's no reason to test OPENSSL_PREFIX in Makefile.am anymore, since the build and link flags are already correctly set up if --with-openssl-prefix is specified, even if pkg-config is present.
OPENSSL_LIBS = -L/usr/share/ssl/lib -L/usr/share/ssl -lcrypto -lssl
So this should do the right thing. Is there anything else you found?
Thanks, Rob
Rob Thorne wrote:
Getting everything to build right now is a bit of a problem, since makebp.xml.in is new and perhaps I commited it just when the CVS mirrors started to make their copy from the real CVS server of sourcforge.
is dying in src/common/etc since some recent check-ins into that
directory (I'm guessing that a file called src/common/etc/bp/bp.xml.in
is required, but has not been checked into CVS yet). But as near as I
can tell, as soon as build works without my changes, it will also work
*with* my changes :-)
The patch is now in CVS. I will create a new snapshot in some minutes.
Michael
diff -ur scep/configure.in scep-new/configure.in
--- scep/configure.in 2004-01-07 06:02:41.000000000 -0800
+++ scep-new/configure.in 2004-01-17 22:12:02.000000000 -0800
@@ -108,7 +108,7 @@
dnl OpenSSL prefix
AC_ARG_WITH( openssl-prefix,
AC_HELP_STRING( [--with-openssl-prefix=DIR], [openssl prefix]),
- openssl_prefix=$withval, openssl_prefix=/usr/local/ssl )
+ openssl_prefix=$withval, openssl_prefix= )
AC_SUBST( openssl_prefix)
if [[ x$openssl_prefix != x ]]; then
@@ -118,6 +118,68 @@
AC_MSG_RESULT([openssl lib dir : $openssl_path (default)])
fi
+
+ ### Setup for OpenSSL build flags ###
+ dnl Now we like the version of openssl. Let's construct
+ dnl the build flags for using it. If we find pkg-config
+ dnl on the system and openssl uses it, we will take
+ dnl our settings from there. If not, we'll make
+ dnl our best guess from what we do know.
+
+ dnl Defaults
+ openssl_cflags=
+ openssl_libs="-lcrypto -lssl"
+
+ dnl Now see if the user specified openssl_prefix
+ if [[ x${openssl_prefix} != x ]]; then
+ openssl_cflags=[-I${openssl_prefix}/include]
+ openssl_libs=["-L${openssl_prefix}/lib -L${openssl_prefix} -lcrypto -lssl"]
+ openssl_setup=yes
+ AC_MSG_RESULT( [User specified --with-openssl-prefix])
+ dnl Check if the developer has the pkg-config macros
+ dnl for the autotools on their system
+ ifdef([PKG_CHECK_MODULES],
+ [
+ else dnl else of prefix...
+ dnl If so, we can check if the target system has
+ dnl (1) pkg-config support installed as well, and
+ dnl (2) has openssl 0.9.7 or greater installed
+ AC_CHECK_PROG( HAS_PKGCONF, pkg-config, yes, [] , $PATH)
+ if [[ x${HAS_PKGCONF} != x ]]; then
+ PKG_CHECK_MODULES( OPENSSL,openssl >= 0.9.7, [
+ AC_MSG_RESULT(
+ [openssl 0.9.7 or greater found via pkgconfig]
+ )
+ openssl_cflags=$OPENSSL_CFLAGS
+ openssl_libs=$OPENSSL_LIBS
+ openssl_setup=yes
+ fi
+ ],
+ [
+ AC_MSG_RESULT( [good openssl not found via pkgconfig])
+ ]
+ ) dnl End of PKG_CHECK macro
+
+ ],
+ [
+ ## Skipping pkg-config macros...
+ ]
+ )dnl End of check using pkg-config...
+
+ fi dnl End of prefix block
+
+
+ if [[ x${openssl_setup} != xyes ]]; then
+ AC_MSG_RESULT( [Assuming reasonable defaults for openssl...])
+ openssl_setup=yes
+ fi
+
+ dnl Export our openssl build settings
+ AC_SUBST(openssl_cflags)
+ AC_SUBST(openssl_libs)
+
+ ## End of OpenSSL build settings section ##
+
AM_CONDITIONAL(OPENSSL_PREFIX, test x$openssl_prefix != x )
dnl OpenSSL Engine Support
diff -ur scep/src/Makefile.am scep-new/src/Makefile.am
--- scep/src/Makefile.am 2004-01-07 23:21:36.000000000 -0800
+++ scep-new/src/Makefile.am 2004-01-17 22:13:53.000000000 -0800
@@ -55,8 +55,7 @@
scep_msg.c \
scep.c
-openca_scep_LDADD = $(OPENSSL_INCLUDE_LIBS) $(OPENSSL_LIBS) \
- $(INCLUDE_LIBS)
+openca_scep_LDADD = $(OPENSSL_LIBS) $(INCLUDE_LIBS)
