Centos 7 with Freeradius 3.0.4 : smsotp supported ?
Hi I am new to this forum. I have been using FreeRadius 2.1 (CentOs 6) with smsotp for a long time. Now I am trying to upgrade to FreeRadius 3.0.4 (CentOs7) but I can't build Smsotp module. After ./configure command, there is no make file created to build the module. Any help to build the module would be appreciated. Thanks. Regards. Pras.
On Fri, Jul 17, 2015 at 6:14 PM, usersurweb <usersurweb@outlook.com> wrote:
Hi
I am new to this forum.
I have been using FreeRadius 2.1 (CentOs 6) with smsotp for a long time. Now I am trying to upgrade to FreeRadius 3.0.4 (CentOs7) but I can't build
Smsotp module. After ./configure command, there is no make file created to build the module.
I think you could add the module name to src/modules/stable HTH
Thanks for your suggestion. I tried; and still have the same problem. Here is the result : [root@RADSERVER rlm_smsotp]# ./configure --prefix=/opt/freeradius-server/ checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes configure: creating ./config.status config.status: creating all.mk config.status: creating config.h config.status: config.h is unchanged -----Original Message----- From: Freeradius-Users [mailto:freeradius-users-bounces+usersurweb=outlook.com@lists.freeradius.org] On Behalf Of Isaac Boukris Sent: Friday, July 17, 2015 18:05 To: FreeRadius users mailing list Subject: Re: Centos 7 with Freeradius 3.0.4 : smsotp supported ? On Fri, Jul 17, 2015 at 6:14 PM, usersurweb <usersurweb@outlook.com> wrote:
Hi
I am new to this forum.
I have been using FreeRadius 2.1 (CentOs 6) with smsotp for a long time. Now I am trying to upgrade to FreeRadius 3.0.4 (CentOs7) but I can't build
Smsotp module. After ./configure command, there is no make file created to build the module.
I think you could add the module name to src/modules/stable HTH - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Jul 17, 2015, at 12:14 PM, usersurweb <usersurweb@outlook.com> wrote:
Thanks for your suggestion.
I tried; and still have the same problem.
Here is the result :
[root@RADSERVER rlm_smsotp]# ./configure --prefix=/opt/freeradius-server/ checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes configure: creating ./config.status config.status: creating all.mk config.status: creating config.h config.status: config.h is unchanged
-----Original Message----
What's the contents of all.mk?
[root@RADSERVER rlm_smsotp]# cat all.mk TARGETNAME := rlm_smsotp ifneq "$(TARGETNAME)" "" TARGET := $(TARGETNAME).a endif SOURCES := $(TARGETNAME).c SRC_CFLAGS := TGT_LDLIBS := -----Original Message----- From: Freeradius-Users [mailto:freeradius-users-bounces+usersurweb=outlook.com@lists.freeradius.org ] On Behalf Of Arran Cudbard-Bell Sent: Friday, July 17, 2015 18:19 To: FreeRadius users mailing list Subject: Re: Centos 7 with Freeradius 3.0.4 : smsotp supported ?
On Jul 17, 2015, at 12:14 PM, usersurweb <usersurweb@outlook.com> wrote:
Thanks for your suggestion.
I tried; and still have the same problem.
Here is the result :
[root@RADSERVER rlm_smsotp]# ./configure --prefix=/opt/freeradius-server/ checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes configure: creating ./config.status config.status: creating all.mk config.status: creating config.h config.status: config.h is unchanged
-----Original Message----
What's the contents of all.mk?
And did you even try typing "make" from the top directory? No? Well, there's your problem. You're worried about nothing. You're looking at the wrong thing. Just build the server, and stop worrying about the exist (or not) of files called "Makefile". You should only care about those if you're a developer. And even then, you generally don't need to care about them. Alan DeKok.
I have already tried and end up with the following error messages. Here are the error messages Make from : /root/freeradius-server-3.0.4/src/modules/rlm_smsotp [root@RADSERVER rlm_smsotp]# make make: *** No targets specified and no makefile found. Stop. And from /root/freeradius-server-3.0.4 [root@SRADEUREQ01 freeradius-server-3.0.4]# make Can not find suitable object file for build/objs/src/modules/rlm_smsotp.lo make: *** [build/lib/local/rlm_smsotp.la] Error 1 Pras. -----Original Message----- From: Freeradius-Users [mailto:freeradius-users-bounces+usersurweb=outlook.com@lists.freeradius.org] On Behalf Of Alan DeKok Sent: Friday, July 17, 2015 18:31 To: FreeRadius users mailing list Subject: Re: Centos 7 with Freeradius 3.0.4 : smsotp supported ? And did you even try typing "make" from the top directory? No? Well, there's your problem. You're worried about nothing. You're looking at the wrong thing. Just build the server, and stop worrying about the exist (or not) of files called "Makefile". You should only care about those if you're a developer. And even then, you generally don't need to care about them. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Jul 17, 2015, at 8:38 PM, usersurweb <usersurweb@outlook.com> wrote:
I have already tried and end up with the following error messages.
Here are the error messages
Make from : /root/freeradius-server-3.0.4/src/modules/rlm_smsotp
[root@RADSERVER rlm_smsotp]# make
Don't do that. It doesn't work, and it's not supposed to work.
make: *** No targets specified and no makefile found. Stop.
And from /root/freeradius-server-3.0.4
[root@SRADEUREQ01 freeradius-server-3.0.4]# make Can not find suitable object file for build/objs/src/modules/rlm_smsotp.lo make: *** [build/lib/local/rlm_smsotp.la] Error 1
You've probably done: ./configure --disable-shared Don't do that. Just do: $ ./configure $ make It *will* work. Alan DeKok.
I didn't launch ./configure with arguments. Here is what I did : $ ./configure $ make And here is the result : [freeradius-server-3.0.4]# make Can not find suitable object file for build/objs/src/modules/rlm_smsotp.lo make: *** [build/lib/local/rlm_smsotp.la] Error 1 With freeradius 2.1, these commands generate the module without any problem. Am I missing something ? Pras.
With freeradius 2.1, these commands >generate the module without any >problem. Am I missing something ?
Yes. FR 3 is quite different / very different (depending on what section) code. You can't just take a 2.x module and expect it to work with 3.x without some code changes. In some cases major rewriting might need to occur. Developer docs have more details. alan
On 19 Jul 2015, at 11:40, usersurweb <usersurweb@outlook.com> wrote:
I didn't launch ./configure with arguments.
Here is what I did :
$ ./configure $ make
And here is the result :
[freeradius-server-3.0.4]# make Can not find suitable object file for build/objs/src/modules/rlm_smsotp.lo make: *** [build/lib/local/rlm_smsotp.la] Error 1
With freeradius 2.1, these commands generate the module without any problem. Am I missing something ?
Works fine for me with v3.0.x and v3.1.x Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
participants (5)
-
Alan Buxey -
Alan DeKok -
Arran Cudbard-Bell -
Isaac Boukris -
usersurweb