Bug 41752

Summary: error compiling libmcrypt on k6-processor (gcc -march=k6)
Product: Ports & Packages Reporter: Jens.Rehsack <Jens.Rehsack>
Component: Individual Port(s)Assignee: Tilman Keskinoz <arved>
Status: Closed FIXED    
Severity: Affects Only Me CC: rehsack
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
gost.c.patch none

Description Jens.Rehsack 2002-08-18 01:20:01 UTC
	portupgrade libmcrypt fails unexpected, some "research" identified the
        array name k6 in file modules/algorithms/gost.c as the problem
	it seems the preprocessor defines a symbol named k6 if compiling for k6-architecture

Fix: I submit a small+fast patch which seems to work (static array's, so naming doesn't matter),
	but further checks from maintainer or developer of libmcrypt may are required.
	I didn't check, but maybe using GCC3+ fix the problem.
How-To-Repeat: 	add CPUTYPE=k6/k6-2/k6-3 to /etc/make.conf
	cd /usr/ports/security/libmcrypt/
	make build
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2002-11-08 10:15:59 UTC
Responsible Changed
From-To: freebsd-ports->arved

I am researching this problem with the submitter
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2002-11-08 12:38:03 UTC
State Changed
From-To: open->closed

Broken Optimization Bug reported to Author of libmcrypt.