[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Building rpm-4.0.4 on SunOS 5.7 sparc



On Wed, Feb 06, 2002 at 11:59:19AM -0500, Serguei Ostrovskii wrote:
> There are problems when building rpm-4.0.4 from /test-4.0.4 on ftp.rpm.org
> on SunOS 5.7 sparc. gcc-2.95.3 & binutils-2.11.92.0.12.3 used.
> 1.
> gcc -DHAVE_CONFIG_H -I. -I. -I. -O3 -g -m32 -mtune=ultrasparc -I/usr/bin/../java/bin/../../include -I/usr/bin/../java/bin/../../include/solaris -c entropy.c    -fPIC -DPIC -o entropy.lo
> entropy.c: In function `entropy_ttybits':
> entropy.c:1198: invalid operands to binary >>
> 
> Patch to fix:
> --- beecrypt/entropy.c.orig     Wed Feb  6 11:30:50 2002
> +++ beecrypt/entropy.c  Wed Feb  6 11:31:23 2002
> @@ -1195,7 +1195,7 @@
>                 /* get 16 bits from the sample */
>                 temp <<= 16;
>                 /* discard the 10 lowest bits i.e. 1024 nanoseconds */
> -               temp |= (uint16)(hrtsample >> 10);
> +               temp |= (uint16)(hrtsample._l[0] >> 10);
>                 randombits -= 16;
>                 #elif HAVE_GETTIMEOFDAY
>                 /* discard the 4 lowest bits i.e. 4 microseconds */
> The main problem is that gcc doesn't handle 64 bit "long long"(s)

IIRC there are far bigger problems than this in beecrypt if compiler
does not support "long long". Might just be little endian platfroms,
I fergit ...

> 
> 2.
> 
> /bin/sh ../libtool --mode=link gcc  -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts  -o librpmio.la -rpath /usr/local/lib -release 4.0.4 digest.lo macro.lo rpmio.lo rpmlog.lo rpmmalloc.lo rpmpgp.lo rpmrpc.lo strcasecmp.lo stubs.lo url.lo ugid.lo base64.lo beecrypt.lo blockmode.lo blockpad.lo blowfish.lo blowfishopt.lo dhaes.lo dldp.lo dlkp.lo dlpk.lo dlsvdp-dh.lo dsa.lo elgamal.lo endianness.lo entropy.lo fips180.lo fips180opt.lo fips186.lo hmac.lo hmacmd5.lo hmacsha1.lo hmacsha256.lo md5.lo memchunk.lo mp32.lo mp32barrett.lo mp32number.lo mp32opt.lo mp32prime.lo mtprng.lo rsa.lo rsakp.lo rsapk.lo sha256.lo timestamp.lo -L../zlib -R../zlib  -L/usr/local/lib -R/usr/local/lib  -L/usr/ucblib -R/usr/ucblib  -lnsl -lsocket -lbz2 ../zlib/libz.la -lrt -lpthread
> libtool: link: only absolute run-paths are allowed
> make[2]: *** [librpmio.la] Error 1
> 
> Here I am not sure if -R../zlib is OK ...

Yup. Hack to use the system zlib library if necessary.

And, FWIW, you can expect some "-lrt -lpthread" heartburn on non-linux as well.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@jbj.org	(jbj@redhat.com)
Chapel Hill, NC





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []