Joe Orton wrote:
It should "just work". Otherwise:
- no need to run auto* in the spec file for apr-util if not including a bunch of configure.in patches ;)
- again add NOTICE to %doc and remove the history from the %changelog
- %check can build and run testall
- %files needs to be adjust for apr-util-1.pc
I have applied the above changes and committed the spec file.
The rpm build bombs out like so however:
/bin/sh /usr/lib/apr/build/libtool --silent --mode=link gcc -pthread -O2 -g -pipe -march=i386 -mcpu=i686 -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/src/redhat/BUILD/apr-util-1.0.0/include -I/usr/src/redhat/BUILD/apr-util-1.0.0/include/private -I/usr/include/apr-1 -version-info 0:0:0 -o testrmm -no-install testrmm.lo ../libaprutil-1.la -lldap -llber -ldb-4.1 /usr/lib/libexpat.la /usr/lib/libapr-1.la -lrt -lcrypt -lpthread -ldllibtool: link: warning: `-version-info' is ignored for programs
gcc -O2 -g -pipe -march=i386 -mcpu=i686 teststrmatch.c -o teststrmatch
In file included from teststrmatch.c:16:
testutil.h:16:23: apr_pools.h: No such file or directory
In file included from teststrmatch.c:16:
testutil.h:37: syntax error before '*' token
testutil.h:37: warning: data definition has no type or storage class
testutil.h:41: syntax error before "apr_status_t"
teststrmatch.c:18:17: apr.h: No such file or directory
teststrmatch.c:19:25: apr_general.h: No such file or directory
teststrmatch.c:20:26: apr_strmatch.h: No such file or directory
teststrmatch.c:26:22: apr_want.h: No such file or directory
apr-devel is installed and the file apr_pools.h can be found at /usr/include/apr-1.
In the file ./test/teststrmatch.c the headers are defined as:
#include "apr.h" #include "apr_general.h" #include "apr_strmatch.h"
Should they not be
#include <apr.h> [etc]
Regards, Graham --
smime.p7s
Description: S/MIME Cryptographic Signature
