Bug 121207 - security/libgcrypt - libgcrypt-1.4.0 fails to build
Summary: security/libgcrypt - libgcrypt-1.4.0 fails to build
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: Tilman Keskinoz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-29 05:50 UTC by marka
Modified: 2008-02-29 09:40 UTC (History)
0 users

See Also:


Attachments
patch.diff (370 bytes, patch)
2008-02-29 09:18 UTC, Barbara
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description marka 2008-02-29 05:50:01 UTC
	
	libgcrypt-1.4.0 fails to build due to failure to get register
	in asm code.
	
 cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -Wpointer-arith -MT rijndael.lo -MD -MP -MF .deps/rijndael.Tpo -c rijndael.c  -fPIC -DPIC -o .libs/rijndael.o
 cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -Wpointer-arith -MT rijndael.lo -MD -MP -MF .deps/rijndael.Tpo -c rijndael.c -o rijndael.o >/dev/null 2>&1
*** Error code 1

Stop in /usr/ports/security/libgcrypt/work/libgcrypt-1.4.0/cipher.
*** Error code 1

Stop in /usr/ports/security/libgcrypt/work/libgcrypt-1.4.0.
*** Error code 1

Stop in /usr/ports/security/libgcrypt/work/libgcrypt-1.4.0.
*** Error code 1

Stop in /usr/ports/security/libgcrypt.
drugs# cd /usr/ports/security/libgcrypt/work/libgcrypt-1.4.0/cipher/            drugs# cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -Wpointer-arith -MT rijndael.lo -MD -MP -MF .deps/rijndael.Tpo -c rijndael.c -o rijndael.o
rijndael.c: In function `do_padlock':
rijndael.c:2062: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
drugs# 

	The assembly is conditional on USE_PADLOCK being set.

Fix: 

Add --disable-padlock-support to CONFIGURE_ARGS in Makefile.

	e.g.
	CONFIGURE_ARGS+=       --disable-padlock-support
Comment 1 Edwin Groothuis freebsd_committer 2008-02-29 06:09:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->arved

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Barbara 2008-02-29 09:18:10 UTC
Yestarday I was facing the same problem.
I had it built using make CFLAGS=-O0



--- Makefile.orig	2008-02-28 22:44:48.000000000 +0100
+++ Makefile	2008-02-29 03:30:24.000000000 +0100
@@ -22,6 +22,8 @@
 CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
 USE_LDCONFIG=	yes

+CFLAGS+=	-O0
+
 DOCS=	AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README README.SVN \
 	THANKS TODO doc/HACKING doc/README.apichanges
 INFO=	gcrypt

Comment 3 dfilter service freebsd_committer 2008-02-29 09:32:45 UTC
arved       2008-02-29 09:32:39 UTC

  FreeBSD ports repository

  Modified files:
    security/libgcrypt   Makefile 
  Log:
  Disable padlock-support on 6.x
  
  PR:             121207
  Submitted by:   ale, Mark Andrews
  
  Revision  Changes    Path
  1.38      +3 -0      ports/security/libgcrypt/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Tilman Keskinoz freebsd_committer 2008-02-29 09:32:59 UTC
State Changed
From-To: open->closed

Committed, thanks