Philipp Marek | 1 May 17:59

Re: FSVS 1.1.7 and up: apr_md5.h: No such file or directory (CentOS 5)

Hello Benjamin!

On Thursday 01 May 2008 Benjamin M. wrote:
...
> $ /usr/local/apr/bin/apr-1-config --includedir
> /usr/local/apr-1.2.12/include/apr-1
So your apr installation says that this directory has the header files; that's 
what's written in the Makefile, too:
	CFLAGS	:= -g -O2 ... -idirafter /usr/local/apr-1.2.12/include/apr-1

Why does your apr installation lie to you? You've got the header files 
in "/usr/local/apr-util-1.2.12/include/apr-1/apr_md5.h" - that's too deep, by 
the two levels "include/apr-1".

If I do the same for debian I get
	# apr-1-config --includedir
	/usr/include/apr-1.0
	# ls  /usr/include/apr-1.0/
	apr_allocator.h  apr_file_info.h     apr_ldap_init.h
	...

But I see: you said 
> $ which apr-1-config
> /usr/local/bin/apr-1-config
ie. your apr-1-config is found in $PATH in /usr/local/bin, but you ask another 
instance:

> $ /usr/local/apr/bin/apr-1-config --includedir
> /usr/local/apr-1.2.12/include/apr-1
You've got more than a single installation of apr - and that seems to give you 
(Continue reading)

Benjamin M. | 1 May 21:09

Re: FSVS 1.1.7 and up: apr_md5.h: No such file or directory (CentOS 5)

Hi Phil,

Philipp Marek wrote, On 01/05/08 11:59:
> If that all fails, just change the line in the Makefile (correct path) - then 
> it should compile.
>
>   
After completely reinstalling apr/apr-util no more configure error. Oh 
well...
> BTW: Why are you using 1.1.7 and nothing current?
>   
I hadn't updated fsvs for months so when I tried 1.1.15 and got an error 
I started looking for the last release with configure working (1.1.6) ...

1.1.15 doesn't compile (below the error) but 1.1.14 and the last trunk 
revision do...

Attached some run-tests errors under CentOS 5 with r1658 (trunk). In 
some cases I (can) have to delete /tmp/fsvs-test-0 to reproduce the errors..

Otherwise I will try to find out what going wrong under CentOS 4.4. fsvs 
compiles with some warnings but I get weird errors on make run-tests . 
It perhaps related to recent subversion updates ...

Ben.

~~~~~~~~~~~~~~~~~
make on 1.1.15
~~~~~~~~~~~~~~~~~

(Continue reading)

Philipp Marek | 2 May 20:54

Re: FSVS 1.1.7 and up: apr_md5.h: No such file or directory (CentOS 5)

Hello Ben!

On Thursday 01 May 2008 Benjamin M. wrote:
> After completely reinstalling apr/apr-util no more configure error. Oh
> well...
Ok. But looking at that below I don't think that all apr problems are resolved 
yet.

> Attached some run-tests errors under CentOS 5 with r1658 (trunk). In
> some cases I (can) have to delete /tmp/fsvs-test-0 to reproduce the
> errors..
>
> Otherwise I will try to find out what going wrong under CentOS 4.4. fsvs
> compiles with some warnings but I get weird errors on make run-tests .
> It perhaps related to recent subversion updates ...
Short question - have you thought about going the "easy" way and just using 
the chroot helper and a chroot environment?
I know that it's not the best solution - but I'm using that on some machines 
that I can't update (because they're still running linux 2.4), and it 
works ...
http://fsvs.tigris.org/source/browse/*checkout*/fsvs/trunk/www/doxygen/html/group__howto__chroot.html

If you like I could send you a debian-based chroot (or I could put it for 
download even), so most of the work would be done ...
You'd only have to compile the chrooter itself.

I'm using i686 and amd64 - is that enough for you?
If not I could take a look which packages the files are from - then you could 
simply extract the needed packages from debian, and be done ...

(Continue reading)

Benjamin M. | 2 May 21:08

Re: FSVS 1.1.7 and up: apr_md5.h: No such file or directory (CentOS 5)

Philipp Marek wrote, On 02/05/08 14:54:
Attached some run-tests errors under CentOS 5 with r1658 (trunk). In some cases I (can) have to delete /tmp/fsvs-test-0 to reproduce the errors.. Otherwise I will try to find out what going wrong under CentOS 4.4. fsvs compiles with some warnings but I get weird errors on make run-tests . It perhaps related to recent subversion updates ...
Short question - have you thought about going the "easy" way and just using the chroot helper and a chroot environment? I know that it's not the best solution - but I'm using that on some machines that I can't update (because they're still running linux 2.4), and it works ... http://fsvs.tigris.org/source/browse/*checkout*/fsvs/trunk/www/doxygen/html/group__howto__chroot.html If you like I could send you a debian-based chroot (or I could put it for download even), so most of the work would be done ... You'd only have to compile the chrooter itself. I'm using i686 and amd64 - is that enough for you? If not I could take a look which packages the files are from - then you could simply extract the needed packages from debian, and be done ...
Will have to read that ...  BTW CentOS 4.4 runs kernel 2.6.9...
In file included from /usr/local/apr-1.2.12/include/apr-1/apr_file_io.h:29, from global.h:20, from ac_list.c:9: /usr/local/apr-1.2.12/include/apr-1/apr_file_info.h:200: error: expected specifier-qualifier-list before ‘apr_ino_t’
... This sounds like an apr install problem again - apr_file_info.h gives an error. It seems that apr_ino_t is not defined. I have it in /usr/include/apr-1.0/apr.h:275; maybe one of the #ifdef goes wrong for you?
There is the following comment in /usr/local/apr-1.2.12/include/apr-1/apr.h. Can it be the explanation?

/* As we don't want to break users who author for 1.2.x, we can't
 * present this type until they have included apr_file_info.h
 * where it was originally declared in release 1.2.0.
 * Mask it from accedental misuse here.
 */
#define apr_ino_t apr_ino_t__requires__apr_file_info_h


$ make run-tests make -C ../tests BINARY=/usr/src/fsvs-trunk-2/src/fsvs Preparing default repository. make[5]: *** [prepare_wc] Error 1 make[5]: *** [prepare_wc] Error 1 make[4]: *** [prepare_wcs] Error 2 make[3]: *** [prepare_clean] Error 2 make[2]: *** [/tmp/fsvs-test-0/default-repos.dump] Error 2 make[1]: *** [run-tests] Error 2 make: *** [run-tests] Error 2
I'd assume that means that prepare_wc gives an error - but why? Please try this: touch /tmp/fsvs-test-0/default-repos.dump make run-tests TEST_LIST=001* VERBOSE=1

#  touch /tmp/fsvs-test-0/default-repos.dump
# make run-tests TEST_LIST=001* VERBOSE=1
make -C ../tests BINARY=/usr/src/fsvs-1.1.7/src/fsvs
Running tests...

_______________________________________________________
  "001_init_dir":1: (Fri May 2 15:04:49 EDT 2008)
+ set -e
+ make -s -C /usr/src/fsvs-1.1.7/tests prepare_clean
rm: cannot remove `/tmp/fsvs-test-0/waa/e4/79/8deec02e0e6ad5c46340b8c3ec09//*': No such file or directory
rm: cannot remove `/tmp/fsvs-test-0/conf/e4798deec02e0e6ad5c46340b8c3ec09//*': No such file or directory


An error occurred at 15:04:50.694: Unknown resolver error (6490552)
  in main
make[5]: *** [prepare_wc] Error 1
rm: cannot remove `/tmp/fsvs-test-0/waa/b7/b4/33516382a18f545c01dce608138a//*': No such file or directory
rm: cannot remove `/tmp/fsvs-test-0/conf/b7b433516382a18f545c01dce608138a//*': No such file or directory


An error occurred at 15:04:51.011: Unknown resolver error (6490552)
  in main
make[5]: *** [prepare_wc] Error 1
make[4]: *** [prepare_wcs] Error 2
make[3]: *** [prepare_clean] Error 2
----++---- /usr/src/fsvs-1.1.7/tests/001_init_dir failed ----++----
make[2]: *** [run_tests] Error 1
make[1]: *** [run-tests] Error 2
make: *** [run-tests] Error 2

More to follow...

Ben.


Philipp Marek | 2 May 21:18

Re: FSVS 1.1.7 and up: apr_md5.h: No such file or directory (CentOS 5)

On Friday 02 May 2008 Benjamin M. wrote:
> >> In file included from
> >> /usr/local/apr-1.2.12/include/apr-1/apr_file_io.h:29, from global.h:20,
> >>                  from ac_list.c:9:
> >> /usr/local/apr-1.2.12/include/apr-1/apr_file_info.h:200: error: expected
> >> specifier-qualifier-list before ‘apr_ino_t’
> >
> > ...
> > This sounds like an apr install problem again - apr_file_info.h gives an
> > error.
> > It seems that apr_ino_t is not defined. I have it
> > in /usr/include/apr-1.0/apr.h:275; maybe one of the #ifdef goes wrong for
> > you?
>
> There is the following comment in
> /usr/local/apr-1.2.12/include/apr-1/apr.h. Can it be the explanation?
>
> /* As we don't want to break users who author for 1.2.x, we can't
>  * present this type until they have included apr_file_info.h
>  * where it was originally declared in release 1.2.0.
>  * Mask it from accedental misuse here.
>  */
> #define apr_ino_t apr_ino_t__requires__apr_file_info_h
That's interesting ... I have 1.2.12-2 too, but:
	/* See apr.h.in (.hw or .hnw) for the declaration of apr_ino_t,
	 * but as we don't want to break users who author for 1.2.x, we
	 * can't present this type until they have included apr_file_info.h
	 * where it was originally declared in release 1.2.0.
	 * Unmask it for use here.
	 */
	#undef apr_ino_t

> #  touch /tmp/fsvs-test-0/default-repos.dump
> # make run-tests TEST_LIST=001* VERBOSE=1
> make -C ../tests BINARY=/usr/src/fsvs-1.1.7/src/fsvs
> Running tests...
...
> An error occurred at 15:04:50.694: Unknown resolver error (6490552)
>   in main
What's that?

Please try that:
	cd /tmp/fsvs-test-0
	echo file:/// | /usr/src/fsvs-1.1.7/src/fsvs urls load -d -v

Interesting, interesting ...
TBH - I'm starting to think about this:
	http://tomayko.com/writings/that-dilbert-cartoon :-)

> More to follow...
I thought so ... ;-)

--

-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!
Benjamin M. | 2 May 21:49

Re: FSVS 1.1.7 and up: apr_md5.h: No such file or directory (CentOS 5)

Philipp Marek wrote, On 02/05/08 15:18:
On Friday 02 May 2008 Benjamin M. wrote:
In file included from /usr/local/apr-1.2.12/include/apr-1/apr_file_io.h:29, from global.h:20, from ac_list.c:9: /usr/local/apr-1.2.12/include/apr-1/apr_file_info.h:200: error: expected specifier-qualifier-list before ‘apr_ino_t’
... This sounds like an apr install problem again - apr_file_info.h gives an error. It seems that apr_ino_t is not defined. I have it in /usr/include/apr-1.0/apr.h:275; maybe one of the #ifdef goes wrong for you?
There is the following comment in /usr/local/apr-1.2.12/include/apr-1/apr.h. Can it be the explanation? /* As we don't want to break users who author for 1.2.x, we can't * present this type until they have included apr_file_info.h * where it was originally declared in release 1.2.0. * Mask it from accedental misuse here. */ #define apr_ino_t apr_ino_t__requires__apr_file_info_h
That's interesting ... I have 1.2.12-2 too, but: /* See apr.h.in (.hw or .hnw) for the declaration of apr_ino_t, * but as we don't want to break users who author for 1.2.x, we * can't present this type until they have included apr_file_info.h * where it was originally declared in release 1.2.0. * Unmask it for use here. */ #undef apr_ino_t
The was built from src:
http://apache.mirror.rafal.ca/apr/apr-1.2.12.tar.bz2
http://apache.mirror.rafal.ca/apr/apr-util-1.2.12.tar.bz2

Not sure of the implication... Perhaps I could try with the source code of 1.2.12-2 ..?
# touch /tmp/fsvs-test-0/default-repos.dump # make run-tests TEST_LIST=001* VERBOSE=1 make -C ../tests BINARY=/usr/src/fsvs-1.1.7/src/fsvs Running tests...
...
An error occurred at 15:04:50.694: Unknown resolver error (6490552) in main
What's that? Please try that: cd /tmp/fsvs-test-0 echo file:/// | /usr/src/fsvs-1.1.7/src/fsvs urls load -d -v
Ok... we are making so progress... Could it be related to some var exportation failing since previously those weren't required to exist to run the run-tests...

/var/spool/fsvs
/etc/fsvs

~~~~~~~~~~~~~~~~~~~~~~~~~
/var/spool/fsvs and /etc/fsvs missing
~~~~~~~~~~~~~~~~~~~~~~~~~

# cd /tmp/fsvs-test-0
# echo file:/// | /usr/src/fsvs-1.1.7/src/fsvs urls load -d -v
15:26:00.246 main[fsvs.c:755] no argument at optind=5 of 5
15:26:00.247 main[fsvs.c:875] LC_ALL gives en_US.UTF-8
15:26:00.247 main[fsvs.c:882] LC_CTYPE gives en_US.UTF-8
15:26:00.247 main[fsvs.c:893] codeset found to be UTF-8
15:26:00.248 main[fsvs.c:901] codeset: using identity
15:26:00.248 main[fsvs.c:926] optind=2 per_sts=136 action=urls rec=1
15:26:00.248 main[fsvs.c:929] argument 1: urls
15:26:00.248 main[fsvs.c:929] argument 2: load
15:26:00.248 main[fsvs.c:938] filter has mask 0xFFFFFFFF (new, removed, changed, owner, group, mtime, umode, props, child, likely)


An error occurred at 15:26:00.260: No such file or directory (2)
  in waa__init [waa.c:176]: stat() of waa-path '/var/spool/fsvs' failed. Does your local storage area exist?
  in main [fsvs.c:941]
15:26:00.262 main[fsvs.c:981] memory stats: 0x86b5000 to 0x86d6000, 132 KB

~~~~~~~~~~~~~~~~~~~~~~~~~
With /var/spool/fsvs:
~~~~~~~~~~~~~~~~~~~~~~~~~

# cd /tmp/fsvs-test-0
# echo file:/// | /usr/src/fsvs-1.1.7/src/fsvs urls load -d -v
15:40:23.770 main[fsvs.c:755] no argument at optind=5 of 5
15:40:23.771 main[fsvs.c:875] LC_ALL gives en_US.UTF-8
15:40:23.771 main[fsvs.c:882] LC_CTYPE gives en_US.UTF-8
15:40:23.771 main[fsvs.c:893] codeset found to be UTF-8
15:40:23.771 main[fsvs.c:901] codeset: using identity
15:40:23.771 main[fsvs.c:926] optind=2 per_sts=136 action=urls rec=1
15:40:23.771 main[fsvs.c:929] argument 1: urls
15:40:23.771 main[fsvs.c:929] argument 2: load
15:40:23.772 main[fsvs.c:938] filter has mask 0xFFFFFFFF (new, removed, changed, owner, group, mtime, umode, props, child, likely)
15:40:23.772 waa__init[waa.c:189] using 64 bytes for temporary WAA+conf paths
15:40:23.772 ign__new_pattern[ignore.c:1114] getting 1 new entries - max is 0, used are 0
15:40:23.772 ign__new_pattern[ignore.c:1173] new pattern INODE:253:6:393257
15:40:23.772 ign___init_pattern_into[ignore.c:637] pattern:  case, ignore
15:40:23.773 opt__load_settings[options.c:287] reading settings from /etc/fsvs/config, with prio 1
15:40:23.781 hlp__string_from_filep[helper.c:695] read string file:///
15:40:23.781 urls__work[url.c:1046] parsing file:/// into 0
15:40:23.781 url__parse[url.c:309] input: file:///
15:40:23.781 url__parse[url.c:334] cur=file:/// value=/// vlen=3 nlen=5
15:40:23.781 url__parse[url.c:390] known protocol found
15:40:23.781 url__find_by_url[url.c:239] url with url file:/// not found!
15:40:23.781 urls__work[url.c:1048] had=0
1 URL loaded.
15:40:23.782 url___set_internal_nums[url.c:573] inum for file:/// is -1
15:40:23.782 url___set_internal_nums[url.c:579] found a free bit for file:///: 1
15:40:23.782 waa__get_waa_directory[waa.c:291] path is /tmp/fsvs-test-0
15:40:23.782 waa__get_waa_directory[waa.c:336] md5 of /tmp/fsvs-test-0


An error occurred at 15:40:23.783: No such file or directory (2)
  in waa__mkdir [waa.c:252]: cannot mkdir(/etc/fsvs/45cd816f7e1dd0ec022ee493d55d02d3)
  in waa__get_waa_directory [waa.c:375]
  in waa__open [waa.c:425]
  in url__output_list [url.c:779]
  in urls__work [url.c:1092]
  in main [fsvs.c:970]: action urls failed
15:40:23.787 main[fsvs.c:981] memory stats: 0xa01d000 to 0xa03e000, 132 KB

~~~~~~~~~~~~~~~~~~~~~~~~~
With /var/spool/fsvs and /etc/fsvs/:
~~~~~~~~~~~~~~~~~~~~~~~~~

# echo file:/// | /usr/src/fsvs-1.1.7/src/fsvs urls load -d -v
15:43:56.217 main[fsvs.c:755] no argument at optind=5 of 5
15:43:56.217 main[fsvs.c:875] LC_ALL gives en_US.UTF-8
15:43:56.217 main[fsvs.c:882] LC_CTYPE gives en_US.UTF-8
15:43:56.217 main[fsvs.c:893] codeset found to be UTF-8
15:43:56.217 main[fsvs.c:901] codeset: using identity
15:43:56.217 main[fsvs.c:926] optind=2 per_sts=136 action=urls rec=1
15:43:56.217 main[fsvs.c:929] argument 1: urls
15:43:56.217 main[fsvs.c:929] argument 2: load
15:43:56.217 main[fsvs.c:938] filter has mask 0xFFFFFFFF (new, removed, changed, owner, group, mtime, umode, props, child, likely)
15:43:56.217 waa__init[waa.c:189] using 58 bytes for temporary WAA+conf paths
15:43:56.217 ign__new_pattern[ignore.c:1114] getting 1 new entries - max is 0, used are 0
15:43:56.218 ign__new_pattern[ignore.c:1173] new pattern INODE:253:4:49156
15:43:56.218 ign___init_pattern_into[ignore.c:637] pattern:  case, ignore
15:43:56.218 opt__load_settings[options.c:287] reading settings from /etc/fsvs/config, with prio 1
15:43:56.218 hlp__string_from_filep[helper.c:695] read string file:///
15:43:56.218 urls__work[url.c:1046] parsing file:/// into 0
15:43:56.218 url__parse[url.c:309] input: file:///
15:43:56.218 url__parse[url.c:334] cur=file:/// value=/// vlen=3 nlen=5
15:43:56.218 url__parse[url.c:390] known protocol found
15:43:56.218 url__find_by_url[url.c:239] url with url file:/// not found!
15:43:56.218 urls__work[url.c:1048] had=0
1 URL loaded.
15:43:56.218 url___set_internal_nums[url.c:573] inum for file:/// is -1
15:43:56.218 url___set_internal_nums[url.c:579] found a free bit for file:///: 1
15:43:56.218 waa__get_waa_directory[waa.c:291] path is /tmp/fsvs-test-0
15:43:56.218 waa__get_waa_directory[waa.c:336] md5 of /tmp/fsvs-test-0
15:43:56.219 waa__get_waa_directory[waa.c:382] returning /etc/fsvs/45cd816f7e1dd0ec022ee493d55d02d3/
15:43:56.219 waa__open[waa.c:442] tmp for target /etc/fsvs/45cd816f7e1dd0ec022ee493d55d02d3/Urls is /etc/fsvs/45cd816f7e1dd0ec022ee493d55d02d3/Urls.tmp
15:43:56.219 waa__open[waa.c:458] got fh 3
15:43:56.219 waa__open[waa.c:470] reallocate target name array to 5
15:43:56.219 url__output_list[url.c:803] writing line 1 0 T:-1,N:,P:0,file:///
15:43:56.219 waa__close[waa.c:517] filehandle 3 should be /etc/fsvs/45cd816f7e1dd0ec022ee493d55d02d3/Urls
15:43:56.219 waa__get_waa_directory[waa.c:291] path is /tmp/fsvs-test-0
15:43:56.220 waa__get_waa_directory[waa.c:336] md5 of /tmp/fsvs-test-0
15:43:56.220 waa__get_waa_directory[waa.c:382] returning /etc/fsvs/45cd816f7e1dd0ec022ee493d55d02d3/
15:43:56.220 wa__summary[warnings.c:235] 0# meta-mtime: 0x
15:43:56.220 wa__summary[warnings.c:235] 1# meta-user: 0x
15:43:56.220 wa__summary[warnings.c:235] 2# meta-group: 0x
15:43:56.220 wa__summary[warnings.c:235] 3# meta-umask: 0x
15:43:56.220 wa__summary[warnings.c:235] 4# no-urllist: 0x
15:43:56.220 wa__summary[warnings.c:235] 5# charset-invalid: 0x
15:43:56.220 wa__summary[warnings.c:235] 6# chmod-eperm: 0x
15:43:56.220 wa__summary[warnings.c:235] 7# chmod-other: 0x
15:43:56.220 wa__summary[warnings.c:235] 8# chown-eperm: 0x
15:43:56.220 wa__summary[warnings.c:235] 9# chown-other: 0x
15:43:56.220 wa__summary[warnings.c:235] 10# overlayed-entries: 0x
15:43:56.220 wa__summary[warnings.c:235] 11# propname-reserved: 0x
15:43:56.220 wa__summary[warnings.c:235] 12# mixed-rev-wc: 0x
15:43:56.220 wa__summary[warnings.c:235] 13# diff-status: 0x
15:43:56.220 wa__summary[warnings.c:235] 14# _test-warning: 0x
15:43:56.220 main[fsvs.c:981] memory stats: 0x965b000 to 0x967c000, 132 KB


Interesting, interesting ... TBH - I'm starting to think about this: http://tomayko.com/writings/that-dilbert-cartoon :-)
hmmm... I will have to pause and think about it...

More to follow...
I thought so ... ;-)
;-)

Ben.

Philipp Marek | 4 May 13:52

Re: FSVS 1.1.7 and up: apr_md5.h: No such file or directory (CentOS 5)

Hello Ben!

> > Please try that:
> > 	cd /tmp/fsvs-test-0
> > 	echo file:/// | /usr/src/fsvs-1.1.7/src/fsvs urls load -d -v
>
> Ok... we are making so progress... Could it be related to some var
> exportation failing since previously those weren't required to exist to
> run the run-tests...
>
> /var/spool/fsvs
> /etc/fsvs
...
> With /var/spool/fsvs and /etc/fsvs/:
Sorry, that was bad advice.
The tests run with 
	FSVS_WAA=/tmp/fsvs-test-0/waa
	FSVS_CONF=/tmp/fsvs-test-0/conf
and I forgot to mention that these should be set, so I can see a bit of detail 
about the "Unknown resolver error (6490552)".

Could you please 
- run "make run-tests" (and get an error, but have directories initialized),
- set these two environment variables, and do
- cd /tmp/fsvs-test-0
- echo file:/// | /usr/src/fsvs-1.1.7/src/fsvs urls load -d -v

and send me the output?

Thank you very much.

Regards,

Phil

--

-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

Gmane