Magic Mailing List |
|
From: R. Timothy Edwards (tim AT stravinsky DOT jhuapl.edu) Date: Mon Mar 10 2003 - 11:48:44 EST
Dear Charles, > I am trying to compile Magic on a new computer that has been recently > formatted with RH8 and getting an interesting error. Basically, 7.2.27 (or > 7.2.28) compile without TCL fine and the executable runs. But when I compile > with TCL, I can see that at the step "making magic Tcl library > (tclmagic.so), I get four warnings regarding TxFlushOut, TxStopMore, > TxFlushErr & TxUseMore. I do a search on TxFlushOut, and I can see that it > is defined as a function in both textio.c & TxOutput.c. I am not as familiar > with Tcl as I am with C, and perhaps textio.c is not compiled in at the same > time as TxOutput.c, but nonetheless the TCL compile fails make at that step > bringing the whole train to a halt. Any suggestions as to what I might be > doing wrong? TxFlushOut should be defined in exactly two files, one of them textio/ txOutput.c, and the other magic/tclmagic.c. In textio/txOutput.c, this is wrapped in "#ifndef MAGIC_WRAPPER ... #endif". It looks as though "MAGIC_WRAPPER" is not defined in defs.mak, which suggests that maybe you didn't select "Tcl" during the "make config" step (or else the make config step screwed up royally, which is possible). You may want to try starting over, first by doing a "make clean" or even "make veryclean" to make sure that nothing is left over from previous compile attempts. After "make config", check that "-DMAGIC_WRAPPER" is in the list of definitions passed to the compiler. Finally, even if it is defined, make sure that it is being passed to the compiler (check make.log after doing "make"). You might also want to grab version 7.2.29, since I made numerous changes to the "make config" script. If I need to correct any errors in the script, I will be working off of that version, since I can't guarantee that changes required to the script for revisions 27 or 28 will be applicable in revision 29. Regards, Tim
|
|