Bug 20844

Summary: ports/x11/gnomelibs does not compile
Product: Ports & Packages Reporter: John Ioannidis <ji>
Component: Individual Port(s)Assignee: Ade Lovett <ade>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description John Ioannidis 2000-08-25 19:20:00 UTC
typing "make" in /usr/ports/x11/gnomelibs aborts this way:

cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/usr/X11R6/include -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include -DGNOMELIBDIR=\"/usr/X11R6/lib\" -DGNOMEDATADIR=\"/usr/X11R6/share/gnome\" -DGNOMEBINDIR=\"/usr/X11R6/bin\" -DGNOMELOCALSTATEDIR=\"/usr/X11R6/share/gnome\" -DGNOMELOCALEDIR=\"/usr/X11R6/share/locale\" -DGNOMESYSCONFDIR=\"/usr/X11R6/etc\" -DVERSION=\"1.2.4\" -DG_LOG_DOMAIN=\"Gnome\" -I/usr/local/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -O -pipe -Wall -Wunused -c gnome-magic.c  -fPIC -DPIC -o .libs/gnome-magic.lo
gnome-magic.c:288: macro `g_array_append_val' used with only 2 args
gnome-magic.c:293: macro `g_array_append_val' used with only 2 args
gnome-magic.c: In function `gnome_magic_parse':
gnome-magic.c:187: too many arguments to function `g_array_new'
gnome-magic.c:288: syntax error before `,'
gnome-magic.c:288: too few arguments to function `g_rarray_append'
gnome-magic.c:293: syntax error before `,'
gnome-magic.c:293: too few arguments to function `g_rarray_append'
gmake[2]: *** [gnome-magic.lo] Error 1
gmake[2]: Leaving directory `/usr/cvsrc/ports/x11/gnomelibs/work/gnome-libs-1.2.4/libgnome'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/cvsrc/ports/x11/gnomelibs/work/gnome-libs-1.2.4'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop in /usr/cvsrc/ports/x11/gnomelibs.
*** Error code 1

Stop in /usr/cvsrc/ports/x11/gnomelibs.
*** Error code 1

Stop in /usr/cvsrc/ports/x11/gnomelibs.

Fix: 

Fix the syntax errors!

	How could this have passed the release tests?  There are
syntax errors in the file!
How-To-Repeat: 
	Try making gnomelibs
Comment 1 Ade Lovett freebsd_committer freebsd_triage 2000-08-25 19:34:40 UTC
On Fri, Aug 25, 2000 at 02:19:51PM -0400, John Ioannidis wrote:
> gnome-magic.c:288: macro `g_array_append_val' used with only 2 args
> gnome-magic.c:293: macro `g_array_append_val' used with only 2 args
> gnome-magic.c: In function `gnome_magic_parse':
> gnome-magic.c:187: too many arguments to function `g_array_new'
> gnome-magic.c:288: syntax error before `,'
> gnome-magic.c:288: too few arguments to function `g_rarray_append'
> gnome-magic.c:293: syntax error before `,'
> gnome-magic.c:293: too few arguments to function `g_rarray_append'

All of the above functions come from glib.  You are running glib/gtk
1.2.8 aren't you?

Remove all traces of GNOME from your system, do a pkg_version -v,
and update the appropriate ports.

Then try gnomelibs again.


> How could this have passed the release tests?  There are
> syntax errors in the file!

Only if you don't follow the instructions and keep things up-to-date.
Yes, there are deficiences in the dependency versioning.  Yes, they're
being looked at.

Not surprisingly, the build machines tend to use fully up-to-date
ports, and thus don't get errors associated with not keep your
ports tree fully up-to-date, especially for major things like
glib/gtk.

-aDe

-- 
Ade Lovett, Austin, TX.			ade@FreeBSD.org
FreeBSD: The Power to Serve		http://www.FreeBSD.org/
Comment 2 Ade Lovett freebsd_committer freebsd_triage 2000-08-25 20:06:02 UTC
State Changed
From-To: open->feedback

Waiting for originator to confirm they don't have 
a fully up-to-date installation of glib/gtk 


Comment 3 Ade Lovett freebsd_committer freebsd_triage 2000-08-25 20:06:02 UTC
Responsible Changed
From-To: freebsd-ports->ade

gnomelibs is mine
Comment 4 Ade Lovett freebsd_committer freebsd_triage 2000-08-30 20:06:29 UTC
State Changed
From-To: feedback->closed

Obviously, the critical nature of this PR was such that the 
submitter seemed to be unable to provide an email address that 
actually worked.