compiling gpg 1.2.0 on HP-UX

David Ellement ellement@sdd.hp.com
Wed Sep 25 19:20:01 2002


--s9fJI615cBHmzTOP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On 020925, at 11:49:06, David Shaw wrote
> Which lines is this in longlong.h?  Is it 318 and 365-380 ?

Certainly 365-380 were part of the problem.  See the attached diff.


> > The keyserver/Makefile only includes -lldap in gpgkeys_ldap_LDADD, so
> > gpgkeys_ldap is unable to resolve host names.
> 
> This doesn't make total sense.  The autoconf check should have
> detected that.  Did you end up with a gpgkeys_ldap that didn't resolve
> host names, or did it not compile at all?

It compiled, but it didn't resolve host names; it worked with IP
addresses.  I've attached the sections from config.log that had to do
with configuring for the ldap interface.  (The string 'lber' doesn't
appear anywhere in config.log)

-- 
David Ellement <ellement@sdd.hp.com>   | Hewlett Packard, AiO Division
Voice: +1 858 655 5592                 | 16399 West Bernardo Drive, MS 8-70
FAX:   +1 858 655 4374                 | San Diego, CA  92127-1899

--s9fJI615cBHmzTOP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="longlong.diff"

--- mpi/longlong.h.orig	2002-08-24 08:01:05.000000000 -0700
+++ mpi/longlong.h	2002-09-23 15:10:27.000000000 -0700
@@ -314,8 +314,8 @@
  ***************************************/
 #if defined (__hppa) && W_TYPE_SIZE == 32
 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
-  __asm__ ("add %4,%5,%1\n"                                             \
- 	   "addc %2,%3,%0"                                              \
+  __asm__ ("	add %4,%5,%1\n"                                             \
+ 	   "	addc %2,%3,%0"                                              \
 	   : "=r" ((USItype)(sh)),                                      \
 	     "=&r" ((USItype)(sl))                                      \
 	   : "%rM" ((USItype)(ah)),                                     \
@@ -323,8 +323,8 @@
 	     "%rM" ((USItype)(al)),                                     \
 	     "rM" ((USItype)(bl)))
 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \
-  __asm__ ("sub %4,%5,%1\n"                                             \
-	   "subb %2,%3,%0"                                              \
+  __asm__ ("	sub %4,%5,%1\n"                                             \
+	   "	subb %2,%3,%0"                                              \
 	   : "=r" ((USItype)(sh)),                                      \
 	     "=&r" ((USItype)(sl))                                      \
 	   : "rM" ((USItype)(ah)),                                      \
@@ -337,7 +337,7 @@
     union {UDItype __ll;						\
 	   struct {USItype __h, __l;} __i;				\
 	  } __xx;							\
-    __asm__ ("xmpyu %1,%2,%0"                                           \
+    __asm__ ("	xmpyu %1,%2,%0"                                           \
 	     : "=*f" (__xx.__ll)                                        \
 	     : "*f" ((USItype)(u)),                                     \
 	       "*f" ((USItype)(v)));                                    \
@@ -362,21 +362,21 @@
   do {								       \
     USItype __tmp;						       \
     __asm__ (				                               \
-       "ldi             1,%0                                       \n" \
-       "extru,= 	%1,15,16,%%r0  ; Bits 31..16 zero?         \n" \
-       "extru,tr	%1,15,16,%1    ; No.  Shift down, skip add.\n" \
-       "ldo		16(%0),%0      ; Yes.	Perform add.       \n" \
-       "extru,= 	%1,23,8,%%r0   ; Bits 15..8 zero?          \n" \
-       "extru,tr	%1,23,8,%1     ; No.  Shift down, skip add.\n" \
-       "ldo		8(%0),%0       ; Yes.	Perform add.       \n" \
-       "extru,= 	%1,27,4,%%r0   ; Bits 7..4 zero?           \n" \
-       "extru,tr	%1,27,4,%1     ; No.  Shift down, skip add.\n" \
-       "ldo		4(%0),%0       ; Yes.	Perform add.       \n" \
-       "extru,= 	%1,29,2,%%r0   ; Bits 3..2 zero?           \n" \
-       "extru,tr	%1,29,2,%1     ; No.  Shift down, skip add.\n" \
-       "ldo		2(%0),%0       ; Yes.	Perform add.       \n" \
-       "extru		%1,30,1,%1     ; Extract bit 1.            \n" \
-       "sub		%0,%1,%0       ; Subtract it.              "   \
+       "	ldi             1,%0                                       \n" \
+       "	extru,= 	%1,15,16,%%r0  ; Bits 31..16 zero?         \n" \
+       "	extru,tr	%1,15,16,%1    ; No.  Shift down, skip add.\n" \
+       "	ldo		16(%0),%0      ; Yes.	Perform add.       \n" \
+       "	extru,= 	%1,23,8,%%r0   ; Bits 15..8 zero?          \n" \
+       "	extru,tr	%1,23,8,%1     ; No.  Shift down, skip add.\n" \
+       "	ldo		8(%0),%0       ; Yes.	Perform add.       \n" \
+       "	extru,= 	%1,27,4,%%r0   ; Bits 7..4 zero?           \n" \
+       "	extru,tr	%1,27,4,%1     ; No.  Shift down, skip add.\n" \
+       "	ldo		4(%0),%0       ; Yes.	Perform add.       \n" \
+       "	extru,= 	%1,29,2,%%r0   ; Bits 3..2 zero?           \n" \
+       "	extru,tr	%1,29,2,%1     ; No.  Shift down, skip add.\n" \
+       "	ldo		2(%0),%0       ; Yes.	Perform add.       \n" \
+       "	extru		%1,30,1,%1     ; Extract bit 1.            \n" \
+       "	sub		%0,%1,%0       ; Subtract it.              "   \
        : "=r" (count), "=r" (__tmp) : "1" (x));                        \
   } while (0)
 #endif /* hppa */

--s9fJI615cBHmzTOP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="config.ldap.log"

PATH: /opt/openldap/bin

configure:1965: checking whether LDAP keyserver support is requested
configure:1974: result: yes

configure:4581: checking whether LDAP via "-lldap" is present and sane
configure:4602: gcc -o conftest -O2 -I/home/e/l/ellement/include -L/home/e/l/ellement/lib conftest.c -lldap   >&5
configure:4605: $? = 0
configure:4608: test -s conftest
configure:4611: $? = 0
configure:4620: result: yes

gnupg_cv_func_ldap_init=yes


--s9fJI615cBHmzTOP--