Re: Compiling error - No rule to make target

2003-01-31 Thread Alan DeKok
Jim [EMAIL PROTECTED] wrote:
 Using v.0.8.1 on FreeBSD 4.3-RELEASE
 vanilla ./configure
...
 Following error messages upon make -n:

  'gmake' is required.  Using that should help...

  Alan DeKok.

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



Re: Compiling error - No rule to make target

2003-01-31 Thread Jim

On Fri, 31 Jan 2003, Alan DeKok wrote:

 Jim [EMAIL PROTECTED] wrote:
  Following error messages upon make -n:
 
   'gmake' is required.  Using that should help...

Well, I had d/l'd GNU make 3.80 from www.gnu.org and installed it - it
named itself make. 

Jim


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



Re: Compiling error - No rule to make target

2003-01-31 Thread Alan DeKok
Jim [EMAIL PROTECTED] wrote:
 Well, I had d/l'd GNU make 3.80 from www.gnu.org and installed it - it
 named itself make. 

  Yeah, but /usr/bin/make is BSD make, and gnu make is probably in
/usr/local/bbin/make.

  If /usr/bin comes before /usr/local/bin in your PATH variable (as it
should), then BSD make will always be used.

  To fix this, do:

cd /usr/local/bin
ln -s make gmake

  and then typing 'gmake' should work.

  Alan DeKok.

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



Compiling error - No rule to make target

2003-01-30 Thread Jim
We've decided to dump ICRadius and use FreeRadius, assuming it works.
Unfortunately, we're having a heck of a time compiling it.

Could somebody please point me in the right direction?

Using v.0.8.1 on FreeBSD 4.3-RELEASE
vanilla ./configure

The only output from ./configure that seems odd is this:

checking gethostbyaddr_r() syntax... none!  It must not exist, here.


Following error messages upon make -n:

snip
gcc  -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -DNDEBUG
-I../include -I/usr/local/include  -c mainconfig.c
make[4]: *** No rule to make target `../lib/libradius.a', needed by
`radiusd'.  Stop.
make[4]: Leaving directory `/usr/local/src/freeradius-0.8.1/src/main'
make[3]: *** [common] Error 1
make[3]: Leaving directory `/usr/local/src/freeradius-0.8.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/freeradius-0.8.1/src'
make[1]: *** [common] Error 1
make[1]: Leaving directory `/usr/local/src/freeradius-0.8.1'
make: *** [all] Error 2
/snip

libradius-related files exist here:

# find / -name libradius* -print
/usr/lib/libradius.a
/usr/lib/libradius.so.1
/usr/lib/libradius.so
/usr/local/src/freeradius-0.8.1/src/include/libradius.h

Appropriate snippet from src/main/Makefile (note $(MODULE_OBJS)):

snip
SERVER_OBJS = radiusd.o files.o util.o acct.o nas.o log.o valuepair.o\
  version.o proxy.o exec.o auth.o timestr.o conffile.o \
  modules.o modcall.o session.o xlat.o threads.o smux.o \
  radius_snmp.o client.o request_list.o mainconfig.o
INCLUDES= ../include/radiusd.h ../include/radius.h
../include/libradius.h ../include/conf.h ../include/autoconf.h

CFLAGS  += -I../include $(SNMP_INCLUDE)
LDFLAGS += -L../lib
LIBS+= -lradius $(SNMP_LIBS)
MODULE_LIBS = $(STATIC_MODULES)
MODULE_OBJS =
VFLAGS  = -DRADIUSD_MAJOR_VERSION=$(RADIUSD_MAJOR_VERSION)
VFLAGS  += -DRADIUSD_MINOR_VERSION=$(RADIUSD_MINOR_VERSION)
BINARIES= radiusd radwho radzap raduse radclient radrelay

#
#  Not using shared libraries, add in ALL known static modules
# at build time.
#
ifneq ($(USE_SHARED_LIBS),yes)
MODULE_LIBS += $(shell for x in $(MODULES);do test -f
../modules/$$x/$$x.la  echo -dlpreopen ../modules/$$x/$$x.la;done)
MODULE_OBJS += $(shell for x in $(MODULES);do test -f
../modules/$$x/$$x.la  echo ../modules/$$x/$$x.la;done)
endif

all:$(BINARIES)

radiusd: $(SERVER_OBJS) ../lib/libradius.a $(MODULE_OBJS)
$(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self \
$(CFLAGS) $(LDFLAGS) -o $@ \
$(SERVER_OBJS) $(LCRYPT) $(LIBS) \
$(PTHREADLIB) $(LIBLTDL) $(MODULE_LIBS)
/snip


I've searched all through the list archives, read all the config comments,
gone blind reading everything, but can't find anything relating to this
other than 'install the right lib', which we have all the libs in the
world, probably. It looks like it should compile, but it's not.

And, if there's a guru who wouldn't mind making a few bucks to
assist/direct/do this for us, please reply offlist.

thanks,
Jim


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