Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: fsvs & openbsd

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

Re: fsvs & openbsd

Author Julien TOUCHE <julien dot touche at lycos dot com>
Full name Julien TOUCHE <julien dot touche at lycos dot com>
Date 2006-11-18 00:25:28 PST
Message Philipp Marek wrote on 17/11/2006 19:50:
> Could you please update and try? Should work now, conditionalized on existence
> of "locale".

$ svn update
[...]
Updated to revision 515.
$ AUTOCONF_VERSION=2.60 autoconf
$ (CFLAGS="-I/usr/local/include -I/usr/local/include/apr-1
-I/usr/local/include​/subversion-1" LDFLAGS="-L/usr/local/lib
-L/usr/local/lib/apr-1" ./configure && CFLAGS="-I/usr/local/include
-I/usr/local/include/apr-1 -I/usr/local/include​/subversion-1"
LDFLAGS="-L/usr/local/lib -L/usr/local/lib/apr-1" gmake) 2>&1 |tee
build.log11

compile ok but need to update tests script with jot & md5 if uname -s =
OpenBSD


Regards

        Julien

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-11-17 10:50:23 PST
Message On Friday 17 November 2006 17:33 Julien TOUCHE wrote:
> it seems to work (see joined file)
> congratulations :)
Could you please update and try? Should work now, conditionalized on existence
of "locale".


Regards,

Phil


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

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-11-17 09:00:16 PST
Message On Friday 17 November 2006 17:33 Julien TOUCHE wrote:
> Ph. Marek wrote on 17/11/2006 14:07:
> > Does this work for you?
>
> here the result:
...
> it seems to work (see joined file)
> congratulations :)
Could you send me a patch, preferably with some check around?
Using autoconf to differentiate would probably be best - set some variable in
test/Makefile to jot/seq and similar for md5 ...
Perhaps the easiest way is to define $SEQ and $MD5 in test/test_functions.

Pretty please?
Thank you!


Regards,

Phil

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

Re: fsvs &amp; openbsd

Author Julien TOUCHE <julien dot touche at lycos dot com>
Full name Julien TOUCHE <julien dot touche at lycos dot com>
Date 2006-11-17 08:33:59 PST
Message Ph. Marek wrote on 17/11/2006 14:07:
> Does this work for you?

here the result:

$ gmake
cc -idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/include/apr-1 -MM -MF .fsvs.d fsvs.c
ctags ac_list.c actions.c add_unvers.c build.c checksum.c commit.c
direnum.c est_ops.c export.c fsvs.c helper.c ignore.c info.c init.c
pwcache.c racallback.c remote.c status.c sync.c update.c waa.c
warnings.c actions.h add_unvers.h build.h checksum.h commit.h config.h
direnum.h est_ops.h export.h global.h helper.h ignore.h info.h init.h
interface.h pwcache.h racallback.h remote.h status.h sync.h update.h
waa.h warnings.h
Duplicate entry in file direnum.c, line 118: dir__start_enum
Second entry ignored
Duplicate entry in file direnum.c, line 131: dir__enum
Second entry ignored
Duplicate entry in file direnum.c, line 148: dir__close
Second entry ignored
Duplicate entry in file direnum.c, line 160: dir__get_dir_size
Second entry ignored
Duplicate entry in file global.h, line 286: DEBUGP
Second entry ignored
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/include/apr-1 -Os
-DFSVS_VERSION='"trunk:479"' -c -o fsvs.o fsvs.c
fsvs.c: In function `_DEBUGP':
fsvs.c:101: warning: passing arg 1 of `localtime' from incompatible
pointer type
fsvs.c: In function `_STOP':
fsvs.c:152: warning: passing arg 1 of `localtime' from incompatible
pointer type
cc -L/usr/local/lib -L/openpkg/lib -lsvn_subr-1 -lsvn_ra-1
-lsvn_client-1 -lpcre fsvs.o ac_list.o actions.o add_unvers.o build.o
checksum.o commit.o direnum.o est_ops.o export.o helper.o ignore.o
info.o init.o pwcache.o racallback.o remote.o status.o sync.o update.o
waa.o warnings.o -o fsvs
commit.o(.text+0xd5f): In function `ci__getmsg':
: warning: strcpy() is almost always misused, please use strlcpy()
/usr/local/lib/libsv​n_subr-1.so.0.0: warning: sprintf() is often
misused, please use snprintf()
commit.o(.text+0xd6a): In function `ci__getmsg':
: warning: strcat() is almost always misused, please use strlcat()
-rwx------ 1 touche wheel 153222 Nov 17 15:50 fsvs

$ ./fsvs status|head -10
N... 153 ./.ac_list.d
N... 92 ./.actions.d
N... 108 ./.add_unvers.d
N... 59 ./.build.d
N... 84 ./.checksum.d
N... 130 ./.commit.d
N... 74 ./.direnum.d
N... 111 ./.est_ops.d
N... 91 ./.export.d
N... 109 ./.fsvs.d

$ ./fsvs st -d |head -10
15:52:49.134 main[fsvs.c:375] no argument at optind=3 of 3
15:52:49.166 main[fsvs.c:480] LC_ALL gives C
15:52:49.166 main[fsvs.c:487] LC_CTYPE gives C
15:52:49.166 main[fsvs.c:498] codeset found to be 646
15:52:49.166 main[fsvs.c:507] codeset: using identity
15:52:49.166 main[fsvs.c:528] optind=2 per_sts=100 action=status
15:52:49.166 main[fsvs.c:531] argument 1: st
15:52:49.167 ign__new_pattern[ignore.c:725] getting 1 new entries - max
is 0, used are 0
15:52:49.167 ign__new_pattern[ignore.c:784] new pattern INODE:0:0:221
15:52:49.167 ign___init_pattern_i​nto[ignore.c:256] pattern: case, ignore

$ gmake run-tests 2>&1 | tee test.log01a
gmake -C test BINARY=/share2/tmp/_​testing/fsvs/src/fsv​s
gmake[1]: Entering directory `/share2/tmp/_testin​g/fsvs/src/test'
Preparing default repository.
/share2/tmp/_testing​/fsvs/src/test/001_i​nit_dir: line 23: seq: command
not found
"":23: NOK: shell error
gmake[1]: *** [/tmp/fsvs-test-1000​/default-repository]​ Error 1
gmake[1]: Leaving directory `/share2/tmp/_testin​g/fsvs/src/test'
gmake: *** [run-tests] Error 2

no locale problem but
=> seq is linux/GNU only ...
prefer something like
j=0; while [ $j -lt 10 ]; do ...; j=`expr $j + 1`; done

there is another way for openbsd with jot
http://www.openbsd.o​rg/cgi-bin/man.cgi?q​uery=jot&apropos​=0&sektion=0​&manpath=OpenBSD+Cur​rent&arch=i386​&format=html

using jot for the test, with (001, 009, 11, 13, 19)
23c23
< jot 99999 1 > $filename
---
> seq 1 99999 > $filename

also
(011 & 015) md5sum -> md5

it seems to work (see joined file)
congratulations :)


Regards

        Julien

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-11-17 05:07:51 PST
Message > Ph. Marek wrote on 16/11/2006 09:15:
>> Could you please tell me what
>> $ locale
>> and
>> $ locale -a
>> print?
>
> as said before, no locale on openbsd
>
> $ locale
> bash: locale: command not found
> $ env |egrep -i '(lc|lang)'
> $
>
> seems it doesn't exist in base, see
> http://www.undeadly.​org/cgi?action=artic​le&sid=200302060​41352
> another direction seems "citrus patch" but not in base too
> http://www.undeadly.​org/cgi?action=artic​le&sid=200505180​60555

Does this work for you?

=== fsvs.c
====================​====================​====================​======
--- fsvs.c (revision 860)
+++ fsvs.c (local)
@@ -497,6 +497,7 @@
                        local_codeset=NULL;
        }

+ local_codeset=NULL;
        if (!local_codeset)
                DEBUGP("codeset: using identity");



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

Re: fsvs &amp; openbsd

Author Julien TOUCHE <julien dot touche at lycos dot com>
Full name Julien TOUCHE <julien dot touche at lycos dot com>
Date 2006-11-16 01:32:11 PST
Message Ph. Marek wrote on 16/11/2006 09:15:
> Could you please tell me what
> $ locale
> and
> $ locale -a
> print?

as said before, no locale on openbsd

$ locale
bash: locale: command not found
$ env |egrep -i '(lc|lang)'
$

seems it doesn't exist in base, see
http://www.undeadly.​org/cgi?action=artic​le&sid=200302060​41352
another direction seems "citrus patch" but not in base too
http://www.undeadly.​org/cgi?action=artic​le&sid=200505180​60555


Regards

        Julien

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-11-16 00:15:11 PST
Message ...
> $ gmake run-tests 2>&1 | tee test.log01
>
> $ LC_ALL=C gmake run-tests 2>&1 | tee test.log02
> $ LC_ALL=8859_1 gmake run-tests 2>&1 | tee test.log03
> $ LC_ALL=ASCII gmake run-tests 2>&1 | tee test.log04
> $ LANG=C LC_ALL=C gmake run-tests 2>&1 | tee test.log02b
>
> still a locale problem.
Could you please tell me what
    $ locale
and
    $ locale -a
print?


Regards,

Phil

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

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-11-15 23:42:25 PST
Message >
> new tests ...
I'll take a look.

Thank you!


Regards,

Phil

Re: fsvs &amp; openbsd

Author Julien TOUCHE <julien dot touche at lycos dot com>
Full name Julien TOUCHE <julien dot touche at lycos dot com>
Date 2006-11-15 06:31:49 PST
Message new tests ...

$ svn update
[...]
Updated to revision 511.

$ AUTOCONF_VERSION=2.60 autoconf
$ (CFLAGS="-I/usr/local/include -I/usr/local/include/apr-1
-I/usr/local/include​/subversion-1" LDFLAGS="-L/usr/local/lib
-L/usr/local/lib/apr-1" ./configure && CFLAGS="-I/usr/local/include
-I/usr/local/include/apr-1 -I/usr/local/include​/subversion-1"
LDFLAGS="-L/usr/local/lib -L/usr/local/lib/apr-1" gmake) 2>&1 |tee
build.log10

$ ./fsvs help
FSVS (licensed under the GPLv2), (C) by Ph. Marek; version trunk:479

Known commands:

  status, commit, update, export, unversion, add, sync-repos, initialize,
  ignore, _build-new-list, help, info, remote-status

Parameters:

-v increase verbosity
-q decrease verbosity (quiet)

-C checksum possibly changed files;
       if given twice checksum *all* files.

-V show version

Environment variables:

$WAA defines the location of the Working copy Administrative Area
       Default is /var/spool/fsvs, but can be any writeable directory.


$ ./fsvs status|head -10
N... 153 ./.ac_list.d
N... 92 ./.actions.d
N... 108 ./.add_unvers.d
N... 59 ./.build.d
N... 84 ./.checksum.d
N... 130 ./.commit.d
N... 74 ./.direnum.d
N... 111 ./.est_ops.d
N... 91 ./.export.d
N... 109 ./.fsvs.d

$ ./fsvs st -d |head -10
15:28:49.320 main[fsvs.c:375] no argument at optind=3 of 3
15:28:49.325 main[fsvs.c:480] LC_ALL gives C
15:28:49.325 main[fsvs.c:487] LC_CTYPE gives C
15:28:49.326 main[fsvs.c:498] codeset found to be 646
15:28:49.327 main[fsvs.c:527] optind=2 per_sts=100 action=status
15:28:49.328 main[fsvs.c:530] argument 1: st
15:28:49.329 ign__new_pattern[ignore.c:725] getting 1 new entries - max
is 0, used are 0
15:28:49.330 ign__new_pattern[ignore.c:784] new pattern INODE:0:0:221
15:28:49.331 ign___init_pattern_i​nto[ignore.c:256] pattern: case, ignore
15:28:49.332 waa__get_waa_directo​ry[waa.c:230] path is
/share2/tmp/_testing/fsvs/src

$ gmake run-tests 2>&1 | tee test.log01

$ LC_ALL=C gmake run-tests 2>&1 | tee test.log02
$ LC_ALL=8859_1 gmake run-tests 2>&1 | tee test.log03
$ LC_ALL=ASCII gmake run-tests 2>&1 | tee test.log04
$ LANG=C LC_ALL=C gmake run-tests 2>&1 | tee test.log02b

still a locale problem.



Regards

        Julien

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-08-25 02:41:33 PDT
Message On Tuesday 22 August 2006 22:30 Julien TOUCHE wrote:
> one step more.
>
> why there is so much path in -idirafter ... ?
> would it be better to have configure options to set lib/include path ?
I use -idirafter instead of -I to let gcc know that I don't want these include
files listed as dependencies.
You are right, using autoconf/configure would probably be better, but I don't
really know autoconf ... what I have is pasted together from examples.
Can you help?

> est_ops.c: In function `ops__string_to_dev':
> est_ops.c:81: error: `__S_IFLNK' undeclared (first use in this function)
> est_ops.c:81: error: (Each undeclared identifier is reported only once
> est_ops.c:81: error: for each function it appears in.)
> est_ops.c:95: error: `__S_IFCHR' undeclared (first use in this function)
> est_ops.c:95: error: `__S_IFBLK' undeclared (first use in this function)
> est_ops.c:99: error: `__S_IFMT' undeclared (first use in this function)
I use these macros to get a correct unix-mode for devices and symlinks. If I
get "symlink /path/to/target" from the repository and svn:special-file is
set, I try to "fake" a correct unix-mode internally.
And as for __S_IFMT:
    #define __S_IFMT 0170000 /* These bits determine file type. */
I use that to mask the needed bits.


Is there something like this on BSD? If not, I'll have to do that some other
way.


Regards,

Phil

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

Re: fsvs &amp; openbsd

Author Julien TOUCHE <julien dot touche at lycos dot com>
Full name Julien TOUCHE <julien dot touche at lycos dot com>
Date 2006-08-22 13:30:19 PDT
Message one step more.

why there is so much path in -idirafter ... ?
would it be better to have configure options to set lib/include path ?

Regards

        Julien

Re: fsvs &amp; MacOS 10.4

Author benjaminm
Full name Benjamin M.
Date 2006-08-22 11:07:13 PDT
Message Here with:

$ svn update
At revision 397.

$ make
ctags ac_list.c actions.c add_unvers.c build.c checksum.c commit.c
direnum.c est_ops.c export.c fsvs.c helper.c ignore.c info.c init.c
pwcache.c racallback.c remote.c status.c sync.c update.c waa.c
warnings.c actions.h add_unvers.h build.h checksum.h commit.h config.h
direnum.h est_ops.h export.h global.h helper.h ignore.h info.h init.h
interface.h pwcache.h racallback.h remote.h status.h sync.h update.h
waa.h warnings.h
Duplicate entry in file direnum.c, line 117: fsvs_dirent
Second entry ignored
Duplicate entry in file direnum.c, line 118: dir__handle
Second entry ignored
Duplicate entry in file direnum.c, line 135: dir__enum
Second entry ignored
Duplicate entry in file direnum.c, line 152: dir__close
Second entry ignored
Duplicate entry in file direnum.c, line 164: dir__get_dir_size
Second entry ignored
Duplicate entry in files config.h and actions.h: void (Warning only)
Duplicate entry in file global.h, line 270: DEBUGP
Second entry ignored
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/apr/include/apr-0 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-0 -idirafter
/usr/local/pcre-6.7/​include/apr-0 -idirafter /usr/local/include/apr-0
-idirafter /usr/include/apr-0 -idirafter /openpkg/include/apr-0
-idirafter /usr/local/apr/include/apr-1 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-1 -idirafter
/usr/local/pcre-6.7/​include/apr-1 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:396"' -c -o fsvs.o fsvs.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/apr/include/apr-0 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-0 -idirafter
/usr/local/pcre-6.7/​include/apr-0 -idirafter /usr/local/include/apr-0
-idirafter /usr/include/apr-0 -idirafter /openpkg/include/apr-0
-idirafter /usr/local/apr/include/apr-1 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-1 -idirafter
/usr/local/pcre-6.7/​include/apr-1 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:396"' -c -o ac_list.o ac_list.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/apr/include/apr-0 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-0 -idirafter
/usr/local/pcre-6.7/​include/apr-0 -idirafter /usr/local/include/apr-0
-idirafter /usr/include/apr-0 -idirafter /openpkg/include/apr-0
-idirafter /usr/local/apr/include/apr-1 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-1 -idirafter
/usr/local/pcre-6.7/​include/apr-1 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:396"' -c -o actions.o actions.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/apr/include/apr-0 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-0 -idirafter
/usr/local/pcre-6.7/​include/apr-0 -idirafter /usr/local/include/apr-0
-idirafter /usr/include/apr-0 -idirafter /openpkg/include/apr-0
-idirafter /usr/local/apr/include/apr-1 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-1 -idirafter
/usr/local/pcre-6.7/​include/apr-1 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:396"' -c -o add_unvers.o add_unvers.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/apr/include/apr-0 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-0 -idirafter
/usr/local/pcre-6.7/​include/apr-0 -idirafter /usr/local/include/apr-0
-idirafter /usr/include/apr-0 -idirafter /openpkg/include/apr-0
-idirafter /usr/local/apr/include/apr-1 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-1 -idirafter
/usr/local/pcre-6.7/​include/apr-1 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:396"' -c -o build.o build.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/apr/include/apr-0 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-0 -idirafter
/usr/local/pcre-6.7/​include/apr-0 -idirafter /usr/local/include/apr-0
-idirafter /usr/include/apr-0 -idirafter /openpkg/include/apr-0
-idirafter /usr/local/apr/include/apr-1 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-1 -idirafter
/usr/local/pcre-6.7/​include/apr-1 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:396"' -c -o checksum.o checksum.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/apr/include/apr-0 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-0 -idirafter
/usr/local/pcre-6.7/​include/apr-0 -idirafter /usr/local/include/apr-0
-idirafter /usr/include/apr-0 -idirafter /openpkg/include/apr-0
-idirafter /usr/local/apr/include/apr-1 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-1 -idirafter
/usr/local/pcre-6.7/​include/apr-1 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:396"' -c -o commit.o commit.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/apr/include/apr-0 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-0 -idirafter
/usr/local/pcre-6.7/​include/apr-0 -idirafter /usr/local/include/apr-0
-idirafter /usr/include/apr-0 -idirafter /openpkg/include/apr-0
-idirafter /usr/local/apr/include/apr-1 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-1 -idirafter
/usr/local/pcre-6.7/​include/apr-1 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:396"' -c -o direnum.o direnum.c
direnum.c: In function 'dir__get_dir_size':
direnum.c:174: warning: label 'ex' defined but not used
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/apr/include/apr-0 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-0 -idirafter
/usr/local/pcre-6.7/​include/apr-0 -idirafter /usr/local/include/apr-0
-idirafter /usr/include/apr-0 -idirafter /openpkg/include/apr-0
-idirafter /usr/local/apr/include/apr-1 -idirafter
/usr/local/apr/inclu​de/apr-0/apr-1 -idirafter
/usr/local/pcre-6.7/​include/apr-1 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:396"' -c -o est_ops.o est_ops.c
est_ops.c: In function 'ops__string_to_dev':
est_ops.c:81: error: '__S_IFLNK' undeclared (first use in this function)
est_ops.c:81: error: (Each undeclared identifier is reported only once
est_ops.c:81: error: for each function it appears in.)
est_ops.c:95: error: '__S_IFCHR' undeclared (first use in this function)
est_ops.c:95: error: '__S_IFBLK' undeclared (first use in this function)
est_ops.c:99: error: '__S_IFMT' undeclared (first use in this function)
est_ops.c: In function 'ops___stat_to_action':
est_ops.c:220: warning: format '%Ld' expects type 'long long int', but
argument 5 has type 'dev_t'
est_ops.c:220: warning: format '%Ld' expects type 'long long int', but
argument 6 has type 'dev_t'
est_ops.c: In function 'ops__load_1entry':
est_ops.c:279: warning: format '%o' expects type 'unsigned int *', but
argument 3 has type 'mode_t *'
est_ops.c:279: warning: format '%Ld' expects type 'long long int *', but
argument 11 has type 'ino_t *'
est_ops.c:279: warning: format '%Ld' expects type 'long long int *', but
argument 12 has type 'ino_t *'
est_ops.c: In function 'ops__save_1entry':
est_ops.c:354: warning: format '%Ld' expects type 'long long int', but
argument 11 has type 'ino_t'
est_ops.c:354: warning: format '%Ld' expects type 'long long int', but
argument 12 has type 'ino_t'
make: *** [est_ops.o] Error 1


Philipp Marek wrote, On 22/08/06 12:48:
> On Tuesday 22 August 2006 15:33 Philipp Marek wrote:
>
>> I now tried for several hours to find the magic combination of preprocessor
>> defines, to get the functions lstat() and fstat() and the struct stat
>> automatically mapped to lstat64() and fstat64() and struct stat64.
>> I tried AC_SYS_LARGEFILE in configure.in and some combinations
>> of -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64
>> -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 but didn't get it.
>>
>> I read /usr/include/features.h, /usr/include/sys/cdefs.h
>> and /usr/include/sys/stat.h but didn't get any wiser.
>>
>> Does anybody know how to get the automatic mapping 32 -> 64bit functions?
>>
> Well, never mind. The correct way is using *only* -D_FILE_OFFSET_BITS=64 - and
> nothing else.
>
> So the currently committed version has no longer lseek64() and similar, but
> switches depending on system type.
>
> If someone gets problems with files >=2GB, please tell.
>
> Ben, could you please try again with current trunk?
> Thank you!
>
>
> Regards,
>
> Phil
>
>
>
Attachments

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-08-22 10:30:46 PDT
Message On Tuesday 22 August 2006 18:49 Julien TOUCHE wrote:
> new make
...
> In file included from commit.c:41:
> helper.h:46: warning: `struct stat64' declared inside parameter list
...
> $ grep -rin fstat64 /usr/include/*
> $
You're right, that was bad work. Sorry.
Here's a new try.


Regards,

Phil


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

Re: fsvs &amp; openbsd

Author Julien TOUCHE <julien dot touche at lycos dot com>
Full name Julien TOUCHE <julien dot touche at lycos dot com>
Date 2006-08-22 09:49:50 PDT
Message new make

$ grep -rin lstat64 /usr/include/*
$ grep -rin fstat64 /usr/include/*
$

Regards

        Julien

Re: fsvs &amp; MacOS 10.4

Author pmarek
Full name P.Marek
Date 2006-08-22 09:48:49 PDT
Message On Tuesday 22 August 2006 15:33 Philipp Marek wrote:
> I now tried for several hours to find the magic combination of preprocessor
> defines, to get the functions lstat() and fstat() and the struct stat
> automatically mapped to lstat64() and fstat64() and struct stat64.
> I tried AC_SYS_LARGEFILE in configure.in and some combinations
> of -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64
> -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 but didn't get it.
>
> I read /usr/include/features.h, /usr/include/sys/cdefs.h
> and /usr/include/sys/stat.h but didn't get any wiser.
>
> Does anybody know how to get the automatic mapping 32 -> 64bit functions?
Well, never mind. The correct way is using *only* -D_FILE_OFFSET_BITS=64 - and
nothing else.

So the currently committed version has no longer lseek64() and similar, but
switches depending on system type.

If someone gets problems with files >=2GB, please tell.

Ben, could you please try again with current trunk?
Thank you!


Regards,

Phil


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

Re: fsvs &amp; MacOS 10.4

Author pmarek
Full name P.Marek
Date 2006-08-22 06:33:10 PDT
Message On Sunday 20 August 2006 00:49 Benjamin M. wrote:
...
> cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
> -D__USE_FILE_OFFSET64 -idirafter /usr/local/apr/include -idirafter
> /usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
> -idirafter /usr/local/include -idirafter /usr/include -idirafter
> /openpkg/include -idirafter /usr/local/include/apr-0 -idirafter
> /usr/include/apr-0 -idirafter /openpkg/include/apr-0 -Os
> -DFSVS_VERSION='"trunk:389"' -c -o commit.o commit.c
> In file included from commit.c:41:
> helper.h:46: warning: 'struct stat64' declared inside parameter list
> helper.h:46: warning: its scope is only this definition or declaration,
> which is probably not what you want
> commit.c: In function 'ci__directory':
> commit.c:266: error: storage size of 'dummy_stat64' isn't known
> commit.c:341: warning: implicit declaration of function 'lstat64'
> commit.c:266: warning: unused variable 'dummy_stat64'
> commit.c: In function 'ci__work':
> commit.c:489: error: storage size of 'st' isn't known
> commit.c:536: warning: implicit declaration of function 'fstat64'
> commit.c:489: warning: unused variable 'st'
> make: *** [commit.o] Error 1
I now tried for several hours to find the magic combination of preprocessor
defines, to get the functions lstat() and fstat() and the struct stat
automatically mapped to lstat64() and fstat64() and struct stat64.
I tried AC_SYS_LARGEFILE in configure.in and some combinations
of -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1
but didn't get it.

I read /usr/include/features.h, /usr/include/sys/cdefs.h
and /usr/include/sys/stat.h but didn't get any wiser.

Does anybody know how to get the automatic mapping 32 -> 64bit functions?


Regards,

Phil

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

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-08-22 05:40:39 PDT
Message Hello Julien!

On Sunday 20 August 2006 20:59 Julien TOUCHE wrote:
> * same thing for configure (presence ok, usability nok)
> from config.log
...
> * don't know why make is calling configure ...
 
> # make sure they get new timestamps -
> # configure doesn't touch unchanged files.
> touch config.h test/Makefile Makefile
> ********************​********************​***************
> ***  The Makefile has been updated.                 ***
> ***  Please run make again, to build the binary.  ***
> ***  Now stopping execution.                        ***
> ********************​********************​***************
> gmake: *** [config.h] Error 1
I wrote into the Makefile a check, if the dependent files (Makefile
test/Makefile config.h) are *older* than Makefile.in, configure or some other
files, it calls configure again.

I think you called configure yourself, then started make for compilation - but
one file had an older timestamp, so make re-started configure.
As configure writes Makefile new (from Makefile.in), it stops at this point,
to allow compilation with a current Makefile.

So at this point please just start make - then fsvs should get compiled.
You can call "make run-tests" - then after compilation it should do a
self-test.


Hope that helps!


Regards,

Phil


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

Re: fsvs &amp; openbsd

Author Julien TOUCHE <julien dot touche at lycos dot com>
Full name Julien TOUCHE <julien dot touche at lycos dot com>
Date 2006-08-20 11:59:18 PDT
Message * same thing for configure (presence ok, usability nok)
from config.log
configure:3686: checking svn_md5.h usability
configure:3703: gcc -c -I/usr/local/include -I/usr/local/include/apr-1
-I/usr/local/include​/subversion-1 -Wall -funsigned-char -D_GNU_SOURCE=1
-D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -idirafter
/usr/local/include -idirafter /usr/include -idirafter /openpkg/include
 -idirafter /usr/local/include/apr-0 -idirafter /usr/include/apr-0
-idirafter /openpkg/include/apr-0 -idirafter /usr/local/include/apr-1
-idirafter /usr/include/apr-1 -idirafter /openpkg/include/apr-1 -Os
-DFSVS_VERSION='"trunk:395"' conftest.c >&5
configure:3709: $? = 0
configure:3716: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:3719: $? = 0
configure:3726: test -s conftest.o
configure:3729: $? = 0
configure:3740: result: yes
configure:3744: checking svn_md5.h presence
configure:3759: gcc -E conftest.c
conftest.c:28:21: svn_md5.h: No such file or directory
configure:3765: $? = 1
configure: failed program was:

* don't know why make is calling configure ...

Regards

        Julien

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-08-20 11:37:37 PDT
Message Could you please try with current trunk?


Regards,

Phil

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

Re: fsvs &amp; MacOS 10.4

Author benjaminm
Full name Benjamin M.
Date 2006-08-19 15:49:20 PDT
Message Philipp Marek wrote, On 18/08/06 11:26:
>> Are you interested by MacOS X (10.4 / Darwin Kernel Version 8.7.0 /
>> PPC)? I can provide you some testing support...
>>
> I'd like to. Doing compatibility stuff at once would be nice ...

Here some preliminary results under MacOS X 10.4 (apr and pcre from
sources) at fsvs revision 389.

Quick and dirty changes in Makefile (FLAGS at ./configure don't
work...)... So:

18c18
< INCS := -idirafter /usr/local/include -idirafter /usr/include
-idirafter /openpkg/include
---
 > INCS := -idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include

$ make
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-D__USE_FILE_OFFSET64 -idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/include/apr-0 -idirafter
/usr/include/apr-0 -idirafter /openpkg/include/apr-0 -Os
-DFSVS_VERSION='"trunk:389"' -c -o fsvs.o fsvs.c
fsvs.c: In function 'main':
fsvs.c:485: warning: format '%d' expects type 'int', but argument 6 has
type 'long unsigned int'
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-D__USE_FILE_OFFSET64 -idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/include/apr-0 -idirafter
/usr/include/apr-0 -idirafter /openpkg/include/apr-0 -Os
-DFSVS_VERSION='"trunk:389"' -c -o ac_list.o ac_list.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-D__USE_FILE_OFFSET64 -idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/include/apr-0 -idirafter
/usr/include/apr-0 -idirafter /openpkg/include/apr-0 -Os
-DFSVS_VERSION='"trunk:389"' -c -o actions.o actions.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-D__USE_FILE_OFFSET64 -idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/include/apr-0 -idirafter
/usr/include/apr-0 -idirafter /openpkg/include/apr-0 -Os
-DFSVS_VERSION='"trunk:389"' -c -o add_unvers.o add_unvers.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-D__USE_FILE_OFFSET64 -idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/include/apr-0 -idirafter
/usr/include/apr-0 -idirafter /openpkg/include/apr-0 -Os
-DFSVS_VERSION='"trunk:389"' -c -o build.o build.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-D__USE_FILE_OFFSET64 -idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/include/apr-0 -idirafter
/usr/include/apr-0 -idirafter /openpkg/include/apr-0 -Os
-DFSVS_VERSION='"trunk:389"' -c -o checksum.o checksum.c
checksum.c: In function 'cs__read_manber_hashes':
checksum.c:738: warning: implicit declaration of function 'lseek64'
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-D__USE_FILE_OFFSET64 -idirafter /usr/local/apr/include -idirafter
/usr/local/apr/include/apr-0 -idirafter /usr/local/pcre-6.7/include
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/local/include/apr-0 -idirafter
/usr/include/apr-0 -idirafter /openpkg/include/apr-0 -Os
-DFSVS_VERSION='"trunk:389"' -c -o commit.o commit.c
In file included from commit.c:41:
helper.h:46: warning: 'struct stat64' declared inside parameter list
helper.h:46: warning: its scope is only this definition or declaration,
which is probably not what you want
commit.c: In function 'ci__directory':
commit.c:266: error: storage size of 'dummy_stat64' isn't known
commit.c:341: warning: implicit declaration of function 'lstat64'
commit.c:266: warning: unused variable 'dummy_stat64'
commit.c: In function 'ci__work':
commit.c:489: error: storage size of 'st' isn't known
commit.c:536: warning: implicit declaration of function 'fstat64'
commit.c:489: warning: unused variable 'st'
make: *** [commit.o] Error 1
Attachments

Re: fsvs &amp; openbsd

Author Julien TOUCHE <julien dot touche at lycos dot com>
Full name Julien TOUCHE <julien dot touche at lycos dot com>
Date 2006-08-19 13:47:57 PDT
Message $ svn update
[...]
Updated to revision 389.
$ AUTOCONF_VERSION=2.60 autoconf
$
$ (./configure && gmake) 2>&1 |tee build.log2

configure detects is not good
apr: /usr/local/include/apr-1
svn: /usr/local/include/subversion-1
pcre: /usr/local/include/pcre.h
use env (instead of configure options --pcre-{root,include,lib} or else

$ (CFLAGS="-I/usr/local/include -I/usr/local/include/apr-1
-I/usr/local/include​/subversion-1" LDFLAGS="-L/usr/local/lib
-L/usr/local/lib/apr-1" ./configure && CFLAGS="-I/usr/local/include
-I/usr/local/include/apr-1 -I/usr/local/include​/subversion-1"
LDFLAGS="-L/usr/local/lib -L/usr/local/lib/apr-1" gmake) 2>&1 |tee
build.log3
=> configure fails too because checking presence is made without
CFLAGS/LDFLAGS ..

> You have an apr-1? I only find a /usr/include/apr-0/ on my debian system.
> Is that the apr V2?
no

from openbsd ports:
$ pkg_info |egrep -i '(pcre|apr)'
apr-1.0.1p2 Apache Portable Runtime
apr-util-1.0.1p3 companion library to APR
pcre-6.4p1 perl-compatible regular expression library

path was modified for openbsd ports



Regards

        Julien

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-08-19 12:06:29 PDT
Message On Friday 18 August 2006 21:21 Julien TOUCHE wrote:
> in src
>
> $ svn update
> At revision 387.
> $ AUTOCONF_VERSION=2.59 autoconf
> configure.in:80: error: possibly undefined macro: AC_TYPE_UINT32_T
> If this token and others are legitimate, please use m4_pattern_allow.
> See the Autoconf documentation.
> configure.in:87: error: possibly undefined macro: AC_CV_C_UINT32_T
> configure.in:89: error: possibly undefined macro: AC_TYPE_UINT64_T
> configure.in:95: error: possibly undefined macro: AC_CV_C_UINT64_T
This scripts require 2.59e or something like that, for the AC_TYPE_*_T checks.
Could you try with 2.60?

> $ (./configure && gmake ) 2>&1 |tee build.log
>
> seems we can't indicate path for pcre & co
I now changed the include paths and #include statements; could you please
update and try again?

> (ports on openbsd are always
> in /usr/local, so /usr/local/include for pcre, /usr/local/include/apr-1
> for apr, ...)
You have an apr-1? I only find a /usr/include/apr-0/ on my debian system.
Is that the apr V2?

Thank you!


Regards,

Phil

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

Re: fsvs &amp; openbsd

Author Julien TOUCHE <julien dot touche at lycos dot com>
Full name Julien TOUCHE <julien dot touche at lycos dot com>
Date 2006-08-18 12:21:26 PDT
Message in src

$ svn update
At revision 387.
$ AUTOCONF_VERSION=2.59 autoconf
configure.in:80: error: possibly undefined macro: AC_TYPE_UINT32_T
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:87: error: possibly undefined macro: AC_CV_C_UINT32_T
configure.in:89: error: possibly undefined macro: AC_TYPE_UINT64_T
configure.in:95: error: possibly undefined macro: AC_CV_C_UINT64_T
$ (./configure && gmake ) 2>&1 |tee build.log

seems we can't indicate path for pcre & co (ports on openbsd are always
in /usr/local, so /usr/local/include for pcre, /usr/local/include/apr-1
for apr, ...)

Regards

        Julien

Re: fsvs &amp; openbsd

Author pmarek
Full name P.Marek
Date 2006-08-18 08:26:04 PDT
Message On Friday 18 August 2006 04:51 Benjamin M. wrote:
> Are you interested by MacOS X (10.4 / Darwin Kernel Version 8.7.0 /
> PPC)? I can provide you some testing support...
I'd like to. Doing compatibility stuff at once would be nice ...

> PS: fsvs-1.0.12 - all run-tests work flawless on my "troublemaking"
> machine...
That's good.

Thank you for this offer!


Regards,

Phil


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

Re: fsvs &amp; openbsd

Author benjaminm
Full name Benjamin M.
Date 2006-08-17 19:51:31 PDT
Message Philipp Marek wrote, On 17/08/06 12:42:
> I hope you can help me make fsvs compile on your operating systems!
>
>
Are you interested by MacOS X (10.4 / Darwin Kernel Version 8.7.0 /
PPC)? I can provide you some testing support...

Ben

PS: fsvs-1.0.12 - all run-tests work flawless on my "troublemaking"
machine...
Page: of 2 « Previous | Next »
Messages per page: