Hello all,

I was having a heck of a time building/installing fsvs on CentOS 4.5.  I
have a solution, but I'm not sure it's the right one so I'd like to discuss
it here.

At first, when running 'configure', I would get this output:

configure: ***  Now configuring FSVS   ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
configure: "CFLAGS=-g -O2 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -idirafter
/usr/local/include -idirafter /usr/include -idirafter /openpkg/include
-idirafte"
configure: "LDFLAGS= -L/usr/local/lib -L/openpkg/lib"
checking for pcre_compile in -lpcre... yes
checking for apr_md5_init in -laprutil-1... no
configure: error: Sorry, can't find APR.
See `config.log' for more details.

So we're looking for aprutil-l, where I only have aprutil-0:
# rpm -ql apr-util
/usr/lib/libaprutil-0.so.0
/usr/lib/libaprutil-0.so.0.9.4
/usr/share/doc/apr-util-0.9.4
/usr/share/doc/apr-util-0.9.4/CHANGES
/usr/share/doc/apr-util-0.9.4/LICENSE
# ll /usr/lib/libapr*
-rw-r--r--  1 root root 195824 Aug 13  2006 /usr/lib/libapr-0.a
-rw-r--r--  1 root root    823 Aug 13  2006 /usr/lib/libapr-0.la
lrwxrwxrwx  1 root root     17 Oct  4 10:20 /usr/lib/libapr-0.so ->
libapr-0.so.0.9.4
lrwxrwxrwx  1 root root     17 Oct  4 10:20 /usr/lib/libapr-0.so.0 ->
libapr-0.so.0.9.4
-rwxr-xr-x  1 root root 138260 Aug 13  2006 /usr/lib/libapr-0.so.0.9.4
-rw-r--r--  1 root root 115716 Aug 23  2005 /usr/lib/libaprutil-0.a
-rw-r--r--  1 root root    929 Aug 23  2005 /usr/lib/libaprutil-0.la
lrwxrwxrwx  1 root root     21 Jul 12 12:13 /usr/lib/libaprutil-0.so ->
libaprutil-0.so.0.9.4
lrwxrwxrwx  1 root root     21 Jul 12 12:12 /usr/lib/libaprutil-0.so.0 ->
libaprutil-0.so.0.9.4
-rwxr-xr-x  1 root root  81236 Aug 23  2005 /usr/lib/libaprutil-0.so.0.9.4

What the heck, so I said 's/aprutil-1/aprutil-0/g' and then configure
suceeds!  w00t!
However, now 'make' doesn't play nice:
<snip>
In file included from ac_list.c:9:
global.h:23:18: pcre.h: No such file or directory
In file included from ac_list.c:9:
global.h:94: error: syntax error before "pcre"
global.h:94: warning: no semicolon at end of struct or union
global.h:94: warning: no semicolon at end of struct or union
global.h:94: warning: no semicolon at end of struct or union
global.h:96: warning: type defaults to `int' in declaration of `extra'
global.h:96: warning: data definition has no type or storage class
global.h:111: error: syntax error before ':' token
global.h:125: warning: unnamed struct/union that defines no instances
global.h:133: warning: unnamed struct/union that defines no instances
global.h:134: error: syntax error before '}' token
global.h:138: error: syntax error before ':' token
global.h:140: error: syntax error before ':' token
global.h:143: error: syntax error before ':' token
global.h:147: error: syntax error before '}' token
make[1]: *** [ac_list.o] Error 1
make: *** [default-target] Error 2

I did a little digging and found that 'src/global.h' and 'src/ignore.c' try
to '#include <pcre.h>' which fails.  Ah, but '#include <pcre/pcre.h>' works
without the giant fail!  Those two changes are then made.

So at this point I'm able to build fsvs, although I wonder how well it will
work (I even have an RPM spec file written with loads of ugly if anyone's
interested).  It seems to run ok, but I haven't done much with it yet.

I'm hoping someone can take my hackery and make it suck less.  Thanks!

--BO

Reply via email to