From: Matt S. <ms...@er...> - 2003-06-22 04:23:06
|
Well, I can build the CVS! I had to modify the compile script somewhat: <compile_script> #!/bin/csh -f # Compile script for NIST RCS/EMC software # Define the PLAT names in these two variables to # match the coresponding .def names in rcslib/etc # For example, using an rtlinux-3.0 and 2.2.18 kernel setenv NONREALTIMEPLAT 'linux_2_2_18' setenv REALTIMEPLAT 'rtlinux_3_0' # Set the directory prefix setenv DIRECTORY_PREFIX '/usr/local/nist/emc' # Compile the rcslib cd $DIRECTORY_PREFIX/rcslib/src=20 make PLAT=3D$NONREALTIMEPLAT make PLAT=3D$REALTIMEPLAT # Compile the EMC cd $DIRECTORY_PREFIX/emc/src make PLAT=3D$NONREALTIMEPLAT make PLAT=3D$REALTIMEPLAT # Fix a directory link problem cd $DIRECTORY_PREFIX/emc/plat rm linux_2_2_18 ln -s old_dir_linux_2_2_18 linux_2_2_18 # Done exit 0 </compile_script> At first I tried Paul's latest script, but invoking make on the emc code = with=20 all those other parameters caused the rcslib.so file to not contain a=20 function called RTLMEM::RTLMEM which is needed by some programs in the em= c.=20 The errors look like: <error> /usr/local/nist/emc/rcslib/plat/linux_2_2_18/lib/librcs.so: undefined=20 reference to `RTLMEM::RTLMEM(char *, char *, int, int)' collect2: ld returned 1 exit status make[2]: *** [/usr/local/nist/emc/rcslib/plat/linux_2_2_18/bin/nmlclean] = Error=20 1 make[1]: *** [all] Error 2 <...> /usr/local/nist/emc/rcslib/plat/linux_2_2_18/lib/librcs.so: undefined=20 reference to `RTLMEM::RTLMEM(char *, char *, int, int)' collect2: ld returned 1 exit status make[1]: *** [/usr/local/nist/emc/emc/plat/linux_2_2_18/bin/emcnmlsize] E= rror=20 1 make: *** [all] Error 2 </error> I don't know why, and I couldn't figure it out either :( . I'll be switching to the BDI 2.20b as soon as I can get it downloaded and= =20 burned. I'll retest this procedure then and if it works I'll put the late= st=20 stuff on a mill I retrofitted recently and see if the code works (a separ= ate=20 issue in it self...). If everyone else could test this, that would be great. If it builds for=20 everybody, lets all get back on the same page with the cvs version of the= =20 code. Matt |