Opened 19 years ago

Closed 18 years ago

#3686 closed defect (worksforme)

BUG: gnome-libs build fails in gnome-metadata.c with incompatible pointer type

Reported by: eatmorepossom@… Owned by: gnome-darwinports@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: markd@…
Port:

Description

OSX 10.4.1, XCode 2.1 . Build failure is in gnome-libs proper, specifically gnome-metadata.c.

[11:29:01] bash [.../justin]>sudo port -v install gnome-libs ---> Fetching gnome-libs ---> Verifying checksum(s) for gnome-libs ---> Checksumming gnome-libs-1.4.2.tar.bz2 ---> Extracting gnome-libs ---> Extracting gnome-libs-1.4.2.tar.bz2 ---> Applying patches to gnome-libs ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports/gnome/gnome-libs/files/patch_configure patching file configure Hunk #1 succeeded at 3578 (offset 224 lines). patching file libart_lgpl/configure Hunk #1 succeeded at 3329 with fuzz 2 (offset -25 lines). ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports/gnome/gnome-libs/files/patch_ltmain.sh patching file ltmain.sh ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports/gnome/gnome-libs/files/patch-XmHTMLP.h patching file gtk-xmhtml/XmHTMLP.h ---> Configuring gnome-libs creating cache ./config.cache checking host system type... powerpc-apple-darwin8.1.0 checking target system type... powerpc-apple-darwin8.1.0 checking build system type... powerpc-apple-darwin8.1.0 checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for strerror in -lcposix... no checking for gcc... gcc checking whether the C compiler (gcc -fstrict-aliasing -funroll-loops ) works... yes checking whether the C compiler (gcc -fstrict-aliasing -funroll-loops ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for Cygwin environment... no checking for mingw32 environment... no checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking whether ln -s works... yes checking how to recognise dependant libraries... file_magic Mach-O dynamically linked shared library checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -p output... ok

<snip> <snip> <snip>

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/opt/local/include -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include -I/usr/X11R6/include -DGNOMELIBDIR=\"/opt/local/lib\" -DGNOMEDATADIR=\"/opt/local/share\" -DGNOMEBINDIR=\"/opt/local/bin\" -DGNOMELOCALSTATEDIR=\"/opt/local/var\" -DGNOMELOCALEDIR=\"/opt/local/lib/locale\" -DGNOMESYSCONFDIR=\"/opt/local/etc\" -DVERSION=\"1.4.2\" -DG_LOG_DOMAIN=\"Gnome\" -L/opt/local/lib -I/opt/local/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -fstrict-aliasing -funroll-loops -Wall -Wunused -c gnome-magic.c -fno-common -DPIC -o .libs/gnome-magic.lo gnome-magic.c: In function 'gnome_magic_matches_p': gnome-magic.c:331: warning: pointer targets in passing argument 1 of 'do_byteswap' differ in signedness gnome-magic.c:331: warning: pointer targets in passing argument 2 of 'do_byteswap' differ in signedness gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/opt/local/include -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include -I/usr/X11R6/include -DGNOMELIBDIR=\"/opt/local/lib\" -DGNOMEDATADIR=\"/opt/local/share\" -DGNOMEBINDIR=\"/opt/local/bin\" -DGNOMELOCALSTATEDIR=\"/opt/local/var\" -DGNOMELOCALEDIR=\"/opt/local/lib/locale\" -DGNOMESYSCONFDIR=\"/opt/local/etc\" -DVERSION=\"1.4.2\" -DG_LOG_DOMAIN=\"Gnome\" -L/opt/local/lib -I/opt/local/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -fstrict-aliasing -funroll-loops -Wall -Wunused -c gnome-magic.c -o gnome-magic.o >/dev/null 2>&1 mv -f .libs/gnome-magic.lo gnome-magic.lo /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/opt/local/include -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include -I/usr/X11R6/include -DGNOMELIBDIR=\""/opt/local/lib"\" -DGNOMEDATADIR=\""/opt/local/share"\" -DGNOMEBINDIR=\""/opt/local/bin"\" -DGNOMELOCALSTATEDIR=\""/opt/local/var"\" -DGNOMELOCALEDIR=\""/opt/local/lib/locale"\" -DGNOMESYSCONFDIR=\""/opt/local/etc"\" -DVERSION=\""1.4.2"\" -DG_LOG_DOMAIN=\"Gnome\" -L/opt/local/lib -I/opt/local/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -fstrict-aliasing -funroll-loops -Wall -Wunused -c gnome-metadata.c rm -f .libs/gnome-metadata.lo gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/opt/local/include -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include -I/usr/X11R6/include -DGNOMELIBDIR=\"/opt/local/lib\" -DGNOMEDATADIR=\"/opt/local/share\" -DGNOMEBINDIR=\"/opt/local/bin\" -DGNOMELOCALSTATEDIR=\"/opt/local/var\" -DGNOMELOCALEDIR=\"/opt/local/lib/locale\" -DGNOMESYSCONFDIR=\"/opt/local/etc\" -DVERSION=\"1.4.2\" -DG_LOG_DOMAIN=\"Gnome\" -L/opt/local/lib -I/opt/local/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -fstrict-aliasing -funroll-loops -Wall -Wunused -c gnome-metadata.c -fno-common -DPIC -o .libs/gnome-metadata.lo gnome-metadata.c: In function 'init': gnome-metadata.c:176: warning: implicit declaration of function 'dbopen' gnome-metadata.c:177: warning: assignment makes pointer from integer without a cast gnome-metadata.c: In function 'metadata_set': gnome-metadata.c:302: warning: passing argument 2 of 'database->put' from incompatible pointer type gnome-metadata.c:302: error: too few arguments to function 'database->put' gnome-metadata.c:329: warning: passing argument 2 of 'database->get' from incompatible pointer type gnome-metadata.c:329: error: too few arguments to function 'database->get' gnome-metadata.c:350: warning: passing argument 2 of 'database->put' from incompatible pointer type gnome-metadata.c:350: error: too few arguments to function 'database->put' gnome-metadata.c:357: warning: passing argument 2 of 'database->put' from incompatible pointer type gnome-metadata.c:357: error: too few arguments to function 'database->put' gnome-metadata.c: In function 'metadata_remove': gnome-metadata.c:389: warning: passing argument 2 of 'database->del' from incompatible pointer type gnome-metadata.c:389: error: too few arguments to function 'database->del' gnome-metadata.c:416: warning: passing argument 2 of 'database->get' from incompatible pointer type gnome-metadata.c:416: error: too few arguments to function 'database->get' gnome-metadata.c:433: warning: passing argument 2 of 'database->del' from incompatible pointer type gnome-metadata.c:433: error: too few arguments to function 'database->del' gnome-metadata.c:450: warning: passing argument 2 of 'database->put' from incompatible pointer type gnome-metadata.c:450: error: too few arguments to function 'database->put' gnome-metadata.c: In function 'metadata_get_list': gnome-metadata.c:482: warning: passing argument 2 of 'database->get' from incompatible pointer type gnome-metadata.c:482: error: too few arguments to function 'database->get' gnome-metadata.c: In function 'metadata_get_no_dup': gnome-metadata.c:515: warning: passing argument 2 of 'database->get' from incompatible pointer type gnome-metadata.c:515: error: too few arguments to function 'database->get' gnome-metadata.c: In function 'maybe_scan_app_dir': gnome-metadata.c:784: warning: passing argument 3 of 'scandir' from incompatible pointer type make[2]: * [gnome-metadata.lo] Error 1 make[1]: * [all-recursive] Error 1 make: * [all-recursive-am] Error 2 Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_gnome_gnome-libs/work/gnome-libs-1.4.2" && make all" returned error 2 Command output: gnome-metadata.c:177: warning: assignment makes pointer from integer without a cast gnome-metadata.c: In function 'metadata_set': gnome-metadata.c:302: warning: passing argument 2 of 'database->put' from incompatible pointer type gnome-metadata.c:302: error: too few arguments to function 'database->put' gnome-metadata.c:329: warning: passing argument 2 of 'database->get' from incompatible pointer type gnome-metadata.c:329: error: too few arguments to function 'database->get' gnome-metadata.c:350: warning: passing argument 2 of 'database->put' from incompatible pointer type gnome-metadata.c:350: error: too few arguments to function 'database->put' gnome-metadata.c:357: warning: passing argument 2 of 'database->put' from incompatible pointer type gnome-metadata.c:357: error: too few arguments to function 'database->put' gnome-metadata.c: In function 'metadata_remove': gnome-metadata.c:389: warning: passing argument 2 of 'database->del' from incompatible pointer type gnome-metadata.c:389: error: too few arguments to function 'database->del' gnome-metadata.c:416: warning: passing argument 2 of 'database->get' from incompatible pointer type gnome-metadata.c:416: error: too few arguments to function 'database->get' gnome-metadata.c:433: warning: passing argument 2 of 'database->del' from incompatible pointer type gnome-metadata.c:433: error: too few arguments to function 'database->del' gnome-metadata.c:450: warning: passing argument 2 of 'database->put' from incompatible pointer type gnome-metadata.c:450: error: too few arguments to function 'database->put' gnome-metadata.c: In function 'metadata_get_list': gnome-metadata.c:482: warning: passing argument 2 of 'database->get' from incompatible pointer type gnome-metadata.c:482: error: too few arguments to function 'database->get' gnome-metadata.c: In function 'metadata_get_no_dup': gnome-metadata.c:515: warning: passing argument 2 of 'database->get' from incompatible pointer type gnome-metadata.c:515: error: too few arguments to function 'database->get' gnome-metadata.c: In function 'maybe_scan_app_dir': gnome-metadata.c:784: warning: passing argument 3 of 'scandir' from incompatible pointer type make[2]: * [gnome-metadata.lo] Error 1 make[1]: * [all-recursive] Error 1 make: * [all-recursive-am] Error 2

Warning: the following items did not execute (for gnome-libs): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install [11:31:42] bash [.../justin]>

Change History (4)

comment:1 Changed 19 years ago by olegb@…

Resolution: duplicate
Status: newclosed

* This bug has been marked as a duplicate of 3684 *

comment:2 Changed 19 years ago by olegb@…

Resolution: duplicate
Status: closedreopened

reopening - bug not fixed. ENEEDSOMESLEEP :-)

comment:3 Changed 19 years ago by mww@…

Owner: changed from darwinports-bugs@… to gnome-darwinports@…
Status: reopenednew
Summary: gnome-libs build fails in gnome-metadata.c with incompatible pointer typeBUG: gnome-libs build fails in gnome-metadata.c with incompatible pointer type

comment:4 Changed 18 years ago by markd@…

Cc: markd@… added
Resolution: worksforme
Status: newclosed

This works fine for me on 10.4.5 / Xcode 2.2.1. Please reopen if this is still a problem.

Note: See TracTickets for help on using tickets.