Bug 69885 - [patch] unbreak xmbmon for gcc 3.4.2
Summary: [patch] unbreak xmbmon for gcc 3.4.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-ports-bugs mailing list
Depends on:
Reported: 2004-08-01 22:30 UTC by Alexander Marx
Modified: 2004-08-02 08:56 UTC (History)
0 users

See Also:

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

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Marx 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

	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 Kirill Ponomarev freebsd_committer 2004-08-02 08:56:27 UTC
State Changed
From-To: open->closed

Committed, thanks!