Re: gnome-libs compile problems (was gnome-libs scandir problems)



Andrea Bosio <ollerot@usa.net> writes:
> Trying to compile gnome-libs with all from most recently cvs
> snapshot I get:
> [...]
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/lib/gtk+/include -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -DGNOMELIBDIR=\"/usr/local/lib\" -DGNOMEDATADIR=\"/usr/local/share\" -DGNOMEBINDIR=\"/usr/local/bin\" -DGNOMELOCALSTATEDIR=\"/usr/local/var\" -DGNOMELOCALEDIR=\"/usr/local/share/locale\" -DGNOMESYSCONFDIR=\"/usr/local/etc\" -DVERSION=\"1.0.5\" -DG_LOG_DOMAIN=\"Gnome\" -I/usr/local/lib/gtk+/include -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include -g -O2 -Wall -Wno-unused -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wp,-MD,.deps/gnome-metadata.pp -c -fPIC -DPIC gnome-metadata.c -o gnome-metadata.lo
> gnome-metadata.c: In function `init':
> gnome-metadata.c:146: warning: implicit declaration of function `dbopen'
> gnome-metadata.c:146: warning: assignment makes pointer from integer without a cast
> gnome-metadata.c: In function `metadata_set':
> gnome-metadata.c:264: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:264: too few arguments to function
> gnome-metadata.c:291: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:291: too few arguments to function
> gnome-metadata.c:312: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:312: too few arguments to function
> gnome-metadata.c:319: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:319: too few arguments to function
> gnome-metadata.c: In function `metadata_remove':
> gnome-metadata.c:351: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:351: too few arguments to function
> gnome-metadata.c:378: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:378: too few arguments to function
> gnome-metadata.c:395: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:395: too few arguments to function
> gnome-metadata.c:412: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:412: too few arguments to function
> gnome-metadata.c: In function `metadata_get_list':
> gnome-metadata.c:444: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:444: too few arguments to function
> gnome-metadata.c: In function `metadata_get_no_dup':
> gnome-metadata.c:477: warning: passing arg 2 from incompatible pointer type
> gnome-metadata.c:477: too few arguments to function
> gnome-metadata.c: In function `maybe_scan_app_dir':
> gnome-metadata.c:746: warning: passing arg 3 of `scandir' from incompatible pointer type
> make: *** [gnome-metadata.lo] Error 1

Note that this has nothing to do with `scandir'.  The errors occur on
lines 264, 291, 312, 319, 351, 378, 395, 412, 444, and 477 and all are
"too few arguments to function". 

The warning on line 146 and all these errors seem to indicate that
you've upgraded the Berkeley DB package recently (one way is if you
installed glibc 2.1, I think).  Please try the following

        $ cd /path/to/build/of/gnome-libs
        $ rm config.cache
        $ ./config.status --recheck && ./config.status
        $ make

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]