Ted Mittelstaedt wrote: > Would you post a diff of the files you had to change to the list once > you get it running?
With the help of Giorgos, I finally got all the diff into separate patch files. Explanatory notes: 1. I am using mlrate-1.1.0.tar.gz and nngs-1.1.14.tar.gz (coz it is more stable and reliable than 1.1.16 version), and only nngs-1.1.14.tar.gz need to be patched. 2. configure.patch must be applied in order to compile nngs src in FreeBSD 5.3 (for i386) with gcc 3.4.2; the patch is hinted by this bug reported in sourceforge: http://sourceforge.net/tracker/index.php?func=detail&aid=1201565&group_id=59572&atid=491424 For your convenience, the gist is listed here: ----------------------------------------------- -lang-c89 deprecated quote from man gcc (3.3.5-20050130) Note: Previous versions of cpp accepted a -lang option which selected both the language and the standards conformance level. This option has been removed, because it conflicts with the -l option. just use -std=c89 (not sure but seem to works) ----------------------------------------------- P.S.: Although this can work, I can't find the option "-std" in "man gcc", quite strange. Any hints? 3. Up to now, the compilation can be done successfully with GNU make, but if the following patch(es) is/are not applied, the compiled binary (nngssrv) will throw a run-time error and dump core. The patches are credited to Dan Nelson and Giorgos Keramidas. Either one set of the patches is enough to avoid the run-time error. Which one to choose is up to your own. i) The patch of Dan Nelson involves only one file - command.c, and the patch file is command.c.patch.DanNelson ii) The patch of Giorgos involves two files - command.c and command_list.h, the patch files are command.c.patch.GiorgosKeramidas and command_list.h.patch.GiorgosKeramidas If you meet any other problem in the process of setting up the server, pls let us know. P.S.: After using Giorgos' method to create the diff patches, I don't know how to apply the patches back to the original file(s). Can Giorgos help me once more? (Actually, I am quite a newbie in FreeBSD world.) 4. Final word: when configure nngs src, it is best to enable adminlevels options, it is done by: ./configure --prefix=<your_install_dir> --enable-adminlevels Hope this open-source software can be integrated into "ports" system of FreeBSD. Thank you, all. Regards, Xu Qiang
command.c.patch.DanNelson
Description: Binary data
command.c.patch.GiorgosKeramidas
Description: Binary data
command_list.h.patch.GiorgosKeramidas
Description: Binary data
configure.patch
Description: Binary data
_______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
