Errors compiling 1.2.4 on OpenBSD 3.4

David Shaw dshaw at jabberwocky.com
Mon Dec 29 15:43:28 CET 2003


On Mon, Dec 29, 2003 at 05:55:08PM +0100, Richard Cattien wrote:
> Hi,
> 
> i have problems compiling gnupg-1.2.4 on OpenBSD 3.4. It's a fresh
> install. The error appears with make and gmake:
> 
> ===snip===
> ...
> _mpih-mul1.s: Assembler messages:
> _mpih-mul1.s:114: Error: Alignment not a power of 2
> _mpih-mul1.s:132: Error: Alignment not a power of 2
> gmake[2]: *** [mpih-mul1.o] Error 1
> gmake[2]: Leaving directory `/usr/local/src/gnupg-1.2.4/mpi'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/local/src/gnupg-1.2.4'
> gmake: *** [all] Error 2
> ===snip===
> 
> I also attached the output of ./configure as a .txt file

OpenBSD used to have a different/unusual assembler than the other
BSDs, so there is special code to handle that.  If OpenBSD 3.4 changes
this, then there could be a problem.

What happens if you apply the attached patch to mpi/config.links ?

David
-------------- next part --------------
Index: config.links
===================================================================
RCS file: /cvs/gnupg/gnupg/mpi/config.links,v
retrieving revision 1.30.2.6
diff -u -r1.30.2.6 config.links
--- config.links	2 Dec 2003 05:13:35 -0000	1.30.2.6
+++ config.links	29 Dec 2003 20:32:09 -0000
@@ -62,6 +62,11 @@
        cat  $srcdir/mpi/i386/syntax.h	 >>./mpi/asm-syntax.h
        path="i386"
        ;;
+    i[34567]86*-*-openbsd3*)
+       echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h
+       cat  $srcdir/mpi/i386/syntax.h	 >>./mpi/asm-syntax.h
+       path="i386"
+       ;;
 # Use old assembler syntax for OpenBSD as their assembler is really old.
     i[34567]86*-*-openbsd*)
 	echo '#define BSD_SYNTAX' >>./mpi/asm-syntax.h


More information about the Gnupg-users mailing list