Skip to content
New issue

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

Partclone 0.3.17 fails to build on RHEL/CentOS 7 due to undefined reference to `__fpclassifyf' #153

Closed
robert-scheck opened this issue Dec 30, 2020 · 1 comment · Fixed by #222

Comments

@robert-scheck
Copy link
Contributor

Partclone 0.3.17 fails to build on RHEL/CentOS 7, while it works on newer distributions such as RHEL/CentOS 8:

…
gcc -DRESTORE -DDD -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -Wall  -Wl,-z,relro  -o partclone.restore partclone_restore-main.o partclone_restore-partclone.o partclone_restore-progress.o partclone_restore-checksum.o partclone_restore-torrent_helper.o partclone_restore-ddclone.o  -lcrypto -lncursesw -lpthread  -ltinfo
gcc -DCHKIMG -DDD -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -Wall  -Wl,-z,relro  -o partclone.chkimg partclone_chkimg-main.o partclone_chkimg-partclone.o partclone_chkimg-progress.o partclone_chkimg-checksum.o partclone_chkimg-torrent_helper.o partclone_chkimg-ddclone.o  -lcrypto -lncursesw -lpthread  -ltinfo
partclone_dd-progress.o: In function `progress_init':
/builddir/build/BUILD/partclone-0.3.17/src/progress.c:50: undefined reference to `__fpclassifyf'
/builddir/build/BUILD/partclone-0.3.17/src/progress.c:50: undefined reference to `__fpclassifyf'
collect2: error: ld returned 1 exit status
make[2]: *** [partclone.dd] Error 1
…

It seems like this is caused by commit 536bec0. Setting LDFLAGS=-lm on RHEL/CentOS 7 myself works around the issue.

@Thomas-Tsai
Copy link
Owner

got it, I will test and add -lm to automake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants