Bug 69885 - [patch] unbreak xmbmon for gcc 3.4.2
[patch] unbreak xmbmon for gcc 3.4.2
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: FreeBSD ports mailing list
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-01 22:30 UTC by mad
Modified: 2004-08-02 08:56 UTC (History)
0 users

See Also:


Attachments
file.diff (447 bytes, patch)
2004-08-01 22:30 UTC, mad
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mad 2004-08-01 22:30:24 UTC
	xmbmon port fails to compile on -current with gcc 3.4.2

Fix: the following small patch seems to fix this; verified to build/run on
	5.2-CURRENT (as of Jul 31) and 4.10-STABLE (from Jul 17).
How-To-Repeat: 	on a system with gcc 3.4.2

	cd /usr/ports/sysutils/xmbmon
	make

	the compile then stops with

	cc -O -pipe   -I. -DHAVE_CONFIG_H -Wall -s -o testsmb testsmb.c pci_pm.o smbuses.o smbus_piix4.o smbus_amd.o smbus_ali.o smbus_amd8.o 
	testsmb.c: In function `main':
	testsmb.c:146: error: label at end of compound statement
	*** Error code 1
	
	Stop in /usr/ports/sysutils/xmbmon/work/xmbmon204.
	*** Error code 1
	
	Stop in /usr/ports/sysutils/xmbmon.
Comment 1 krion freebsd_committer 2004-08-02 08:56:27 UTC
State Changed
From-To: open->closed

Committed, thanks!