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

does not build correctly when using Fedora default compiler options #7

Open
GoogleCodeExporter opened this issue Mar 9, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I am trying to get zopfli into Fedora.  Fedora uses the following compiler 
options by default and this is a mandatory requirement.  

https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags

Other distros have similar packaging guidelines as well.  Please fix


gcc blocksplitter.c cache.c deflate.c gzip_container.c hash.c katajainen.c 
lz77.c squeeze.c tree.c util.c zlib_container.c zopfli.c -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic
/tmp/cchyEmFs.o: In function `CalculateEntropy':
/home/rahul/work/rpmbuild/SOURCES/zopfli-acc035/tree.c:79: undefined reference 
to `log'
/home/rahul/work/rpmbuild/SOURCES/zopfli-acc035/tree.c:85: undefined reference 
to `log'
/home/rahul/work/rpmbuild/SOURCES/zopfli-acc035/tree.c:79: undefined reference 
to `log'
collect2: error: ld returned 1 exit status

Original issue reported on code.google.com by methe...@gmail.com on 3 Mar 2013 at 8:15

@GoogleCodeExporter
Copy link
Author

Mether,

Its easy to fix this, add -lm 

Original comment by sidhpurw...@gmail.com on 5 Mar 2013 at 6:04

@GoogleCodeExporter
Copy link
Author

duh. yes indeed.

Original comment by methe...@gmail.com on 5 Mar 2013 at 6:46

kornelski pushed a commit to ImageOptim/zopfli that referenced this issue Dec 3, 2018
Contexts can be represented with closures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant