Magic Mailing List |
|
From: Stefan Robert (srobert AT hermes DOT usherb.ca) Date: Sat Jun 29 2002 - 01:15:44 EDT
Hi, I am having problems compiling magic for MacOS X 10.1.5 and I believe the problem is not that bad since as per a previous mailing-list message from Micheal Doster (Tues Jan 24 2002) he successfully compiled it for MacOS X. I made the modifications to magic 7.1.5 source code and followed instructions as per message by Micheal Doster (Tues Jan 24 2002). Looking at a message posted on the mailing-list by John Nestor (Wed Jun 05 2002), I noticed he received similar error message from gnumake. The error message I received are: --- making modules --- compiling calma/CalmaRead.o gnumake[2]: *** [CalmaRead.o] Error 1 --- compiling cif/CIFgen.o gnumake[2]: *** [CIFgen.o] Error 1 --- compiling cmwind/CMWmain.o gnumake[2]: *** [CMWmain.o] Error 1 --- compiling commands/CmdINTERP.o gnumake[2]: *** [CmdINTERP.o] Error 1 --- compiling database/DBbound.o [...] And this goes on for all files that needs to be compiled. However, I believe all the include / librairies modules from XFree86 are installed as my /usr/include and /usr/lib directories all have the required header files. Looking in the make.log file I get the following description of the problem: --- compiling calma/CalmaRead.o rm -f CalmaRead.o cc -g -O2 -traditional -I. -I.. -I../readline -DmacII -DUSE_READLINE -DNONMANHATTAN -DUSE_NEW_MACROS -Dmacosx -c CalmaRead.c In file included from CalmaRead.c:26: ../misc/magic.h:301: conflicting types for `sprintf' /usr/include/stdio.h:278: previous declaration of `sprintf' make[2]: *** [CalmaRead.o] Error 1 --- compiling cif/CIFgen.o rm -f CIFgen.o cc -g -O2 -traditional -I. -I.. -I../readline -DmacII -DUSE_READLINE -DNONMANHATTAN -DUSE_NEW_MACROS -Dmacosx -c CIFgen.c In file included from CIFgen.c:25: ../misc/magic.h:301: conflicting types for `sprintf' /usr/include/stdio.h:278: previous declaration of `sprintf' make[2]: *** [CIFgen.o] Error 1 I was first guessing that this was just a problem in the order in which the *.h file are declared. However, looking in the magic.h file, it does say that the stdio.h header file must be declared before magic.h... and this is the case in all the files I looked into... Help from someone who knows how to solve this would be greatly appreciated. Regards, Stefan Robert, Jr. Eng. University of Sherbrooke, Canada
|
|