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

./configure argument "CC" won't work #60

Closed
Neko-Chang-Taiwan opened this issue Apr 25, 2019 · 2 comments
Closed

./configure argument "CC" won't work #60

Neko-Chang-Taiwan opened this issue Apr 25, 2019 · 2 comments
Assignees
Labels

Comments

@Neko-Chang-Taiwan
Copy link

Hi All:

I trying use modsecurity3 with Apache 2.4 on FreeBSD 12.0 amd64.
I pulled latest commit for modsecurity-apache connector.

FreeBSD default compiler: Clang/LLVM 6.0.1
So part of ./configure result as below.
.# ./configure --with-libmodsecurity=/usr/local
checking for gcc...
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking dependency style of cc... none
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes

Later, test the issue #59 tried to build by "gcc8"
Part of ./configure result as below.
.# ./configure --with-libmodsecurity=/usr/local CC=/usr/local/bin/gcc8
checking for gcc... /usr/local/bin/gcc8
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking whether we are using the GNU C compiler... yes
checking whether /usr/local/bin/gcc8 accepts -g... yes
checking for /usr/local/bin/gcc8 option to accept ISO C89... none needed
checking whether /usr/local/bin/gcc8 understands -c and -o together... yes
checking dependency style of /usr/local/bin/gcc8... none
checking how to run the C preprocessor... /usr/local/bin/gcc8 -E
checking for gcc... (cached) /usr/local/bin/gcc8
checking whether we are using the GNU C compiler... (cached) yes
checking whether /usr/local/bin/gcc8 accepts -g... (cached) yes
checking for /usr/local/bin/gcc8 option to accept ISO C89... (cached) none needed
checking whether /usr/local/bin/gcc8 understands -c and -o together... (cached) yes
checking dependency style of /usr/local/bin/gcc8... (cached) none

But make always use system "cc"(Clang/LLVM 6.0.1)
Argument "CC" won't work look like.

Please let me know what is going wrong.
Thanks a lot.

@zimmerle
Copy link
Contributor

zimmerle commented Jul 5, 2019

Hi @Neko-Chang-Taiwan,

Please double-check if there inst different symbol links for a single compiler in your machine. I was not able to reproduce:

./configure CC=clang

Outputs

checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o

@zimmerle zimmerle closed this as completed Jul 5, 2019
@Neko-Chang-Taiwan
Copy link
Author

Neko-Chang-Taiwan commented Jul 8, 2019

Hi @zimmerle

Thanks your replied.
I got same result with yours.

I think ./confirure can be handle system default CC and show information as your result before.
But shall be assign explicitly look like.

modsecurity-apache connector into FreeBSD ports collection and fixed by ports maintainer.

Thanks your help a lot.

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

No branches or pull requests

3 participants