[Home]

Summary:ASTERISK-06289: [patch] Makefile problem in channels/ directory
Reporter:Luigi Rizzo (rizzo)Labels:
Date Opened:2006-02-11 11:42:02.000-0600Date Closed:2006-02-11 12:36:00.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_misdn
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:the recently introduced mechanism for deriving automatically
modules names from file names fails (on FreeBSD, at least)
with chan_misdn which has two matching files (chan_misdn.c and chan_misdn_config.c) for one module (chan_misdn.so).

For those who don't have misdn, the patch below works.
However, i suspect compile should fail for others too, because
there is no chan_misdn_config.so module, and perhaps
the patch line should go unconditionally outside the ifeq
statement (i cannot test it, though).

ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/mISDNuser/mISDNlib.h),)
+  MODS:=$(filter-out chan_misdn_config.so,$(MODS))
  MODS:=$(filter-out chan_misdn.so,$(MODS))
else
  CFLAGS+=-Imisdn
endif
Comments:By: Russell Bryant (russell) 2006-02-11 12:35:10.000-0600

I had the same problem and fixed it by adding the 'filter-out' outside of the conditional since there is no chan_misdn_config.so module.  We are also going to ask crich to rename that file.  Thanks!