Opened 18 years ago

Closed 18 years ago

#5601 closed defect (fixed)

BUG: gnome-vfs depends on gconf, then fails on 'uint32_t' undeclared in xdgmimecache.c

Reported by: steven-bellneot Owned by: gnome-darwinports@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: todd@…
Port:

Description

Continuing from bug 5460 , port install gnome-vfs for lack of gconf then fails on uint32_t undeclared???

workaround for the first part:

port install gconf

First error ---> Fetching gnome-vfs ---> Attempting to fetch gnome-vfs-2.12.1.1.tar.bz2 from http://www.gtlib.cc.ga tech.edu/pub/gnome/sources/gnome-vfs/2.12/ ---> Verifying checksum(s) for gnome-vfs ---> Extracting gnome-vfs ---> Configuring gnome-vfs Error: Target com.apple.configure returned: configure failure: shell command "cd

"/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsy

nc.opendarwin.org_dpupdate_dports_gnome_gnome-vfs/work/gnome-vfs-2.12.1.1" && CP PFLAGS="-L/opt/local/lib -I/opt/local/include" LDFLAGS="-lresolv" ./configure -- prefix=/opt/local --mandir=/opt/local/share/man --enable-ipv6 --disable-static" returned error 1 Command output: checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.2.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking for intltool >= 0.29... 0.34.1 found checking for perl... /opt/local/bin/perl checking for XML::Parser... ok checking for iconv... /opt/local/bin/iconv checking for msgfmt... /opt/local/bin/msgfmt checking for msgmerge... /opt/local/bin/msgmerge checking for xgettext... /opt/local/bin/xgettext checking for pkg-config... /opt/local/bin/pkg-config checking for glib-2.0 >= 2.6.0 gmodule-no-export-2.0 >= 2.6.0 gthread-2.0 >= 2.6 .0 libxml-2.0 >= 2.6.0... yes checking MODULES_XML_CFLAGS... -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt /local/lib/glib-2.0/include -I/opt/local/include/libxml2 -I/opt/local/include checking MODULES_XML_LIBS... -L/opt/local/lib -lgmodule-2.0 -lgthread-2.0 -lglib -2.0 -lintl -lxml2 -lpthread -lz -liconv -lm checking for glib-2.0 >= 2.6.0 gmodule-no-export-2.0 >= 2.6.0 gthread-2.0 >= 2.6 .0 gobject-2.0 >= 2.6.0... yes checking MODULES_CFLAGS... -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/loc al/lib/glib-2.0/include checking MODULES_LIBS... -L/opt/local/lib -lgmodule-2.0 -lgthread-2.0 -lgobject- 2.0 -lglib-2.0 -lintl -liconv checking for glib-2.0 >= 2.6.0 gmodule-no-export-2.0 >= 2.6.0 gthread-2.0 >= 2.6 .0 gobject-2.0 >= 2.6.0 gconf-2.0 >= 1.1.1... Package gconf-2.0 was not found in

the pkg-config search path. Perhaps you should add the directory containing `gc

onf-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gconf-2.0' f ound configure: error: Library requirements (glib-2.0 >= 2.6.0 gmodule-no-export-2.0

2.6.0 gthread-2.0 >= 2.6.0 gobject-2.0 >= 2.6.0 gconf-2.0 >= 1.1.1) not met;

consider adjusting the PKG_CONFIG_PATH environment variable if your libraries ar e in a nonstandard prefix so pkg-config can find them.

Error: The following dependencies failed to build: goffice libgsf gnome-vfs

Second error mac228:/Users/bellenot bellenot 230> sudo port install gnome-vfs Password: ---> Configuring gnome-vfs ---> Building gnome-vfs with target all 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- vfs/work/gnome-vfs-2.12.1.1" && make all" returned error 2 Command output: xdgmimecache.c: In function 'find_stopchars': xdgmimecache.c:487: error: 'uint32_t' undeclared (first use in this function) xdgmimecache.c:487: error: parse error before ')' token xdgmimecache.c:488: error: parse error before ')' token xdgmimecache.c:489: error: parse error before ')' token xdgmimecache.c:493: error: parse error before ')' token xdgmimecache.c: In function '_xdg_mime_cache_get_max_buffer_extents': xdgmimecache.c:561: error: 'uint32_t' undeclared (first use in this function) xdgmimecache.c:561: error: parse error before ')' token xdgmimecache.c:562: error: parse error before ')' token xdgmimecache.c:562: error: parse error before ')' token xdgmimecache.c: In function '_xdg_mime_cache_mime_type_subclass': xdgmimecache.c:724: error: 'uint32_t' undeclared (first use in this function) xdgmimecache.c:724: error: parse error before ')' token xdgmimecache.c:725: error: parse error before ')' token xdgmimecache.c:734: error: parse error before ')' token xdgmimecache.c:742: error: parse error before ')' token xdgmimecache.c:743: error: parse error before ')' token xdgmimecache.c:747: error: parse error before ')' token xdgmimecache.c: In function '_xdg_mime_cache_list_mime_parents': xdgmimecache.c:785: error: 'uint32_t' undeclared (first use in this function) xdgmimecache.c:785: error: parse error before ')' token xdgmimecache.c:786: error: parse error before ')' token xdgmimecache.c:790: error: parse error before ')' token xdgmimecache.c:791: error: parse error before ')' token xdgmimecache.c:795: error: parse error before ')' token make[3]: * [xdgmimecache.lo] Error 1 make[2]: * [all] Error 2 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Change History (7)

comment:1 Changed 18 years ago by mww@…

Cc: rhwood@… added
Summary: gnome-vfs depends on gconf, then fails on 'uint32_t' undeclared in xdgmimecache.cBUG: gnome-vfs depends on gconf, then fails on 'uint32_t' undeclared in xdgmimecache.c

comment:2 Changed 18 years ago by allen@…

Looking at the file xdgmimecache.c that is in

/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_gnome_gnome- vfs/work/gnome-vfs-2.12.1.1/libgnomevfs

The problem is that uint_16_t and uint_32_t is not defined in the MACROs. These should be xdb_ uint_16_t and xdb_uint_32_t respectively.

diff xdgmimecache.c xdgmimecache.c~

82,83c82,83 < #define GET_UINT16(cache,offset) (ntohs(*(xdg_uint16_t*)((cache) + (offset)))) < #define GET_UINT32(cache,offset) (ntohl(*(xdg_uint32_t*)((cache) + (offset)))) ---

#define GET_UINT16(cache,offset) (ntohs(*(uint16_t*)((cache) + (offset)))) #define GET_UINT32(cache,offset) (ntohl(*(uint32_t*)((cache) + (offset))))

A patch needs to be created for this and added into the port.

comment:3 Changed 18 years ago by allen@…

I should note that after making these changes I was able to successfully build the port - I did not have any of the other ancillary build problems.

comment:4 Changed 18 years ago by allen@…

From looking at bug 5510 that this could be an Xcode problem. I have Xcode 2.0. I will try this on another machine that has Xcode 2.1

comment:5 Changed 18 years ago by jmpp@…

Cc: todd@… added

* Bug 5510 has been marked as a duplicate of this bug. *

comment:6 Changed 18 years ago by rhwood@…

Cc: rhwood@… removed
Status: newassigned

Updated Portfile and patchfile have been committed to CVS. The gnome-vfs source is patched only on Mac OS X 10.2 and 10.3 systems as 10.4 users are not currently expierencing this build problem with XCode 2.1+.

(Removed myself from the cc list as I also get all gnome-darwinports mailings)

comment:7 Changed 18 years ago by olegb@…

Resolution: fixed
Status: assignedclosed

closing ... ports have been updated by Randall(works here)

Note: See TracTickets for help on using tickets.