pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56902: rhash-1.4.3 fails to build on Solaris 10 SPARC. There is a problem with aligned_alloc().



>Number:         56902
>Category:       pkg
>Synopsis:       rhash-1.4.3 fails to build on Solaris 10 SPARC. There is a problem with aligned_alloc().
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 25 10:40:00 +0000 2022
>Originator:     Hiroshi Hakoyama
>Release:        pkgsrc  current
>Organization:
Institute of Freshwater Biology, Nagano University
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
rhash-1.4.2nb2 could build on Solaris 10 SPARC with gcc 5.5.0.
However, rhash-1.4.3 cannot build on the environment. 
This might relate to NetBSD Problem Report #55571.

...
gcc -DUSE_OPENSSL -DNDEBUG -pipe -ffunction-sections -fdata-sections -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wnested-externs -Winline -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -I/usr/pkg/include -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -DNOPE_DOES_NOT_HAS_STDC_ALIGNED_ALLOC -fpic -DRHASH_XVERSION=0x01040200 algorithms.c byte_order.c plug_openssl.c rhash.c rhash_timing.c rhash_torrent.c aich.c blake2b.c blake2s.c crc32.c ed2k.c edonr.c hex.c md4.c md5.c sha1.c sha256.c sha512.c sha3.c ripemd-160.c gost12.c gost94.c has160.c snefru.c tiger.c tiger_sbox.c tth.c torrent.c util.c whirlpool.c whirlpool_sbox.c  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lcrypto -shared -Wl,-soname,librhash.so.0 -o librhash.so.0
In file included from rhash.c:32:0:
rhash.c: In function 'rhash_alloc_multi':
util.h:49:47: warning: implicit declaration of function 'aligned_alloc' [-Wimplicit-function-declaration]
 # define rhash_aligned_alloc(alignment, size) aligned_alloc((alignment), ALIGN_SIZE_BY(size, alignment))
                                               ^
rhash.c:111:29: note: in expansion of macro 'rhash_aligned_alloc'
  rctx = (rhash_context_ext*)rhash_aligned_alloc(DEFAULT_ALIGNMENT, header_size + ctx_size_sum);
                             ^
util.h:49:47: warning: incompatible implicit declaration of built-in function 'aligned_alloc'
 # define rhash_aligned_alloc(alignment, size) aligned_alloc((alignment), ALIGN_SIZE_BY(size, alignment))
                                               ^
rhash.c:111:29: note: in expansion of macro 'rhash_aligned_alloc'
  rctx = (rhash_context_ext*)rhash_aligned_alloc(DEFAULT_ALIGNMENT, header_size + ctx_size_sum);
                             ^
util.h:49:47: note: include '<stdlib.h>' or provide a declaration of 'aligned_alloc'
 # define rhash_aligned_alloc(alignment, size) aligned_alloc((alignment), ALIGN_SIZE_BY(size, alignment))
                                               ^
rhash.c:111:29: note: in expansion of macro 'rhash_aligned_alloc'
  rctx = (rhash_context_ext*)rhash_aligned_alloc(DEFAULT_ALIGNMENT, header_size + ctx_size_sum);
                             ^
rhash.c: In function 'rhash_file_update':
util.h:49:47: warning: incompatible implicit declaration of built-in function 'aligned_alloc'
 # define rhash_aligned_alloc(alignment, size) aligned_alloc((alignment), ALIGN_SIZE_BY(size, alignment))
                                               ^
rhash.c:490:27: note: in expansion of macro 'rhash_aligned_alloc'
  buffer = (unsigned char*)rhash_aligned_alloc(DEFAULT_ALIGNMENT, block_size);
                           ^
util.h:49:47: note: include '<stdlib.h>' or provide a declaration of 'aligned_alloc'
 # define rhash_aligned_alloc(alignment, size) aligned_alloc((alignment), ALIGN_SIZE_BY(size, alignment))
                                               ^
rhash.c:490:27: note: in expansion of macro 'rhash_aligned_alloc'
  buffer = (unsigned char*)rhash_aligned_alloc(DEFAULT_ALIGNMENT, block_size);
                           ^
gcc calc_sums.o hash_print.o common_func.o hash_update.o file.o file_mask.o file_set.o find_file.o hash_check.o output.o parse_cmdline.o rhash_main.o win_utils.o librhash/librhash.so.0  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lintl -o rhash
Undefined                       first referenced
 symbol                             in file
aligned_alloc                       librhash/librhash.so.0
ld: fatal: symbol referencing errors. No output written to rhash
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/misc/rhash/work/RHash-1.4.3
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/misc/rhash
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/misc/rhash

>How-To-Repeat:
cd /usr/pkgsrc/misc/rhash
make


>Fix:
unknown



Home | Main Index | Thread Index | Old Index