You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mike Diggins <mi...@McMaster.CA> on 2009/04/22 02:28:32 UTC
[users@httpd] mod_auth_xradius-0.4.6
Anyone using mod_auth_xradius-0.4.6 with Apache 2.x under Solaris 10 (or
any version of Solaris)? I can't get it to compile and I don't know why. I
could use a hand.
-Mike
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_auth_xradius-0.4.6
Posted by Nick Kew <ni...@webthing.com>.
On Wed, 22 Apr 2009 20:24:09 -0400 (Eastern Daylight Time)
Mike Diggins <mi...@McMaster.CA> wrote:
> make: Fatal error: Command failed for target `libradius_la-radlib.lo'
OK. Fixing this by list correspondence looks like more trouble
than it's worth.
What architecture are you on? I may be able to send you a
binary if your email address accepts them.
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_auth_xradius-0.4.6
Posted by Mike Diggins <mi...@McMaster.CA>.
On Thu, 23 Apr 2009, Nick Kew wrote:
> Mike Diggins wrote:
>>
>> On Wed, 22 Apr 2009, Nick Kew wrote:
>>
>>>
>>> On 22 Apr 2009, at 01:28, Mike Diggins wrote:
>>>
>>>>
>>>> Anyone using mod_auth_xradius-0.4.6 with Apache 2.x under Solaris 10 (or
>>>> any version of Solaris)? I can't get it to compile and I don't know why.
>>>> I could use a hand.
>>>
>>> Tell us what the problem is, and maybe someone can help.
>>
>> This is what I get.
>>
>>
>> diggins@rh1<~/mod_auth_xradius-0.4.6># ./configure
>
>> checking for apr_memcache library in /usr/local/apache2/lib... no
>> checking for apr_memcache library in /usr/local/lib... no
>> checking for apr_memcache library in /usr/lib... no
>> checking for apr_memcache library in /usr/local/apache2/lib... no
>> configure: *** memcache library not found.
>
> It's looking for apr_memcache, as referenced on the mod_auth_xradius
> webpage.
>
> That's actually wrong: apr_memcache is now integrated into apr,
> so you shouldn't need to install it. The configuration should
> be updated. But it appears to be non-critical:
>
>> configure: creating ./config.status
>> config.status: creating Makefile
>> config.status: creating include/mod_auth_xradius.h
>> config.status: creating include/mod_auth_xradius_config.h
>> config.status: executing depfiles commands
>
> So it didn't actually break on that (though I suspect
> that may get you a partially-crippled build).
>
>> libradius/radlib.h:196: error: parse error before "xrad_cvt_int"
>> libradius/radlib.h:196: warning: type defaults to `int' in declaration of
> `xrad_cvt_int'
>> libradius/radlib.h:196: warning: data definition has no type or storage
> class
>> libradius/radlib.h:206: error: parse error before "u_int32_t"
>
> Looks like u_int32_t is not defined at this point: another minor
> breakage in the build system. What happens if you typedef
> it earlier in libradius/radlib.h?
>
> typedef unsigned int u_int32_t;
> (or otherwise, if unsigned int isn't 32-bit on your architecture).
>
> Also, I notice you're using gcc. SunStudio cc is generally the
> preferred option on Solaris. If you have it, you can select it
> with by setting CC on the configure line.
I don't know C, but I stuck the line 'typedef unsigned int u_int32_t;'
near the top of radlib.h, and it compiles a bit further, but still fails:
gcc -DHAVE_CONFIG_H -I. -I. -I./include -I./libradius -L/usr/local/lib
-R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib
-L/usr/openwin/lib -R/usr/openwin/lib -DSOLARIS2=10
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/apache2/include
-I/usr/local/apache2/include -I/usr/local/apache2/include
-I/usr/local/include -g -O2 -MT libradius_la-radlib.lo -MD -MP -MF
.deps/libradius_la-radlib.Tpo -c libradius/radlib.c -fPIC -DPIC -o
.libs/libradius_la-radlib.o
In file included from libradius/radlib_private.h:35,
from libradius/radlib.c:45:
libradius/radlib.h:32: error: redefinition of `u_int32_t'
libradius/porting.h:5: error: `u_int32_t' previously declared here
*** Error code 1
make: Fatal error: Command failed for target `libradius_la-radlib.lo'
I did try with the SunStudio compiler as well, but it has its own
problems:
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
-Mike
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_auth_xradius-0.4.6
Posted by Nick Kew <ni...@webthing.com>.
Mike Diggins wrote:
>
> On Wed, 22 Apr 2009, Nick Kew wrote:
>
>>
>> On 22 Apr 2009, at 01:28, Mike Diggins wrote:
>>
>>>
>>> Anyone using mod_auth_xradius-0.4.6 with Apache 2.x under Solaris 10
>>> (or any version of Solaris)? I can't get it to compile and I don't
>>> know why. I could use a hand.
>>
>> Tell us what the problem is, and maybe someone can help.
>
> This is what I get.
>
>
> diggins@rh1<~/mod_auth_xradius-0.4.6># ./configure
> checking for apr_memcache library in /usr/local/apache2/lib... no
> checking for apr_memcache library in /usr/local/lib... no
> checking for apr_memcache library in /usr/lib... no
> checking for apr_memcache library in /usr/local/apache2/lib... no
> configure: *** memcache library not found.
It's looking for apr_memcache, as referenced on the mod_auth_xradius
webpage.
That's actually wrong: apr_memcache is now integrated into apr,
so you shouldn't need to install it. The configuration should
be updated. But it appears to be non-critical:
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating include/mod_auth_xradius.h
> config.status: creating include/mod_auth_xradius_config.h
> config.status: executing depfiles commands
So it didn't actually break on that (though I suspect
that may get you a partially-crippled build).
> libradius/radlib.h:196: error: parse error before "xrad_cvt_int"
> libradius/radlib.h:196: warning: type defaults to `int' in
declaration of `xrad_cvt_int'
> libradius/radlib.h:196: warning: data definition has no type or
storage class
> libradius/radlib.h:206: error: parse error before "u_int32_t"
Looks like u_int32_t is not defined at this point: another minor
breakage in the build system. What happens if you typedef
it earlier in libradius/radlib.h?
typedef unsigned int u_int32_t;
(or otherwise, if unsigned int isn't 32-bit on your architecture).
Also, I notice you're using gcc. SunStudio cc is generally the
preferred option on Solaris. If you have it, you can select it
with by setting CC on the configure line.
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_auth_xradius-0.4.6
Posted by Mike Diggins <mi...@mcmaster.ca>.
On Wed, 22 Apr 2009, Nick Kew wrote:
>
> On 22 Apr 2009, at 01:28, Mike Diggins wrote:
>
>>
>> Anyone using mod_auth_xradius-0.4.6 with Apache 2.x under Solaris 10 (or
>> any version of Solaris)? I can't get it to compile and I don't know why. I
>> could use a hand.
>
> Tell us what the problem is, and maybe someone can help.
This is what I get.
diggins@rh1<~/mod_auth_xradius-0.4.6># ./configure
configure: creating config.nice
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for egrep... egrep
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for a BSD-compatible install... config/install-sh -c
checking for ranlib... ranlib
checking for apxs... /usr/local/apache2/bin/apxs
checking for Apache 2.0 version >= 2.0.40... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking for apr_memcache library in /usr/local/apache2/lib... no
checking for apr_memcache library in /usr/local/lib... no
checking for apr_memcache library in /usr/lib... no
checking for apr_memcache library in /usr/local/apache2/lib... no
configure: *** memcache library not found.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/mod_auth_xradius.h
config.status: creating include/mod_auth_xradius_config.h
config.status: executing depfiles commands
---
Configuration summary for mod_auth_xradius:
* mod_auth_xradius version: 0.4.6
* Apache Modules directory: /usr/local/apache2/modules
---
diggins@rh1<~/mod_auth_xradius-0.4.6># make
if /usr/local/apache2/build/libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I./include -Wall -I./libradius -L/usr/local/lib -R/usr/local/lib
-L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/openwin/lib
-R/usr/openwin/lib -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/usr/local/apache2/include -I/usr/local/apache2/include
-I/usr/local/apache2/include -I/usr/local/include -g -O2 -MT
mod_auth_xradius_la-mod_auth_xradius.lo -MD -MP -MF
".deps/mod_auth_xradius_la-mod_auth_xradius.Tpo" -c -o
mod_auth_xradius_la-mod_auth_xradius.lo `test -f 'src/mod_auth_xradius.c'
|| echo './'`src/mod_auth_xradius.c; \
then mv -f ".deps/mod_auth_xradius_la-mod_auth_xradius.Tpo"
".deps/mod_auth_xradius_la-mod_auth_xradius.Plo"; else rm -f
".deps/mod_auth_xradius_la-mod_auth_xradius.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I./include -Wall -I./libradius
-L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib
-R/usr/local/ssl/lib -L/usr/openwin/lib -R/usr/openwin/lib -DSOLARIS2=10
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/apache2/include
-I/usr/local/apache2/include -I/usr/local/apache2/include
-I/usr/local/include -g -O2 -MT mod_auth_xradius_la-mod_auth_xradius.lo
-MD -MP -MF .deps/mod_auth_xradius_la-mod_auth_xradius.Tpo -c
src/mod_auth_xradius.c -fPIC -DPIC -o
.libs/mod_auth_xradius_la-mod_auth_xradius.o
In file included from src/mod_auth_xradius.c:29:
libradius/radlib.h:196: error: parse error before "xrad_cvt_int"
libradius/radlib.h:196: warning: type defaults to `int' in declaration of
`xrad_cvt_int'
libradius/radlib.h:196: warning: data definition has no type or storage
class
libradius/radlib.h:206: error: parse error before "u_int32_t"
*** Error code 1
make: Fatal error: Command failed for target
`mod_auth_xradius_la-mod_auth_xradius.lo'
diggins@rh1<~/mod_auth_xradius-0.4.6>#
-Mike
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_auth_xradius-0.4.6
Posted by Nick Kew <ni...@webthing.com>.
On 22 Apr 2009, at 01:28, Mike Diggins wrote:
>
> Anyone using mod_auth_xradius-0.4.6 with Apache 2.x under Solaris
> 10 (or any version of Solaris)? I can't get it to compile and I
> don't know why. I could use a hand.
Tell us what the problem is, and maybe someone can help.
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org