Re: talloc.h not found but libtalloc-dev is installed

2013-06-02 Thread Бен Томпсон
I did a git pull this morning and now configure is working. Many thanks to
eveyone.


2013/5/31 Arran Cudbard-Bell 

>
> On 31 May 2013, at 10:05, Arran Cudbard-Bell 
> wrote:
>
> >
> > On 31 May 2013, at 09:03, Alan DeKok  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 somestatistics 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 
> FreeRADIUS Development Team
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Arran Cudbard-Bell

On 31 May 2013, at 10:05, Arran Cudbard-Bell  wrote:

> 
> On 31 May 2013, at 09:03, Alan DeKok  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 somestatistics 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 
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Arran Cudbard-Bell

On 31 May 2013, at 09:03, Alan DeKok  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 
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Arran Cudbard-Bell

On 31 May 2013, at 09:36, Alan DeKok  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 
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Alan DeKok
Alan DeKok wrote:
>   I'll see if I can come up with a fix.

  I've pushed a fix.  "configure" should now work again.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Alan DeKok
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.

  I'll see if I can come up with a fix.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Phil Mayers

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

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Бен Томпсон
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 

> 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 
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Phil Mayers

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

Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Бен Томпсон
I have tried the packages from squeeze (2.0.1) and wheezy
(2.0.7+git20120207).



2013/5/31 

> 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
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread A . L . M . Buxey
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


talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Бен Томпсон
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=.
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
*
*
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html