Bingo!
Pulled down latest CVS today (25Mar2004), and it looks like you added the additional $(LCRYPT) already. Started with a clean CVS copy. Now good news/bad news time.
Good news: FreeRADIUS BUILDS UNDER CYGWIN!!! With NO modifications! Bad news: 'make install' fails.
I've copy/pasted the end of the output at the end of this message.
Now, on the good news side again, I found the executables in ./src/main, and from what I can tell, they work. I suspect the real issue will be whether radiusd.exe works properly. Without a proper setup with radiusd.conf file, etc., I could just get it to kick back the usual error about not finding a config file. The real test is when it does a fork(), etc., as that is likely where any issues will appear.
I've tried figuring out where to manually copy everything (e.g., ./raddb to /usr/local/etc/raddb, etc.), but it's a bit confusing.
I've tried looking through the root level Makefile to figure out what 'make install' is doing...ugh. Question: What is $(R) and where is it defined? I couldn't find a single reference to it outside of the root level Makefile, and it's not defined anywhere that I can tell. Which means it's blank (which is fine in my case, but more curious than anything).
As for the rest, I can see that automake/autoconf are what generate most of this, and my last real experience predates this automated stuff. :-/ I really need to get a book on this.
Anyway, we're making headway. './configure' and 'make' work without issue, so that's a start. Now to just get the files installed properly, then I can start testing this out. 8-)
P.S. There does not appear to be any kind of 'make uninstall'. I'm
guessing admins must rip out FreeRADIUS by hand if it comes
down to that?
END OF 'make install' OUTPUT FOLLOWS: ____________________________________________________________ ... Libraries have been installed in: /usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flagSee any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make[7]: Entering directory `/usr/local/radiusd/src/modules/rlm_dbm' /usr/local/radiusd/install-sh -c -d -m 755 /usr/local/bin /usr/local/radiusd/install-sh -c -m 755 rlm_dbm_parser /usr/local/bin cp: `rlm_dbm_parser' and `/usr/local/bin/#inst.3648#' are the same file make[7]: *** [rlm_dbm_install] Error 1 make[7]: Leaving directory `/usr/local/radiusd/src/modules/rlm_dbm' make[6]: *** [install] Error 2 make[6]: Leaving directory `/usr/local/radiusd/src/modules/rlm_dbm' make[5]: *** [common] Error 1 make[5]: Leaving directory `/usr/local/radiusd/src/modules' make[4]: *** [install] Error 2 make[4]: Leaving directory `/usr/local/radiusd/src/modules' make[3]: *** [common] Error 1 make[3]: Leaving directory `/usr/local/radiusd/src' make[2]: *** [install] Error 2 make[2]: Leaving directory `/usr/local/radiusd/src' make[1]: *** [common] Error 1 make[1]: Leaving directory `/usr/local/radiusd' make: *** [install] Error 2 ____________________________________________________________
Alan DeKok wrote:
Frank Seesink <[EMAIL PROTECTED]> wrote:
I have downloaded the CVS files and tried building FreeRADIUS under Cygwin, and I'm all the way down to the build step where it attempts to make radiusd.exe (the daemon itself). Unfortunately, it blows up on something quite simple: undefined _crypt reference.
Edit src/main/Makefile. Look for the line building "radiusd". There's a $(LCRYPT) there. It's not enough. Add a *second* $(LCRYPT) as the last entry on the build line, after the $(MODULE_LIBS).
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

