The availability of socketbits.h?

Xu Qiang Qiang.Xu at fujixerox.com
Wed May 18 03:34:24 PDT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: command.c.patch.DanNelson
Type: application/octet-stream
Size: 341 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050518/c1e76200/command.c.patch.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: command.c.patch.GiorgosKeramidas
Type: application/octet-stream
Size: 296 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050518/c1e76200/command.c.patch-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: command_list.h.patch.GiorgosKeramidas
Type: application/octet-stream
Size: 268 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050518/c1e76200/command_list.h.patch.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.patch
Type: application/octet-stream
Size: 1107 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050518/c1e76200/configure.obj


More information about the freebsd-questions mailing list