Re: Errors while compiling on SunOS 5.9

Miek Gieben <[email protected]> Thu, 6 Jan 2005 11:35:15 +0100
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
[On 06 Jan, @ 11:19, Adam wrote in "Re: [hdup-user] Errors while c ..."]
> * Adam Pi?tyszek <[email protected]> [06.01.2005 10:50]:
> > I got some errors while compiling the latest 2.0.4 release of hdup 
> > program on the Solaris platform today.
> > Here is the result of the make command (after invoking ./configure
> > previously):
> > 
> > bash-2.05$ make      
> > hdup version: 2.0.4
> > make[1]: Entering directory `/home/ediap/software/hdup2/src'
> > gcc -Wall -g -g -O2 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
> > -D_LARGE_FILES -Wpoin
> > ter-arith -Wstrict-prototypes   -c hdup.c
> > In file included from hdup.h:12,
> >                  from hdup.c:9:
> > config.h:11:18: glib.h: No such file or directory

on a sidenote. I just found the fix for the compile problem on FreeBSD
4.11.

the patch is:
Index: src/walker.c
===================================================================
--- src/walker.c        (revision 40)
+++ src/walker.c        (working copy)
@@ -37,11 +37,17 @@
        int de, fe, di, fi;
 
        /* 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;
+       reg_exp dexclude; 
+       reg_exp dinclude;
+       reg_exp fexclude; 
+       reg_exp finclude; 
 
+       /* assignments after decl. Compile fix for freebsd 4.11 */
+       dexclude.max = 0;
+       dinclude.max = 0;
+       fexclude.max = 0;
+       finclude.max = 0;
+
        /* reset the counters */
        de = fe = di = fi = 0;
        
grtz Miek