Opened 19 years ago

Closed 18 years ago

#5510 closed defect (duplicate)

BUG: gnome-vfs 2.12.0 fails to build

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

Description

When installing the GNOME meta port, compilation fails for the gnome-vfs module. The error message is below. This is occuring on a new PowerBook G4 running Mac OS X 10.4.2 and XCode 2.0. My DarwinPorts system is completely clean; after installing it, I only ran the commands "sudo port selfupdate; sudo port sync; sudo port install gnome" when this error appeared.

dathyl:~ todd$ sudo port install 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

dathyl:~ todd$

Change History (11)

comment:1 Changed 19 years ago by mww@…

Owner: changed from darwinports-bugs@… to gnome-darwinports@…
Summary: gnome-vfs 2.12.0 fails to buildBUG: gnome-vfs 2.12.0 fails to build

comment:2 Changed 18 years ago by yeled@…

Cc: yeled@… added

I second that. GCC 3.3 or 4.0 fails with this error.

comment:3 Changed 18 years ago by matt@…

The are some problems with the gcc toolchain on Xcode 2.0. XCode 2.1 compiles gnome-vfs without problem.

comment:4 Changed 18 years ago by matt@…

Cc: matt@… added

comment:5 Changed 18 years ago by allen@…

Just a followup. Bug 5601 is a duplicate report of this bug. I found 5601 first and in it I proposed a patch so that it works under Xcode 2.0 with gcc 4.0 ... I will try it without my patch on another machine that has Xcode 2.1 also with gcc 4.0

comment:6 Changed 18 years ago by rhwood@…

Please update to the current version of Xcode and confirm that this problem still exists.

comment:7 Changed 18 years ago by todd@…

Updating to XCode 2.1 resolved the issue. Thanks!

comment:8 Changed 18 years ago by julien.touche@…

get the same thing on MacOS 10.3.x

$ uname -a Darwin volfield 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc $ gcc --version gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

it seems xcode 2.x is only for 10.4 (ar at least, release notes said it) so how to solve this on 10.3 ? i try to download gcc updater from ADC but don't know if it will solve it or not.

thanks

comment:9 Changed 18 years ago by yaseppochi (Stephen J. Turnbull)

(In reply to comment #4)

Please update to the current version of Xcode and confirm that this problem

still exists.

Eh? This is not a GCC or Xcode problem, this is an upstream GNOME defect. It is masked, not fixed, by upgrading Xcode.

Which Panther users can't do, in any case. Has DarwinPorts officially abandoned support for Panther?

(In reply to comment #6)

get the same thing on MacOS 10.3.x

$ uname -a Darwin volfield 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc $ gcc --version gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

it seems xcode 2.x is only for 10.4 (ar at least, release notes said it) so how to solve this on 10.3 ? i try to download gcc updater from ADC but don't know if it will solve it or not.

thanks

Get the patch from Bug 5601 and apply it. Alternatively, find the source code (see the original post for a typical path) and edit the file work/gnome-vfs-21.12.1.1/libgnomevfs/xdgmimecache.c at lines 82 and 83 (search for uint16_t) so that "uint16_t" reads "xdg_uint16_t" and "uint32_t" reads "xdg_uint32_t". (Bug 5601 has a typo, it reads "xdb" instead of "xdg" in the verbal description.

The patch looks ok, though.)

comment:10 Changed 18 years ago by rhwood@…

Please try the current portfile for gnome-vfs and report on its success/failure

comment:11 Changed 18 years ago by jmpp@…

Resolution: duplicate
Status: newclosed

Marking as duplicate of 5601 per Randall's request.

-jmpp

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

Note: See TracTickets for help on using tickets.