Alexander Skwar | 7 Dec 2007 08:53
Picon

configure error on Solaris 10

Hello.

I just checked out Revision 1254 of fsvs from the tigris svn repository.
Now I'm trying to compile it on a Solaris 10 3/05 Sparc system. This
fails:

PATH=/opt/csw/gcc4/bin:/opt/csw/gnu:/opt/csw/bin:$PATH \
  CC=/opt/csw/gcc4/bin/gcc CPP=/opt/csw/gcc4/bin/cpp \
  LDFLAGS=-L/opt/csw/lib CPPFLAGS=-I/opt/csw/include \
  ./configure --prefix=$HOME/.software \
  --with-aprinc=/opt/csw/apache2/include --with-aprlib=/opt/csw/apache2/lib \
  --with-svnlib=/opt/csw/lib/svn --with-svninc=/opt/csw/include/subversion-1
[..]
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... no
checking linux/kdev_t.h presence... no
checking for linux/kdev_t.h... no
configure: error:
*** MAJOR(), MINOR() and MAKEDEV() definitions not found.
*** I'll fake a definition, but that could make problems for ignore patterns
*** and commits/updates of device nodes.
*** Please contact dev <at> fsvs.tigris.org for help, or, if you know your
*** systems' way, to report the correct header name.
See `config.log' for more details.

In config.log (attached as well), there's:
(Continue reading)

Philipp Marek | 7 Dec 2007 10:35
Picon

Re: configure error on Solaris 10

Hello Alexander!

On Friday 07 December 2007 Alexander Skwar wrote:
> I just checked out Revision 1254 of fsvs from the tigris svn repository.
> Now I'm trying to compile it on a Solaris 10 3/05 Sparc system. This
> fails:
...
> Well, yes, there's no "linux/kdev_t.h" on this system - it's a
> Solaris system :)
>
> Is that a fault of fsvs or of somethign else?
That's a fault of FSVS, of course ... at least of the configure part.

There should be some header file on your system that has definitions of 
MAJOR(), MINOR() and MAKEDEV(); if you can tell me that, I could try to look 
for that in configure.in, too. (Better if you post a patch.)

Alternatively, there are some (default) definitions FSVS could try to use - 
although if they don't match your systems' way, you won't be able to use the 
ignore patterns for device and inode numbers.
Internal operation should work.

Here's a patch, maybe that works for you.

Regards,

Phil

diff configure.in
Index: configure.in
(Continue reading)

Alexander Skwar | 7 Dec 2007 11:53
Picon

direnum.c:146: error: 'NAME_MAX' undeclared here (not in a function)

Hi again!

Trying to compile fsvs on S10. It fails:

diff.c:501: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
     CC direnum.c
direnum.c:146: error: 'NAME_MAX' undeclared here (not in a function)
direnum.c: In function 'dir__get_dir_size':
direnum.c:207: warning: label 'ex' defined but not used
gmake[1]: *** [direnum.o] Error 1
gmake: *** [default-target] Error 2

Any ideas? :)

Complete config.log is available at <http://public-files.askwar.s3.amazonaws.com/fsvs/config.log>.

Alexander Skwar
Philipp Marek | 7 Dec 2007 12:07
Picon

Re: direnum.c:146: error: 'NAME_MAX' undeclared here (not in a function)

On Friday 07 December 2007 Alexander Skwar wrote:
> Hi again!
>
> Trying to compile fsvs on S10. It fails:
>
> diff.c:501: warning: format '%d' expects type 'int', but argument 5 has
> type 'long int' CC direnum.c
> direnum.c:146: error: 'NAME_MAX' undeclared here (not in a function)
> direnum.c: In function 'dir__get_dir_size':
> direnum.c:207: warning: label 'ex' defined but not used
> gmake[1]: *** [direnum.o] Error 1
> gmake: *** [default-target] Error 2

In http://opengroup.org/onlinepubs/007908799/xsh/rename.html there is said:
	[ENAMETOOLONG]
	 The length of the old or new argument exceeds {PATH_MAX} or a pathname
	 component is longer than {NAME_MAX}.
Which makes me believe that NAME_MAX should be a constant in stdio.h.

But this seems to define only FILENAME_MAX:
	http://opengroup.org/onlinepubs/007908799/xsh/stdio.h.html

> Any ideas? :)
You could try doing something like
	#define NAME_MAX (FILENAME_MAX)
in config.h somewhere.

Regards,

Phil
(Continue reading)

Alexander Skwar | 7 Dec 2007 12:27
Picon

Re: direnum.c:146: error: 'NAME_MAX' undeclared here (not in a function)

Hello!

On Dec 7, 2007 12:07 PM, Philipp Marek <philipp <at> marek.priv.at> wrote:
>
> On Friday 07 December 2007 Alexander Skwar wrote:
> > Hi again!
> >
> > Trying to compile fsvs on S10. It fails:
> >
> > diff.c:501: warning: format '%d' expects type 'int', but argument 5 has
> > type 'long int' CC direnum.c
> > direnum.c:146: error: 'NAME_MAX' undeclared here (not in a function)
> > direnum.c: In function 'dir__get_dir_size':
> > direnum.c:207: warning: label 'ex' defined but not used
> > gmake[1]: *** [direnum.o] Error 1
> > gmake: *** [default-target] Error 2
>
> In http://opengroup.org/onlinepubs/007908799/xsh/rename.html there is said:
>        [ENAMETOOLONG]
>         The length of the old or new argument exceeds {PATH_MAX} or a pathname
>         component is longer than {NAME_MAX}.
> Which makes me believe that NAME_MAX should be a constant in stdio.h.
>
> But this seems to define only FILENAME_MAX:
>        http://opengroup.org/onlinepubs/007908799/xsh/stdio.h.html
>
> > Any ideas? :)
> You could try doing something like
>        #define NAME_MAX (FILENAME_MAX)
> in config.h somewhere.
(Continue reading)

Alexander Skwar | 7 Dec 2007 12:31
Picon

stray '#' in program and environ undeclared

Hello once more...

Now I'm getting this compile error:

     CC export.c
     CC fsvs.c
fsvs.c: In function 'Version':
fsvs.c:539: error: stray '#' in program
fsvs.c:539: error: called object '"compile options:\012\011 HAVE_LOCALES=1
AC_CV_C_UINT32_T=uint32_t HAVE_STRUCT_STAT_ST_MTIM=1 O_DIRECTORY==(0)="' is not a function
fsvs.c:544: error: syntax error before string constant
fsvs.c: In function 'main':
fsvs.c:852: error: 'environ' undeclared (first use in this function)
fsvs.c:852: error: (Each undeclared identifier is reported only once
fsvs.c:852: error: for each function it appears in.)
gmake[1]: *** [fsvs.o] Error 1
gmake: *** [default-target] Error 2

line 539 is the line with STRINGIFY:
#ifdef O_DIRECTORY
                                STRINGIFY(O_DIRECTORY=)#O_DIRECTORY
#endif

--(askwar <at> winds06)-(98/pts/4)-(12:30:35/2007-12-07)--
--($:~/Source/fsvs)-- /opt/csw/gcc4/bin/gcc --version
gcc (GCC) 4.0.2
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(Continue reading)

Alexander Skwar | 7 Dec 2007 12:32
Picon

apr files not picked up?

Hello again :)

I'm trying to get fsvs to compile on a Solaris 10 Sparc
system. To configure, I ran:

CC=/opt/csw/gcc4/bin/gcc CPP=/opt/csw/gcc4/bin/cpp \
 LDFLAGS="-L/opt/csw/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn" \
 CPPFLAGS="-I/opt/csw/include -I/opt/csw/apache2/include -I/opt/csw/include/subversion-1" \
 PATH=/opt/csw/gcc4/bin:/opt/csw/gnu:/opt/csw/bin:$PATH \
 ./configure \
 --prefix=$HOME/.software --with-aprinc=/opt/csw/apache2/include \
 --with-aprlib=/opt/csw/apache2/lib --with-svnlib=/opt/csw/lib/svn \
 --with-svninc=/opt/csw/include/subversion-1

Now I'm trying to "make" it:

CC=/opt/csw/gcc4/bin/gcc CPP=/opt/csw/gcc4/bin/cpp \
 LDFLAGS="-L/opt/csw/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn" \
 CPPFLAGS="-I/opt/csw/include -I/opt/csw/apache2/include -I/opt/csw/include/subversion-1" \
 PATH=/opt/csw/gcc4/bin:/opt/csw/gnu:/opt/csw/bin:$PATH \
 /opt/csw/bin/gmake

During compilation, I get a lot of these:

In file included from options.h:13,
                 from warnings.h:13,
                 from warnings.c:14:
global.h:19:21: error: apr_md5.h: No such file or directory
global.h:20:25: error: apr_file_io.h: No such file or directory
     deps for waa.c
(Continue reading)

Philipp Marek | 7 Dec 2007 12:58
Picon

Re: stray '#' in program and environ undeclared

On Friday 07 December 2007 Alexander Skwar wrote:
> Now I'm getting this compile error:
>
>      CC export.c
>      CC fsvs.c
> fsvs.c: In function 'Version':
> fsvs.c:539: error: stray '#' in program
r1255.

> fsvs.c:539: error: called object '"compile options:\012\011 HAVE_LOCALES=1
> AC_CV_C_UINT32_T=uint32_t HAVE_STRUCT_STAT_ST_MTIM=1 O_DIRECTORY==(0)="' is
> not a function fsvs.c:544: error: syntax error before string constant
> fsvs.c: In function 'main':
> fsvs.c:852: error: 'environ' undeclared (first use in this function)
> fsvs.c:852: error: (Each undeclared identifier is reported only once
> fsvs.c:852: error: for each function it appears in.)
> gmake[1]: *** [fsvs.o] Error 1
> gmake: *** [default-target] Error 2
environ is SUS:
	environ - array of character pointers to the environment strings
	http://opengroup.org/onlinepubs/007908799/xsh/environ.html

Does that help?

diff fsvs.c
Index: fsvs.c
===================================================================
--- fsvs.c      (Revision 1255)
+++ fsvs.c      (Arbeitskopie)
 <at>  <at>  -769,7 +769,7  <at>  <at>  void *_do_component_tests(int a)
(Continue reading)

Philipp Marek | 7 Dec 2007 13:01
Picon

Re: apr files not picked up?

On Friday 07 December 2007 Alexander Skwar wrote:
> Hello again :)
>
> I'm trying to get fsvs to compile on a Solaris 10 Sparc
> system. To configure, I ran:
>
> CC=/opt/csw/gcc4/bin/gcc CPP=/opt/csw/gcc4/bin/cpp \
>  LDFLAGS="-L/opt/csw/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn" \
>  CPPFLAGS="-I/opt/csw/include -I/opt/csw/apache2/include
> -I/opt/csw/include/subversion-1" \
> PATH=/opt/csw/gcc4/bin:/opt/csw/gnu:/opt/csw/bin:$PATH \
>  ./configure \
>  --prefix=$HOME/.software --with-aprinc=/opt/csw/apache2/include \
>  --with-aprlib=/opt/csw/apache2/lib --with-svnlib=/opt/csw/lib/svn \
>  --with-svninc=/opt/csw/include/subversion-1
>
> Now I'm trying to "make" it:
>
> CC=/opt/csw/gcc4/bin/gcc CPP=/opt/csw/gcc4/bin/cpp \
>  LDFLAGS="-L/opt/csw/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn" \
>  CPPFLAGS="-I/opt/csw/include -I/opt/csw/apache2/include
> -I/opt/csw/include/subversion-1" \
> PATH=/opt/csw/gcc4/bin:/opt/csw/gnu:/opt/csw/bin:$PATH \
>  /opt/csw/bin/gmake
The Makefile overrides these; but they should have been picked up by the 
configure.

Could you send me the output of 
	diff -u src/Makefile.in src/Makefile

(Continue reading)

Alexander Skwar | 7 Dec 2007 13:05
Picon

Re: apr files not picked up?

Philipp Marek schrieb:
> On Friday 07 December 2007 Alexander Skwar wrote:
>> Hello again :)
>>
>> I'm trying to get fsvs to compile on a Solaris 10 Sparc
>> system. To configure, I ran:
>>
>> CC=/opt/csw/gcc4/bin/gcc CPP=/opt/csw/gcc4/bin/cpp \
>>  LDFLAGS="-L/opt/csw/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn" \
>>  CPPFLAGS="-I/opt/csw/include -I/opt/csw/apache2/include
>> -I/opt/csw/include/subversion-1" \
>> PATH=/opt/csw/gcc4/bin:/opt/csw/gnu:/opt/csw/bin:$PATH \
>>  ./configure \
>>  --prefix=$HOME/.software --with-aprinc=/opt/csw/apache2/include \
>>  --with-aprlib=/opt/csw/apache2/lib --with-svnlib=/opt/csw/lib/svn \
>>  --with-svninc=/opt/csw/include/subversion-1
>>
>> Now I'm trying to "make" it:
>>
>> CC=/opt/csw/gcc4/bin/gcc CPP=/opt/csw/gcc4/bin/cpp \
>>  LDFLAGS="-L/opt/csw/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn" \
>>  CPPFLAGS="-I/opt/csw/include -I/opt/csw/apache2/include
>> -I/opt/csw/include/subversion-1" \
>> PATH=/opt/csw/gcc4/bin:/opt/csw/gnu:/opt/csw/bin:$PATH \
>>  /opt/csw/bin/gmake
> The Makefile overrides these; 

You mean, it's good enough when I use "--with-svninc", right?
Well, I tried both ways, just to make sure :)

(Continue reading)


Gmane