Errors while compiling on SunOS 5.9

Adam Piatyszek <[email protected]> Thu, 6 Jan 2005 10:49:20 +0100
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
Hi!

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
In file included from hdup.c:9:
hdup.h:308: error: parse error before "quiet"
hdup.h:308: warning: type defaults to `int' in declaration of `quiet'
hdup.h:308: warning: data definition has no type or storage class
In file included from hdup.c:10:
prototype.h:87: error: parse error before "hash_slash"
prototype.h:87: warning: type defaults to `int' in declaration of
`hash_slash'
prototype.h:87: warning: data definition has no type or storage class
prototype.h:92: error: parse error before "reg_do_match"
prototype.h:92: warning: type defaults to `int' in declaration of
`reg_do_match'
prototype.h:92: warning: data definition has no type or storage class
hdup.c:12: error: parse error before "quiet"
hdup.c:12: warning: type defaults to `int' in declaration of `quiet'
hdup.c:12: warning: data definition has no type or storage class
hdup.c: In function `backup_local':
hdup.c:59: warning: implicit declaration of function `g_strdup_printf'
hdup.c:60: warning: assignment makes pointer from integer without a cast
hdup.c:71: warning: implicit declaration of function `g_free'
hdup.c:101: warning: assignment makes pointer from integer without a
cast
hdup.c: In function `main':
hdup.c:151: warning: implicit declaration of function `g_strdup'
hdup.c:151: warning: assignment makes pointer from integer without a
cast
hdup.c:235: warning: implicit declaration of function `g_strconcat'
hdup.c:235: warning: assignment makes pointer from integer without a
cast
hdup.c:246: warning: implicit declaration of function `g_file_test'
hdup.c:246: error: `G_FILE_TEST_IS_REGULAR' undeclared (first use in
this functi
on)
hdup.c:246: error: (Each undeclared identifier is reported only once
hdup.c:246: error: for each function it appears in.)
hdup.c:377: warning: implicit declaration of function `g_str_equal'
hdup.c:380: error: `G_FILE_TEST_IS_EXECUTABLE' undeclared (first use in
this fun
ction)
hdup.c:628: warning: implicit declaration of function `g_malloc'
hdup.c:718: warning: assignment makes pointer from integer without a
cast
hdup.c:740: warning: assignment makes pointer from integer without a
cast
hdup.c:743: warning: assignment makes pointer from integer without a
cast
make[1]: *** [hdup.o] Error 1
make[1]: Leaving directory `/home/ediap/software/hdup2/src'
make: *** [hdup] Error 2

There is a problem with glib.h at the beginning of compilation. On the
system I was trying to compile the hdup, the glib.h can be found in the
following locations:

bash-2.05# ls -l /opt/csw/include/glib* 
/opt/csw/include/glib-1.2:
total 188
-rw-r--r--   1 root     bin        91530 Oct 20  2002 glib.h
-rw-r--r--   1 root     bin         3383 Oct 20  2002 gmodule.h

/opt/csw/include/glib-2.0:
total 22
drwxr-xr-x   2 root     bin         1024 Dec 23 08:55 glib
-rw-r--r--   1 root     bin         1474 Dec 10 21:48 glib-object.h
-rw-r--r--   1 root     bin         2360 Dec 10 21:48 glib.h
-rw-r--r--   1 root     bin         3505 Dec 10 21:48 gmodule.h
drwxr-xr-x   2 root     bin          512 Dec 23 08:55 gobject

But it seems that the configure script does not perform any check for
glib.h...

What do you think?

Best regards,

ediap


-- 
-=#=-  Adam Piatyszek - "ediap"    -=#=-  Liunx ID: #204648         -=#=-
-=#=-  ediap (at) et.put.poznan.pl -=#=-  JID: ediap (at) chrome.pl -=#=-
-=#=-  http://www.ediap.prv.pl     -=#=-  Gadu-Gadu: 1157376        -=#=-