MAGIC Magic Mailing List
 
 

From: Spaceborne Calin (spaceborne_calin AT yahoo DOT com)
Date: Mon Jul 01 2002 - 02:36:01 EDT

  • Next message: thiagor AT brturbo DOT com: "help in magic"

     --- 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
    


  •  
     
    Questions? Contact Rajit Manohar
    cornell logo