Summary:ASTERISK-04256: zaptel/Makefile broken for RHEL3
Reporter:Mark Monnin (wrmem)Labels:
Date Opened:2005-05-23 10:54:43Date Closed:2011-06-07 14:10:36
Versions:Frequency of
Description:Zaptel cannot be compiled using Makefile r1.75 (up to and incl 1.78) on a
RedHat Enterprise 3 server (RHEL3).

Removing the make rules for zaptel.o (etc.) creates a bad line for gcc (adds all of the .h files to the command line).

"cvs update -r 1.75 zaptel Makefile" is a work around.  

(Sorry, not a Makefile expert - can't supply a suitable patch).


gcc -I/lib/modules/2.4.21-27.0.4.EL/build/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/lib/modules/2.4.21-27.0.4.EL/build/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/lib/modules/2.4.21-27.0.4.EL/build/drivers/net/wan -I/lib/modules/2.4.21-27.0.4.EL/build/include/net -DMODVERSIONS -include /lib/modules/2.4.21-27.0.4.EL/build/include/linux/modversions.h  -DSTANDALONE_ZAPATA -o zaptel.o -c zaptel.c zaptel.h digits.h arith.h sec.h mec.h sec-2.h mec2.h mec3.h zconfig.h
gcc: cannot specify -o with -c or -S and multiple compilations
make: *** [zaptel.o] Error 1

GCC: gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)
MAKE: GNU Make version 3.79.1
KERNEL: Linux 2.4.21-27.0.4.EL     {aka kernel-2.4.21-27.0.4.EL.rpm)

Apologies if this is a "send to Digium support" question.
Comments:By: Russell Bryant (russell) 2005-05-23 18:43:27

This bug is realted to the recent changes you have made to the Zaptel makefile.

By: Michael Jerris (mikej) 2005-05-23 22:13:16

Zaptel makefile v 1.79 appears to be to address this issue.  Can we get feedback if it is now resolved please.

By: Mark Monnin (wrmem) 2005-05-24 08:46:58

Confirm: Latest cvs works.  Thanks.