Bug 82599 - ports/misc/mtx wont compile on amd64
Summary: ports/misc/mtx wont compile on amd64
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: Martin Blapp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-24 08:10 UTC by Morten A. Middelthon
Modified: 2005-11-30 14:18 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 Morten A. Middelthon 2005-06-24 08:10:06 UTC
The port misc/mtx would not compile on amd64. The port is marked as broken for the amd64, ia64 and sparc64 platform. Output from make:

===>  Building for mtx-1.2.17rel_1
cc -O -pipe  -m486 -DVERSION="\"1.2.17rel\"" -I/usr/src/linux/include -DLONG_PRINT_REQUEST_SENSE=1  -c -o mtx.o mtx.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
mtx.c:1: error: CPU you selected does not support x86-64 instruction set
gmake: *** [mtx.o] Error 1
*** Error code 2

Stop in /usr/ports/misc/mtx.

Fix: 

Apply the following patches:

in /usr/ports/misc
http://coretrekker.com/~morten/mtx.diff
(This patch was created by Roland Smith <rsmith@xs4all.nl>)

in /usr/ports/misc/mtx
http://coretrekker.com/~morten/Makefile.diff

The program will now compile and run correctly
How-To-Repeat: Apply the following patch to /usr/ports/misc/mtx/Makefile:

http://coretrekker.com/~morten/Makefile.diff

Then run 'make' in /usr/ports/misc/mtx
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-08-26 10:33:59 UTC
Responsible Changed
From-To: freebsd-amd64->mbr

This is really a ports-PR; over to maintainer
Comment 2 Florent Thoumie freebsd_committer freebsd_triage 2005-11-30 14:18:57 UTC
State Changed
From-To: open->closed

Committed. Thanks!