Subject: Re: bootstap on ubuntu
To: Gabor SUVEG <gsuveg@gmail.com>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: tech-pkg
Date: 11/04/2005 11:00:27
--Apple-Mail-1-331584511
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
Hi,
On Nov 4, 2005, at 9:09 AM, Gabor SUVEG wrote:
> im try compile bootstap in ubuntu:
>
> sha2hl.c:260: warning: passing argument 2 of 'SHA512_Update' from
> incompatible pointer type
> make: *** [sha2hl.o] Error 1
> ===> exited with status 2
>
> it drop an error.
>
> www.suveg.hu/pkgsrc here is the long version.
>
> im updated pkgsrc with cvs today.
>
> have anybody idea ?
I get the same error on debian x86_64, using gcc-4
it compiles using gcc-3, so you can try to set CC=gcc-3.3 before
building.
Here a log of the digest part of the bootstrap under linux x86_64
with gcc 4.0.2, i have no clue on how to fix it.
--Apple-Mail-1-331584511
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="bootstraplog"
Content-Disposition: attachment;
filename=bootstraplog
===> Installing digest
===> running: /bin/sh work/install-sh -d -o root -g root work/digest
===> running: (cd work/digest; env /bin/sh ./configure -C --prefix=/global/fleury2/vol/pkg --sysconfdir=/global/fleury2/vol/pkg/etc && make && make install)
configure: creating cache config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gawk... no
checking for mawk... mawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking for stdlib.h... (cached) yes
checking sys/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking sys/byteorder.h usability... no
checking sys/byteorder.h presence... no
checking for sys/byteorder.h... no
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for __attribute__... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for long long... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking whether byte ordering is bigendian... no
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for vprintf... yes
checking for _doprnt... no
checking for bcopy... yes
checking for bzero... yes
checking for memset... yes
checking for memcpy... yes
checking for setlocale... yes
updating cache config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"x86_64-unknown-linux-gnu\" -DVERSION=\"20050731\" -g -O2 -c bits.c -o bits.o
gcc -g -O2 -o bits bits.o
./bits digest-types.h
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"x86_64-unknown-linux-gnu\" -DVERSION=\"20050731\" -g -O2 -c digest.c -o digest.o
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"x86_64-unknown-linux-gnu\" -DVERSION=\"20050731\" -g -O2 -c md5c.c -o md5c.o
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"x86_64-unknown-linux-gnu\" -DVERSION=\"20050731\" -g -O2 -c rmd160.c -o rmd160.o
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"x86_64-unknown-linux-gnu\" -DVERSION=\"20050731\" -g -O2 -c rmd160hl.c -o rmd160hl.o
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"x86_64-unknown-linux-gnu\" -DVERSION=\"20050731\" -g -O2 -c sha2.c -o sha2.o
sha2.c:273: warning: large integer implicitly truncated to unsigned type
sha2.c:273: warning: large integer implicitly truncated to unsigned type
sha2.c:274: warning: large integer implicitly truncated to unsigned type
sha2.c:274: warning: large integer implicitly truncated to unsigned type
sha2.c:275: warning: large integer implicitly truncated to unsigned type
sha2.c:275: warning: large integer implicitly truncated to unsigned type
sha2.c:276: warning: large integer implicitly truncated to unsigned type
sha2.c:276: warning: large integer implicitly truncated to unsigned type
sha2.c:277: warning: large integer implicitly truncated to unsigned type
sha2.c:277: warning: large integer implicitly truncated to unsigned type
sha2.c:278: warning: large integer implicitly truncated to unsigned type
sha2.c:278: warning: large integer implicitly truncated to unsigned type
sha2.c:279: warning: large integer implicitly truncated to unsigned type
sha2.c:279: warning: large integer implicitly truncated to unsigned type
sha2.c:280: warning: large integer implicitly truncated to unsigned type
sha2.c:280: warning: large integer implicitly truncated to unsigned type
sha2.c:281: warning: large integer implicitly truncated to unsigned type
sha2.c:281: warning: large integer implicitly truncated to unsigned type
sha2.c:282: warning: large integer implicitly truncated to unsigned type
sha2.c:282: warning: large integer implicitly truncated to unsigned type
sha2.c:283: warning: large integer implicitly truncated to unsigned type
sha2.c:283: warning: large integer implicitly truncated to unsigned type
sha2.c:284: warning: large integer implicitly truncated to unsigned type
sha2.c:284: warning: large integer implicitly truncated to unsigned type
sha2.c:285: warning: large integer implicitly truncated to unsigned type
sha2.c:285: warning: large integer implicitly truncated to unsigned type
sha2.c:286: warning: large integer implicitly truncated to unsigned type
sha2.c:286: warning: large integer implicitly truncated to unsigned type
sha2.c:287: warning: large integer implicitly truncated to unsigned type
sha2.c:287: warning: large integer implicitly truncated to unsigned type
sha2.c:288: warning: large integer implicitly truncated to unsigned type
sha2.c:288: warning: large integer implicitly truncated to unsigned type
sha2.c:289: warning: large integer implicitly truncated to unsigned type
sha2.c:289: warning: large integer implicitly truncated to unsigned type
sha2.c:290: warning: large integer implicitly truncated to unsigned type
sha2.c:290: warning: large integer implicitly truncated to unsigned type
sha2.c:291: warning: large integer implicitly truncated to unsigned type
sha2.c:291: warning: large integer implicitly truncated to unsigned type
sha2.c:292: warning: large integer implicitly truncated to unsigned type
sha2.c:292: warning: large integer implicitly truncated to unsigned type
sha2.c:293: warning: large integer implicitly truncated to unsigned type
sha2.c:293: warning: large integer implicitly truncated to unsigned type
sha2.c:294: warning: large integer implicitly truncated to unsigned type
sha2.c:294: warning: large integer implicitly truncated to unsigned type
sha2.c:295: warning: large integer implicitly truncated to unsigned type
sha2.c:295: warning: large integer implicitly truncated to unsigned type
sha2.c:296: warning: large integer implicitly truncated to unsigned type
sha2.c:296: warning: large integer implicitly truncated to unsigned type
sha2.c:297: warning: large integer implicitly truncated to unsigned type
sha2.c:297: warning: large integer implicitly truncated to unsigned type
sha2.c:298: warning: large integer implicitly truncated to unsigned type
sha2.c:298: warning: large integer implicitly truncated to unsigned type
sha2.c:299: warning: large integer implicitly truncated to unsigned type
sha2.c:299: warning: large integer implicitly truncated to unsigned type
sha2.c:300: warning: large integer implicitly truncated to unsigned type
sha2.c:300: warning: large integer implicitly truncated to unsigned type
sha2.c:301: warning: large integer implicitly truncated to unsigned type
sha2.c:301: warning: large integer implicitly truncated to unsigned type
sha2.c:302: warning: large integer implicitly truncated to unsigned type
sha2.c:302: warning: large integer implicitly truncated to unsigned type
sha2.c:303: warning: large integer implicitly truncated to unsigned type
sha2.c:303: warning: large integer implicitly truncated to unsigned type
sha2.c:304: warning: large integer implicitly truncated to unsigned type
sha2.c:304: warning: large integer implicitly truncated to unsigned type
sha2.c:305: warning: large integer implicitly truncated to unsigned type
sha2.c:305: warning: large integer implicitly truncated to unsigned type
sha2.c:306: warning: large integer implicitly truncated to unsigned type
sha2.c:306: warning: large integer implicitly truncated to unsigned type
sha2.c:307: warning: large integer implicitly truncated to unsigned type
sha2.c:307: warning: large integer implicitly truncated to unsigned type
sha2.c:308: warning: large integer implicitly truncated to unsigned type
sha2.c:308: warning: large integer implicitly truncated to unsigned type
sha2.c:309: warning: large integer implicitly truncated to unsigned type
sha2.c:309: warning: large integer implicitly truncated to unsigned type
sha2.c:310: warning: large integer implicitly truncated to unsigned type
sha2.c:310: warning: large integer implicitly truncated to unsigned type
sha2.c:311: warning: large integer implicitly truncated to unsigned type
sha2.c:311: warning: large integer implicitly truncated to unsigned type
sha2.c:312: warning: large integer implicitly truncated to unsigned type
sha2.c:313: warning: large integer implicitly truncated to unsigned type
sha2.c:317: warning: large integer implicitly truncated to unsigned type
sha2.c:318: warning: large integer implicitly truncated to unsigned type
sha2.c:319: warning: large integer implicitly truncated to unsigned type
sha2.c:320: warning: large integer implicitly truncated to unsigned type
sha2.c:321: warning: large integer implicitly truncated to unsigned type
sha2.c:322: warning: large integer implicitly truncated to unsigned type
sha2.c:323: warning: large integer implicitly truncated to unsigned type
sha2.c:325: warning: large integer implicitly truncated to unsigned type
sha2.c:329: warning: large integer implicitly truncated to unsigned type
sha2.c:330: warning: large integer implicitly truncated to unsigned type
sha2.c:331: warning: large integer implicitly truncated to unsigned type
sha2.c:332: warning: large integer implicitly truncated to unsigned type
sha2.c:333: warning: large integer implicitly truncated to unsigned type
sha2.c:334: warning: large integer implicitly truncated to unsigned type
sha2.c:335: warning: large integer implicitly truncated to unsigned type
sha2.c:337: warning: large integer implicitly truncated to unsigned type
sha2.c: In function 'SHA256_Final':
sha2.c:585: warning: right shift count >= width of type
sha2.c:585: warning: left shift count >= width of type
sha2.c: In function 'SHA512_Transform':
sha2.c:756: warning: right shift count >= width of type
sha2.c:756: warning: left shift count >= width of type
sha2.c:758: warning: left shift count >= width of type
sha2.c:758: warning: left shift count >= width of type
sha2.c:758: warning: right shift count >= width of type
sha2.c:763: warning: left shift count >= width of type
sha2.c:763: warning: right shift count >= width of type
sha2.c:763: warning: right shift count >= width of type
sha2.c:779: warning: left shift count >= width of type
sha2.c:779: warning: left shift count >= width of type
sha2.c:781: warning: left shift count >= width of type
sha2.c:781: warning: right shift count >= width of type
sha2.c:784: warning: left shift count >= width of type
sha2.c:784: warning: left shift count >= width of type
sha2.c:784: warning: right shift count >= width of type
sha2.c:786: warning: left shift count >= width of type
sha2.c:786: warning: right shift count >= width of type
sha2.c:786: warning: right shift count >= width of type
sha2.c: In function 'SHA512_Last':
sha2.c:869: warning: right shift count >= width of type
sha2.c:869: warning: left shift count >= width of type
sha2.c:870: warning: right shift count >= width of type
sha2.c:870: warning: left shift count >= width of type
sha2.c: In function 'SHA512_Final':
sha2.c:920: warning: right shift count >= width of type
sha2.c:920: warning: left shift count >= width of type
sha2.c: In function 'SHA384_Final':
sha2.c:964: warning: right shift count >= width of type
sha2.c:964: warning: left shift count >= width of type
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"x86_64-unknown-linux-gnu\" -DVERSION=\"20050731\" -g -O2 -c sha2hl.c -o sha2hl.o
sha2hl.c: In function 'SHA256_File':
sha2hl.c:99: warning: passing argument 2 of 'SHA256_Update' from incompatible pointer type
sha2hl.c:104: warning: pointer targets in passing argument 2 of 'SHA256_End' differ in signedness
sha2hl.c: In function 'SHA256_End':
sha2hl.c:119: warning: passing argument 1 of 'SHA256_Final' from incompatible pointer type
sha2hl.c:131: warning: pointer targets in return differ in signedness
sha2hl.c: At top level:
sha2hl.c:136: error: conflicting types for 'SHA256_Data'
./sha2.h:102: error: previous declaration of 'SHA256_Data' was here
sha2hl.c: In function 'SHA256_Data':
sha2hl.c:140: warning: passing argument 2 of 'SHA256_Update' from incompatible pointer type
sha2hl.c: In function 'SHA384_File':
sha2hl.c:160: warning: passing argument 2 of 'SHA384_Update' from incompatible pointer type
sha2hl.c: In function 'SHA384_End':
sha2hl.c:178: warning: pointer targets in assignment differ in signedness
sha2hl.c:179: warning: passing argument 1 of 'SHA384_Final' from incompatible pointer type
sha2hl.c:191: warning: pointer targets in return differ in signedness
sha2hl.c: At top level:
sha2hl.c:196: error: conflicting types for 'SHA384_Data'
./sha2.h:109: error: previous declaration of 'SHA384_Data' was here
sha2hl.c: In function 'SHA384_Data':
sha2hl.c:200: warning: passing argument 2 of 'SHA384_Update' from incompatible pointer type
sha2hl.c: In function 'SHA512_File':
sha2hl.c:220: warning: passing argument 2 of 'SHA512_Update' from incompatible pointer type
sha2hl.c: In function 'SHA512_End':
sha2hl.c:238: warning: pointer targets in assignment differ in signedness
sha2hl.c:239: warning: passing argument 1 of 'SHA512_Final' from incompatible pointer type
sha2hl.c:251: warning: pointer targets in return differ in signedness
sha2hl.c: At top level:
sha2hl.c:256: error: conflicting types for 'SHA512_Data'
./sha2.h:116: error: previous declaration of 'SHA512_Data' was here
sha2hl.c: In function 'SHA512_Data':
sha2hl.c:260: warning: passing argument 2 of 'SHA512_Update' from incompatible pointer type
make: *** [sha2hl.o] Erreur 1
===> exited with status 2
aborted.
--Apple-Mail-1-331584511
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
antoine
--Apple-Mail-1-331584511--