Login | Register
My pages Projects Community openCollabNet

Discussions > users > Unable to compile fsvs

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

Re: Unable to compile fsvs

Author Thomas Harold <tgh at tgharold dot com>
Full name Thomas Harold <tgh at tgharold dot com>
Date 2007-06-25 13:20:58 PDT
Message Worley, Chris B wrote:
> I've got all the packages.

Yes, after sending that and re-reading your message again, I suspected I
wasn't on the right scent.

> There was one error in the Makefile, and a bunch of missing include and
> libs that needed referenced, and I was able to compile it.

Interesting - on CentOS5 (and probably RHEL5?), some include files like
"pcre.h" are in /usr/include. Others like "gdbm.h" was a symlink to
gdbm/gdbm.h. I haven't used older versions of Red Hat based Linux.

RE: Unable to compile fsvs

Author "Worley, Chris B" <chris dot b dot worley at intel dot com>
Full name "Worley, Chris B" <chris dot b dot worley at intel dot com>
Date 2007-06-25 12:46:15 PDT
Message I've got all the packages.

There was one error in the Makefile, and a bunch of missing include and
libs that needed referenced, and I was able to compile it.

The error was:

I replaced:

INCS := $(foreach dir, $(INCDIRS), -idirafter $(dir))

...with:

INCS := $(foreach dir, $(INCDIRS), -I$(dir))

The missing headers/libraries were solved with:

INCDIRS := /usr/include/pcre/ /usr/include/gdbm/ /usr/local/include
/usr/include /openpkg/include /usr/local/include/
/usr/local/apr/include/apr-0/
...
FSVS_LDFLAGS = $(LDFLAGS) -L/usr/local/lib -lsvn_subr-1 -lsvn_ra-1
-lsvn_client-1 -lsvn_delta-1 -L/usr/lib64 -lpcre -lgdbm
-L/usr/local/apr/lib -lapr-0 -laprutil-0 -L/usr/local/lib -lsvn_ra-1
-lsvn_client-1 -lsvn_ra-1 -L/usr/local/lib -lsvn_ra-1
...
        $(CC) $(LDLIBS) $(FSVS_LDFLAGS) -o $@ $^ -L/usr/local/lib
-lsvn_ra-1 -lsvn_client-1 -lsvn_ra-1 -lsvn_ra_dav-1 -lsvn_ra_local-1
-lsvn_ra_svn-1 -lneon

>-----Original Message-----
>From: Thomas Harold [mailto:tgh at tgharold dot com]
>Sent: Monday, June 25, 2007 1:40 PM
>To: users at fsvs dot tigris dot org
>Cc: Worley, Chris B
>Subject: Re: Unable to compile fsvs
>
>Worley, Chris B wrote:
>> The fsvs README says just run "make" (after cd'ing to src). That
didn't
>> work, so I ran "./configure"... same issues... can't find header
files.
>> It looks like I need to hook it into the subversion source tree, so I
>> tried some CFLAGS w/ "-I" to subversion directories... still no joy.
>>
>> Any ideas?
>>
>> This is an RHEL4U4 distro. Subversion built and installed w/o error.
>
>Looks like you're missing some packages. Here's the note from my blog
>about installing on CentOS5 - I'd assume that it will (mostly) apply to
>RHEL4.
>
>In order for the install to succeed, you must have installed the
>"subversion", "subversion-devel" "apr", "apr-devel", "gcc" and "ctags"
>packages. Two others that you need are "gdbm" and "pcre" (and the
>associated developer packages). There may be other dependencies that
>will also be installed that are required by those packages. The
>following command worked for me on CentOS5:
>
># yum install subversion subversion-devel ctags apr apr-devel gcc gdbm
>gdbm-devel pcre pcre-devel

Re: Unable to compile fsvs

Author Thomas Harold <tgh at tgharold dot com>
Full name Thomas Harold <tgh at tgharold dot com>
Date 2007-06-25 12:40:25 PDT
Message Worley, Chris B wrote:
> The fsvs README says just run "make" (after cd'ing to src). That didn't
> work, so I ran "./configure"... same issues... can't find header files.
> It looks like I need to hook it into the subversion source tree, so I
> tried some CFLAGS w/ "-I" to subversion directories... still no joy.
>
> Any ideas?
>
> This is an RHEL4U4 distro. Subversion built and installed w/o error.

Looks like you're missing some packages. Here's the note from my blog
about installing on CentOS5 - I'd assume that it will (mostly) apply to
RHEL4.

In order for the install to succeed, you must have installed the
"subversion", "subversion-devel" "apr", "apr-devel", "gcc" and "ctags"
packages. Two others that you need are "gdbm" and "pcre" (and the
associated developer packages). There may be other dependencies that
will also be installed that are required by those packages. The
following command worked for me on CentOS5:

# yum install subversion subversion-devel ctags apr apr-devel gcc gdbm
gdbm-devel pcre pcre-devel

Unable to compile fsvs

Author "Worley, Chris B" <chris dot b dot worley at intel dot com>
Full name "Worley, Chris B" <chris dot b dot worley at intel dot com>
Date 2007-06-25 11:24:50 PDT
Message The fsvs README says just run "make" (after cd'ing to src). That didn't
work, so I ran "./configure"... same issues... can't find header files.
It looks like I need to hook it into the subversion source tree, so I
tried some CFLAGS w/ "-I" to subversion directories... still no joy.

Any ideas?

This is an RHEL4U4 distro. Subversion built and installed w/o error.

[root@challenger src]# ./configure --enable-debug
configure: *** Now configuring FSVS fsvs-1.1.5:900 ***
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
checking for pcre_compile in -lpcre... yes
checking for apr_md5_init in -lapr... no
checking for svn_ra_initialize in -lsvn_ra... no
checking for gdbm_firstkey in -lgdbm... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking apr_md5.h usability... no
checking apr_md5.h presence... no
checking for apr_md5.h... no
checking svn_md5.h usability... no
checking svn_md5.h presence... no
checking for svn_md5.h... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct stat.st_mtim... yes
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
configure: WARNING: Sorry, can't find valgrind headers.
checking linux/kdev_t.h usability... yes
checking linux/kdev_t.h presence... yes
checking for linux/kdev_t.h... yes
checking for getdents64... no
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking linux/unistd.h usability... yes
checking linux/unistd.h presence... yes
checking for linux/unistd.h... yes
checking for comparison_fn_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for struct stat.st_rdev... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint32_t... yes
checking for uint64_t... yes
checking for uid_t in sys/types.h... yes
checking for unistd.h... (cached) yes
checking for working chown... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for fchdir... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for rmdir... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strtoul... yes
checking for strtoull... yes
checking for alphasort... yes
checking for dirfd... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating test/Makefile
config.status: creating config.h
[root@challenger src]# make
Makefile:128: .ac_list.d: No such file or directory
Makefile:128: .actions.d: No such file or directory
Makefile:128: .add_unvers.d: No such file or directory
Makefile:128: .build.d: No such file or directory
Makefile:128: .cache.d: No such file or directory
Makefile:128: .checksum.d: No such file or directory
Makefile:128: .commit.d: No such file or directory
Makefile:128: .diff.d: No such file or directory
Makefile:128: .direnum.d: No such file or directory
Makefile:128: .est_ops.d: No such file or directory
Makefile:128: .export.d: No such file or directory
Makefile:128: .fsvs.d: No such file or directory
Makefile:128: .helper.d: No such file or directory
Makefile:128: .ignore.d: No such file or directory
Makefile:128: .info.d: No such file or directory
cc -idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -MM -MF .info.d info.c
In file included from info.c:57:
global.h:19:21: apr_md5.h: No such file or directory
global.h:20:25: apr_file_io.h: No such file or directory
global.h:21:33: subversion-1/svn_ra.h: No such file or directory
global.h:22:37: subversion-1/svn_string.h: No such file or directory
global.h:23:18: pcre.h: No such file or directory
make: *** [.info.d] Error 1
[root@challenger src]# echo $CFLAGS
-I/home/install/subv​ersion-1.4.4/subvers​ion/include/
-I/home/install/subv​ersion-1.4.4/apr/inc​lude/
-I/home/install/subv​ersion-1.4.4/apr-uti​l/include/
Messages per page: