compilation problems with Debian Woody
Richard Hall <[email protected]> Thu, 06 Jan 2005 15:28:28 +0000
| Newsgroups | gmane.comp.sysutils.backup.hdup.general |
|---|---|
| Message-ID | <[email protected]> |
I am trying to compile hdup2 under Debian woody. It compiled fine on
my SuSE 9.1 Pro machine but I get a lot of warnings and a failure on my
Debian system.
The main difference between the two systems as far as I can see is Woody
uses an earlyer version of glib. The configure script returns:
checking for GLIB - version >= 2.0.0... yes (version 2.0.1)
I got it to compile with the warnings but no parse error by changing the
order of the declarations in the walker.c file
/* these hold the patters */
/*
reg_exp dexclude; dexclude.max = 0;
reg_exp dinclude; dinclude.max = 0;
reg_exp fexclude; fexclude.max = 0;
reg_exp finclude; finclude.max = 0;
*/
/* declare everything then use them. original version seems to
work fine on newer versions of glibc */
reg_exp dexclude, dinclude, fexclude, finclude;
dexclude.max = 0; dinclude.max = 0; fexclude.max = 0;
finclude.max =0;
The output of the make command is as follows:
# make install
make[1]: Entering directory `/root/hdup2/src'
gcc -Wall -g -g -O2 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c hdup.c
In file included from config.h:47,
from hdup.h:12,
from hdup.c:9:
/usr/include/sys/param.h:58: warning: `MIN' redefined
/usr/include/glib-2.0/glib/gmacros.h:137: warning: this is the location
of the previous definition
/usr/include/sys/param.h:59: warning: `MAX' redefined
/usr/include/glib-2.0/glib/gmacros.h:134: warning: this is the location
of the previous definition
gcc -Wall -g -g -O2 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c hdupconf.c
In file included from config.h:47,
from hdup.h:12,
from hdupconf.c:24:
/usr/include/sys/param.h:58: warning: `MIN' redefined
/usr/include/glib-2.0/glib/gmacros.h:137: warning: this is the location
of the previous definition
/usr/include/sys/param.h:59: warning: `MAX' redefined
/usr/include/glib-2.0/glib/gmacros.h:134: warning: this is the location
of the previous definition
hdupconf.c: In function `readline':
hdupconf.c:52: warning: value computed is not used
gcc -Wall -g -g -O2 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c hduplib.c
In file included from config.h:47,
from hdup.h:12,
from hduplib.c:24:
/usr/include/sys/param.h:58: warning: `MIN' redefined
/usr/include/glib-2.0/glib/gmacros.h:137: warning: this is the location
of the previous definition
/usr/include/sys/param.h:59: warning: `MAX' redefined
/usr/include/glib-2.0/glib/gmacros.h:134: warning: this is the location
of the previous definition
hduplib.c: In function `hdup_subst':
hduplib.c:1048: warning: field width is not type int (arg 2)
hduplib.c:1048: warning: field width is not type int (arg 5)
gcc -Wall -g -g -O2 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c hduprun.c
In file included from config.h:47,
from hdup.h:12,
from hduprun.c:25:
/usr/include/sys/param.h:58: warning: `MIN' redefined
/usr/include/glib-2.0/glib/gmacros.h:137: warning: this is the location
of the previous definition
/usr/include/sys/param.h:59: warning: `MAX' redefined
/usr/include/glib-2.0/glib/gmacros.h:134: warning: this is the location
of the previous definition
gcc -Wall -g -g -O2 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c hdupremote.c
In file included from config.h:47,
from hdup.h:12,
from hdupremote.c:23:
/usr/include/sys/param.h:58: warning: `MIN' redefined
/usr/include/glib-2.0/glib/gmacros.h:137: warning: this is the location
of the previous definition
/usr/include/sys/param.h:59: warning: `MAX' redefined
/usr/include/glib-2.0/glib/gmacros.h:134: warning: this is the location
of the previous definition
gcc -Wall -g -g -O2 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c hduprestore.c
In file included from config.h:47,
from hdup.h:12,
from hduprestore.c:30:
/usr/include/sys/param.h:58: warning: `MIN' redefined
/usr/include/glib-2.0/glib/gmacros.h:137: warning: this is the location
of the previous definition
/usr/include/sys/param.h:59: warning: `MAX' redefined
/usr/include/glib-2.0/glib/gmacros.h:134: warning: this is the location
of the previous definition
gcc -Wall -g -g -O2 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c hduptarlib.c
In file included from config.h:47,
from hdup.h:12,
from hduptarlib.c:27:
/usr/include/sys/param.h:58: warning: `MIN' redefined
/usr/include/glib-2.0/glib/gmacros.h:137: warning: this is the location
of the previous definition
/usr/include/sys/param.h:59: warning: `MAX' redefined
/usr/include/glib-2.0/glib/gmacros.h:134: warning: this is the location
of the previous definition
gcc -Wall -g -g -O2 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c walker.c
In file included from config.h:47,
from hdup.h:12,
from walker.c:8:
/usr/include/sys/param.h:58: warning: `MIN' redefined
/usr/include/glib-2.0/glib/gmacros.h:137: warning: this is the location
of the previous definition
/usr/include/sys/param.h:59: warning: `MAX' redefined
/usr/include/glib-2.0/glib/gmacros.h:134: warning: this is the location
of the previous definition
walker.c: In function `do_dir_walk':
walker.c:41: parse error before `dinclude'
walker.c:41: `dinclude' undeclared (first use in this function)
walker.c:41: (Each undeclared identifier is reported only once
walker.c:41: for each function it appears in.)
walker.c:42: parse error before `fexclude'
walker.c:42: `fexclude' undeclared (first use in this function)
walker.c:43: parse error before `finclude'
walker.c:43: `finclude' undeclared (first use in this function)
make[1]: *** [walker.o] Error 1
make[1]: Leaving directory `/root/hdup2/src'
make: *** [install] Error 2
I don't think there is anything to worry about the redefenition as it
seems that both defenitions are the same, just formatted slightly
differently