Magic Mailing List |
|
From: Graham Petley (graham.petley AT vlsitechnology DOT org) Date: Tue Jul 22 2003 - 06:02:54 EDT
Hallo, I recently installed magic on an x86 Linux Suse 8.2 machine. The installation wasn't smooth. I'm not a software engineer, so I struggled to complete the installation, but managed in the end: 1/ I downloaded the 7.1 version, but the make step produced lots of warnings like: CalmaRead.c:21:9: warning: extra tokens at end of #endif directive with errors at the end, so I gave up on that. 2/ I downloaded the 7.2.43 version and this choked on an included file varargs.h. Checking the web, I found that version 3.3 of gcc, which I have, no longer supports this file. It is there, but the contents are: #ifndef _VARARGS_H #define _VARARGS_H #error "GCC no longer implements <varargs.h>." #error "Revise your code to use <stdarg.h>." #endif The error lines were being copied to the output when the files referencing varargs.h were compiled, and then the compilation failed. 3/ Simply changing varargs.h to stdarg.h as implied in the error message didn't work. 4/ A web search revealed that varargs.h supports pretty old code and for this reason support has now been withdrawn. I couldn't find any help if the code that needed revising was not yours to revise. I didn't feel up to revising someone else's code! 5/ I found another varargs.h file under bcc/include, and copied it across to the gcc tree. At this point the compile worked and magic-7.2.43 is now functional. As you've probably guessed, my C programming skills are pretty minimal, and it took me around 4 hours to get magic operational. Hopefully, this email will help you improve the install process for future users. Why gcc 3.3 was released without a varargs.h_old file being included is a mystery to me. Graham Petley
|
|