We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pixz-1.0.2 does not link correctly with ld.gold, because of an underlinking issue:
ld.gold
... x86_64-pc-linux-gnu-gcc -Wall -Wl,-O1 -Wl,--as-needed -o pixz pixz.o common.o endian.o cpu.o read. o write.o list.o -lpthread -llzma -larchive common.o:common.c:function pipeline_create: error: undefined reference to 'ceil' collect2: error: ld returned 1 exit status make: *** [pixz] Error 1
ceil() is used in the program but -lm is not in linking flags. Add -lm to LIDADD looks sufficient to fix the issue:
ceil()
-lm
LIDADD
diff --git a/Makefile~ b/Makefile index fe605f2..36dc27b 100644 --- a/Makefile~ +++ b/Makefile @@ -12,7 +12,7 @@ MYCFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=gnu99 \ MYLDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT) -Wall THREADS = -lpthread -LIBADD = $(THREADS) -llzma -larchive +LIBADD = $(THREADS) -llzma -larchive -lm CC = gcc COMPILE = $(CC) $(MYCFLAGS) $(CFLAGS) -c -o
The text was updated successfully, but these errors were encountered:
Thank you for the report. Fixed in HEAD.
Sorry, something went wrong.
No branches or pull requests
pixz-1.0.2 does not link correctly with
ld.gold
, because of an underlinking issue:ceil()
is used in the program but-lm
is not in linking flags. Add-lm
toLIDADD
looks sufficient to fix the issue:The text was updated successfully, but these errors were encountered: