Magic Mailing List |
|
From: Stefan Robert (srobert AT hermes DOT usherb.ca) Date: Thu Jul 18 2002 - 00:20:05 EDT
Finally I have time to reply back. I commented out the sprintf comand in magic.h and magic compiles fine. However, looking at the modifications to the source code proposed by Micheal Doster (Tues Jan 24 2002), I should not have to do this since modification to the source code seems to have been made to add MacOS X to the preprocessor commands... Hence the compiler should have understood that I was compiling for MacOS X and not use the sprintf definition in magic.h. Now does this mean that my compiler did not understand the -Dmacosx switch that was added to correspond with the preprocessor commands? So all modifications in the source code I compiled were not considered by the compiler? Anyway, after the suggestion by Colin, Magic compiled fine on MacOS X and it up and running. Le Lundi 1 juillet 2002, à 02:36 , Spaceborne Calin a écrit : > --- Stefan Robert <srobert AT hermes DOT usherb.ca> a écrit : > 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: >> 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 think you need to comment out the declaration of sprintf in > magic.h. > > >> >> Regards, >> >> Stefan Robert, Jr. Eng. >> University of Sherbrooke, Canada >> > > Calin > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse AT yahoo DOT fr gratuite et en français ! > Yahoo! Mail : http://fr.mail.yahoo.com >
|
|