Hello! I am developing a custom module for Debian 4.0 with preinstalled FreeRADIUS 1.1.3, but if I build and install my module I get a segmentation fault. Is there a way to build a custom module, and use it with a preinstalled FreeRADIUS? Thank you. Best regards, Baki
baki@enternet.hu wrote:
Hello!
I am developing a custom module for Debian 4.0 with preinstalled FreeRADIUS 1.1.3, but if I build and install my module I get a segmentation fault. Is there a way to build a custom module, and use it with a preinstalled FreeRADIUS?
Make sure you use the same header file that was used to build the pre-installed version. Or, use the debian rules that come with FreeRADIUS to make your own package that includes the custom module. Alan DeKok.
Thanks for the help, but how to make sure that I am using the same header? I've downloaded the latest source code with "apt-get source freeradius", but I got segfault after building. How to get the same header files? Baki Alan DeKok wrote:
baki@enternet.hu wrote:
Hello!
I am developing a custom module for Debian 4.0 with preinstalled FreeRADIUS 1.1.3, but if I build and install my module I get a segmentation fault. Is there a way to build a custom module, and use it with a preinstalled FreeRADIUS?
Make sure you use the same header file that was used to build the pre-installed version.
Or, use the debian rules that come with FreeRADIUS to make your own package that includes the custom module.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Jul 3, 2007, at 07:25, <baki@enternet.hu> <baki@enternet.hu> wrote:
Hello!
I am developing a custom module for Debian 4.0 with preinstalled FreeRADIUS 1.1.3, but if I build and install my module I get a segmentation fault. Is there a way to build a custom module, and use it with a preinstalled FreeRADIUS?
You may need to include -DNDEBUG in the Makefile depending on how the base system was built. Having that set wrong will definitely cause a seg fault. You also need the header files from that specific version as later versions have made significant changes to some of the structures. The method I use to build modules is shown in the Wiki.
I use the makefile from the wiki, it includes -DNDEBUG. If I build freeradius and install on a fresh netinst Debian (without freeradius), my module works fine. But if I build only the module and use with a preinstalled freeradius, I get a segfault. Baki On Tue, 3 Jul 2007 16:07:02 -0700, Doug Hardie <bc979@lafn.org> wrote:
On Jul 3, 2007, at 07:25, <baki@enternet.hu> <baki@enternet.hu> wrote:
Hello!
I am developing a custom module for Debian 4.0 with preinstalled FreeRADIUS 1.1.3, but if I build and install my module I get a segmentation fault. Is there a way to build a custom module, and use it with a preinstalled FreeRADIUS?
You may need to include -DNDEBUG in the Makefile depending on how the base system was built. Having that set wrong will definitely cause a seg fault. You also need the header files from that specific version as later versions have made significant changes to some of the structures. The method I use to build modules is shown in the Wiki. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
baki@enternet.hu wrote:
I use the makefile from the wiki, it includes -DNDEBUG. If I build freeradius and install on a fresh netinst Debian (without freeradius), my module works fine. But if I build only the module and use with a preinstalled freeradius, I get a segfault.
As you've said many times. The answer won't change. Build the module using the same method used to build the server. Make sure the build flags are the same, include files, etc. It *is* possible, because debian does it. They have a base FreeRADIUS packet, and other packages with additional modules. Alan DeKok.
On Jul 4, 2007, at 00:15, <baki@enternet.hu> <baki@enternet.hu> wrote:
I use the makefile from the wiki, it includes -DNDEBUG. If I build freeradius and install on a fresh netinst Debian (without freeradius), my module works fine. But if I build only the module and use with a preinstalled freeradius, I get a segfault.
You may need to remove that define then. It has to be the same way the base system was built.
Thank you! I deleted -DNDEBUG from the Makefile and now it works :) Baki On Wed, 4 Jul 2007 02:23:53 -0700, Doug Hardie <bc979@lafn.org> wrote:
On Jul 4, 2007, at 00:15, <baki@enternet.hu> <baki@enternet.hu> wrote:
I use the makefile from the wiki, it includes -DNDEBUG. If I build freeradius and install on a fresh netinst Debian (without freeradius), my module works fine. But if I build only the module and use with a preinstalled freeradius, I get a segfault.
You may need to remove that define then. It has to be the same way the base system was built. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (4)
-
Alan DeKok -
baki@enternet.hu -
Doug Hardie -
Gabor Bakonyi