talloc.h not found but libtalloc-dev is installed
Hello everyone I am trying to build the latest code from git master but ./configure fails with this error: checking for talloc.h in /usr/include... no checking for talloc.h... no checking for talloc.h in /usr/local/include... no checking for talloc.h in /opt/include... no configure: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>. configure: error: FreeRADIUS requires libtalloc This is on debian squeeze and I have libtalloc-dev installed. I also tried adding --with-talloc-include-dir=/usr/include but this did not help. Any advice would be appreciated. Thanks Ben * *
I have tried the packages from squeeze (2.0.1) and wheezy (2.0.7+git20120207). 2013/5/31 <A.L.M.Buxey@lboro.ac.uk>
Hi,
This is on debian squeeze and I have libtalloc-dev installed. I also tried adding --with-talloc-include-dir=/usr/include but this did not help.
what version of talloc does debian ship? I've no problems with talloc on CentOS or SUSE
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Thanks Phil, and Alan Here is a snippet from config.log :- configure:7744: checking for talloc.h configure:7758: gcc -c -g3 -Wall -D_GNU_SOURCE -Qunused-arguments -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wdocumentation -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissi ng-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -DWITH_ VERIFY_PTR=1 conftest.c >&5 gcc: unrecognized option '-Qunused-arguments' cc1: error: unrecognized command line option "-Wdocumentation" 2013/5/31 Phil Mayers <p.mayers@imperial.ac.uk>
On 31/05/13 11:38, Бен Томпсон wrote:
I have tried the packages from squeeze (2.0.1) and wheezy (2.0.7+git20120207).
Maybe have a look in "config.log" and related, see what the gcc command line(s) that fail are and try to run them manually.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/** list/users.html <http://www.freeradius.org/list/users.html>
On 31/05/13 12:31, Бен Томпсон wrote:
Thanks Phil, and Alan
Here is a snippet from config.log :-
configure:7744: checking for talloc.h configure:7758: gcc -c -g3 -Wall -D_GNU_SOURCE -Qunused-arguments -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wdocumentation -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissi ng-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -DWITH_ VERIFY_PTR=1 conftest.c >&5 gcc: unrecognized option '-Qunused-arguments' cc1: error: unrecognized command line option "-Wdocumentation"
Looks like it's trying to use a clang argument with gcc. Probably related to commit 4cbe9552c
On 31 May 2013, at 09:36, Alan DeKok <aland@deployingradius.com> wrote:
Alan DeKok wrote:
I'll see if I can come up with a fix.
I've pushed a fix. "configure" should now work again.
The point of the checks was to determine if ANY compiler supported the flags. It works fine with the versions of GCC I have (4.2.1, 4.7, 4.8). I think the lesson to take away from this, is that GCC is a steaming pile of shit. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team
On 31 May 2013, at 09:03, Alan DeKok <aland@deployingradius.com> wrote:
Phil Mayers wrote:
Looks like it's trying to use a clang argument with gcc. Probably related to commit 4cbe9552c
Yeah. Clang shows up as "GCC" on configure's tests. Arran didn't check to see if that really was clang.
Because you shouldn't need to, it was intentional. With -Werror GCC should warn (and therefore fail) if the argument isn't supported. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team
On 31 May 2013, at 10:05, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 31 May 2013, at 09:03, Alan DeKok <aland@deployingradius.com> wrote:
Phil Mayers wrote:
Looks like it's trying to use a clang argument with gcc. Probably related to commit 4cbe9552c
Yeah. Clang shows up as "GCC" on configure's tests. Arran didn't check to see if that really was clang.
Because you shouldn't need to, it was intentional. With -Werror GCC should warn (and therefore fail) if the argument isn't supported.
Ok pushed a better fix. The issue is -Q has a different meaning in GCC. -Q Makes the compiler print out each function name as it is compiled, and print some statistics about each pass when it finishes. Note that Q does not take additional parameters, yet GCC does not complain (in some versions) when we pass: -Qunused-arguments The fix is: -Werror -Qunused-arguments -foobar If -Qunused-arguments has the desired effect, -foobar won't generate a warning. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team
I did a git pull this morning and now configure is working. Many thanks to eveyone. 2013/5/31 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
On 31 May 2013, at 10:05, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 31 May 2013, at 09:03, Alan DeKok <aland@deployingradius.com> wrote:
Phil Mayers wrote:
Looks like it's trying to use a clang argument with gcc. Probably related to commit 4cbe9552c
Yeah. Clang shows up as "GCC" on configure's tests. Arran didn't check to see if that really was clang.
Because you shouldn't need to, it was intentional. With -Werror GCC
should warn (and therefore fail) if the argument isn't supported.
Ok pushed a better fix.
The issue is -Q has a different meaning in GCC.
-Q Makes the compiler print out each function name as it is compiled, and print some statistics about each pass when it finishes.
Note that Q does not take additional parameters, yet GCC does not complain (in some versions) when we pass:
-Qunused-arguments
The fix is: -Werror -Qunused-arguments -foobar
If -Qunused-arguments has the desired effect, -foobar won't generate a warning.
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (5)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Arran Cudbard-Bell -
Phil Mayers -
Бен Томпсон