pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bootstrapping an solaris10 SPARC fails
On Sun, Oct 04, 2020 at 05:00:43PM -0400, Julien Savard wrote:
> Well, not sure if we're having the same issue here but on my side, it
> fails here :
>
> gcc -O3 -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow
> -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes
> -Wpointer-arith -Wstrict-aliasing=1 Â -I../lib -DXXH_NAMESPACE=LZ4_
> Â -c -o datagen.o datagen.c
> gcc -O3 -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow
> -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes
> -Wpointer-arith -Wstrict-aliasing=1 Â -I../lib -DXXH_NAMESPACE=LZ4_
> Â -c -o lz4cli.o lz4cli.c
> gcc -O3 -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow
> -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes
> -Wpointer-arith -Wstrict-aliasing=1 Â -I../lib -DXXH_NAMESPACE=LZ4_
> Â -c -o lz4io.o lz4io.c
> Undefined first referenced
>  symbol    in file
> nanosleep              bench.o
> ld: fatal: symbol referencing errors. No output written to lz4
> [...]
hm, no this looks like librt.so should be added to the linker
arguments to get nanosleep.
Something like "env LDFLAGS=-lrt ... "
But I've no idea how this could be added in a bulk build (never
tried one, sorry).
HTH, Kurt
Home |
Main Index |
Thread Index |
Old Index