Bug 55706 - x11/gnomeapplets2 port doesn't build on freebsd 4.6.2
Summary: x11/gnomeapplets2 port doesn't build on freebsd 4.6.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-18 21:00 UTC by Marc Unangst
Modified: 2003-08-20 06:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Unangst 2003-08-18 21:00:25 UTC
	The x11/gnomeapplets2 port fails to build on a system with a 4.6.2
	kernel (possibly other versions as well) with this error:

gmake[2]: Entering directory `/usr0/ports/build/usr/ports/x11/gnomeapplets2/work/gnome-applets-2.2.2/wireless'
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -DORBIT2=1 -D_THREAD_SAFE -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libart-2.0 -I/usr/local/include/orbit-2.0 -I/usr/local/include/libbonobo-2.0 -I/usr/local/include/linc-1.0 -I/usr/local/include/bonobo-activation-2.0 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/X11R6/include/panel-2.0 -I/usr/X11R6/include/libgnomeui-2.0 -I/usr/X11R6/include/libbonoboui-2.0 -I/usr/X11R6/include/libgnome-2.0 -I/usr/X11R6/include/libgnomecanvas-2.0 -I/usr/X11R6/include/gconf/2 -I/usr/X11R6/include/gnome-vfs-2.0 -I/usr/X11R6/lib/gnome-vfs-2.0/include   -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/libglade-2.0 -I!
 /usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/freetype2   -DICONDIR=\""/usr/X11R6/share/gnome/pixmaps"\" -DGNOMELOCALEDIR=\""/usr/X11R6/share/locale"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED   -I/usr/local/include  -O -pipe -march=pentiumpro -c wireless-applet.c
wireless-applet.c:39: dev/wi/if_wavelan_ieee.h: No such file or directory
wireless-applet.c:112: warning: `struct wi_req' declared inside parameter list
wireless-applet.c:112: warning: its scope is only this definition or declaration, which is probably not what you want.
wireless-applet.c:417: warning: `struct wi_req' declared inside parameter list
wireless-applet.c:418: conflicting types for `wi_getval'
wireless-applet.c:112: previous declaration of `wi_getval'
wireless-applet.c: In function `wi_getval':
wireless-applet.c:438: `SIOCGWAVELAN' undeclared (first use in this function)
wireless-applet.c:438: (Each undeclared identifier is reported only once
wireless-applet.c:438: for each function it appears in.)
wireless-applet.c: In function `get_wi_data':
wireless-applet.c:455: storage size of `wreq' isn't known
wireless-applet.c:460: `WI_MAX_DATALEN' undeclared (first use in this function)
wireless-applet.c:461: `WI_RID_COMMS_QUALITY' undeclared (first use in this function)
gmake[2]: *** [wireless-applet.o] Error 1
gmake[2]: Leaving directory `/usr0/ports/build/usr/ports/x11/gnomeapplets2/work/gnome-applets-2.2.2/wireless'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr0/ports/build/usr/ports/x11/gnomeapplets2/work/gnome-applets-2.2.2'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop in /usr/ports/x11/gnomeapplets2.
*** Error code 1

Stop in /usr/ports/x11/gnome2.

	This appears to be because there is no <dev/wi/if_wavelan_ieee.h> file on
	this system.

Fix: 

It looks like the problem was introduced in r1.5 of
	ports/x11/gnomeapplets2/files/patch-wireless_wireless-applet.c,
	when the "wi" driver support was added.  I reverted to r1.4
	of this file and the port builds fine on my 4.6.2 system.
	(Of course, I don't have "wi" driver support in the gnome
	wireless applet that way, but this machine doesn't have a wireless
	card so it doesn't really matter.)
How-To-Repeat: 	cd /usr/ports/x11/gnomeapplets2 && make install

	(on a 4.6.2 system)
Comment 1 Alexander Nedotsukov freebsd_committer freebsd_triage 2003-08-19 07:37:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainers.
Comment 2 Alexander Nedotsukov freebsd_committer freebsd_triage 2003-08-20 06:35:28 UTC
State Changed
From-To: open->closed

This must be fixed now. Thanks for report!