Making GnuPg w/Cygwin

halpin at qwpage.com halpin at qwpage.com
Wed Oct 31 23:42:01 CET 2001


Hello all, this is my first post.

Right off the bat you'll have to forgive me - I work on a Windoze box. So, 
speak slowly and use simple words. :-)

I've used Cygwin successfully in the past to make Win32 Tcl/Tk binaries that 
run on this box, so I think my my environment is fairly sound. The versions 
are:

	Cygwin B20
	gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
	GNU assembler version 2.9.4 (i586-cygwin32) using BFD version 2.9.4
	GNU Make version 3.75

I'm trying to make GnuPg 1.0.6
	
Problem 1
----------------
	bash-2.02$ cd //d/gnupg-1.0.6
	bash-2.02$ cd zlib
	bash-2.02$ make clean
	test -z "libzlib.a" || rm -f libzlib.a
	test -z "foo.gz" || rm -f foo.gz
	rm -f *.o core *.core
	bash-2.02$ make
	gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -c adler32.c
	gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -c compress.c
	<snip>
	gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -c inffast.c
	rm -f libzlib.a
	ar cru libzlib.a adler32.o compress.o crc32.o uncompr.o <snip>
	libzlib.a
	libzlib.a: 1: Syntax error: redirection unexpected
	make: *** [libzlib.a] Error 2
	bash-2.02$

In the MAKEFILE I see:

	<big snip>
	RANLIB = 
	<big snip>
	libzlib.a: $(libzlib_a_OBJECTS) $(libzlib_a_DEPENDENCIES)
		-rm -f libzlib.a
		$(AR) cru libzlib.a $(libzlib_a_OBJECTS) $(libzlib_a_LIBADD)
		$(RANLIB) libzlib.a

If I remove the last line ($(RANLIB) libzlib.a, I can get all the way through. Is 
this the correct thing to do? (There is a ranlib in my cygwin bin directory.)

Problem 2
--------------
Having removed the RANLIB statements in several of the MAKEFILEs, I now 
get this:

	<snip>
	`echo gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl    -g -O2 -Wall 
	-D	IS_MODULE -shared -fPIC -o tiger ./tiger.c | \
	    sed -e 's/-O[2-9s]*/-O/g' `
	gcc: unrecognized option `-shared'
	In file included from ./tiger.c:26:
	..\include\util.h:207: warning: `stricmp' redefined
	C:\cygnus\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-
		2.91.57\..\..\
	..\..\i586-cygwin32\include\string.h:76: warning: this is the location of the
		previous definition
	/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/as.exe: bfd assertion
		fail /home/noer/src/b20/comp-tools/devo/bfd/coff-i386.c:479
	C:\Temp\ccz8EiPb.s: Assembler messages:
	C:\Temp\ccz8EiPb.s:2261: Error: Cannot represent relocation type
		BFD_RELOC_386_GOTPC
	/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/as.exe: bfd assertion
		fail /home/noer/src/b20/comp-tools/devo/bfd/coff-i386.c:479
	C:\Temp\ccz8EiPb.s:2357: Error: Cannot represent relocation type
		BFD_RELOC_386_GOTPC
	/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/as.exe: bfd assertion
		fail /home/noer/src/b20/comp-tools/devo/bfd/coff-i386.c:479
	C:\Temp\ccz8EiPb.s:2565: Error: Cannot represent relocation type
		BFD_RELOC_386_GOTPC
	/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/as.exe: bfd assertion
		fail /home/noer/src/b20/comp-tools/devo/bfd/coff-i386.c:479
	C:\Temp\ccz8EiPb.s:2931: Error: Cannot represent relocation type
		BFD_RELOC_386_GOTPC
	/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/as.exe: bfd assertion
		fail /home/noer/src/b20/comp-tools/devo/bfd/coff-i386.c:479
	C:\Temp\ccz8EiPb.s:3200: Error: Cannot represent relocation type
		BFD_RELOC_386_GOTPC
	/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/as.exe: bfd assertion
		fail /home/noer/src/b20/comp-tools/devo/bfd/coff-i386.c:479
	C:\Temp\ccz8EiPb.s:3356: Error: Cannot represent relocation type
		BFD_RELOC_386_GOTPC
	/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/as.exe: bfd assertion
		fail /home/noer/src/b20/comp-tools/devo/bfd/coff-i386.c:479
	C:\Temp\ccz8EiPb.s:3761: Error: Cannot represent relocation type
		BFD_RELOC_386_GOTPC
	/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/as.exe: bfd assertion
		 fail /home/noer/src/b20/comp-tools/devo/bfd/coff-i386.c:479
	C:\Temp\ccz8EiPb.s:3875: Error: Cannot represent relocation type
		BFD_RELOC_386_GOTPC
	make[2]: *** [tiger] Error 1
	make[1]: *** [all-recursive] Error 1
	make: *** [all-recursive-am] Error 2
	
	:-(

Asserts, eh? Who the heck do 'ya call on this?

--------------------------------------------

Any tips appreciated - and if this is posted to the wrong list please accept 
my apologies. 

Regards
Bob Halpin

(I may be crazy, but I'm not (too) stupid.)

P.S. - Anybody got a MAKEFILE for Borland?




More information about the Gnupg-devel mailing list