Subject: problems compiling the ssh package
To: None <port-pc532@netbsd.org>
From: Jon Buller <jonb@metronet.com>
List: port-pc532
Date: 11/24/1998 10:20:07
I tried compiling ssh today, and ran into this:

     cc -DPACKAGE=\"gmp\" -DVERSION=\"2.0.2-ssh-2\" -DSTDC_HEADERS=1
     -DHAVE_RANDOM=1 -DSIZEOF_INT=4 -DHAVE_ALLOCA=1 -DC_UNDERSCORE=1
     -I. -I. -I.. -I./..  -O2 -I/usr/pkg/include -c addmul_1.c
     In file included from addmul_1.c:27:
     ../longlong.h:723: syntax error before `:'
     *** Error code 1

     Stop.

That seems to point to this #define...

     #define count_trailing_zeros(count,x) \
       do {
         __asm__ ("ffsd      %2,%0"                                          \
                  : "=r" ((USItype) (count))                                 \
                  : "0" ((USItype) 0),                                       \
                    "r" ((USItype) (x)));                                    \
       } while (0)

However, I've had other minor problems building recently, and was wondering
if anyone else has gotten this to build properly, or if I need to dig out
a gcc manual and play with this asm statement.  (I wonder if I have a copy
around here... I used to, but I have no idea where it might be right now...)

Jon