[Asterisk-Dev] Makefile problems
Kristian Kielhofner
kris at krisk.org
Thu Oct 6 22:09:34 MST 2005
Hello everyone,
Lines 309-312 of asterisk Makefile:
ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/dlfcn.h),)
OBJS+= dhfcn.o
ASTCFLAGS+=-DDLFCNCOMPAT
endif
Check for the presence of /usr/include/dlfcn.h. If it exists, add an
object called dhfcn.o and some extra CFLAGS. (Just trying to give you
my interpretation to make sure it's accurate).
This is all well and good, except that if your system keeps dlfcn.h in
/include/ (or anywhere but /usr/include), asterisk will fail because the
Makefiles evidently don't know how to make an object called dhfcn.o:
ter -DPOLLCOMPAT -DDLFCNCOMPAT -c -o poll.o poll.c
make: *** No rule to make target `dhfcn.o', needed by `asterisk'. Stop.
Running make failed. Please check this.
As you can see, it has done exactly what it should: defined DLFCNCOMPAT
and added an object named dhfcn.o - there just isn't one!
What's up?
--
Kristian Kielhofner
More information about the asterisk-dev
mailing list