Splint - Secure Programming Lint |
info@splint.org |
Download - Documentation - Manual - Links | Reporting Bugs - Mailing Lists Sponsors - Credits |
Source Code Installation
Splint should compile effortlessly on standard Unix systems, and with a bit of effort on non-Unix platforms. If you produce a port for a non-Unix platform, please let splint@cs.virginia.edu know.
To build Splint you need:
- a (hopefully ANSI-conforming) C compiler. GNU gcc is recommended, but most modern C compilers should work.
- make, the GNU make utility. If you don't have make installed on your system, download it from ftp.gnu.org.
- standard Unix tools: gzip, tar
Instructions:
The remaining steps are only necessary if you want to install the Splint binary and libraries in a different directory (set when you ran configure).
- Download http://www.splint.org/downloads/splint-3.1.0.tgz. (the latest stable release).
Copy this package to the directory where you want to build Spint. When the tar file is extracted, it will create a splint-3.1.0 subdirectory.
- tar xzf splint-3.1.0.src.tgz (extract files from the archive)
- cd splint-3.1.0 (enter the extracted directory)
- configure
This will create a Makefile with settings for your system. Use configure --prefix=directory if you want to install Splint in prefix directory directory.
- make
GNU's make utility is required; it may be named gmake or gnumake on your system. It is best to do this in an emacs shell or a buffered terminal, so you can scroll through the output.This builds Splint. While it is building, subscribe to the lclint-announce mailing list by sending a message to majordomo@virginia.edu containing the body:
subscribe lclint-announceIf the build was successful, it then runs the test suite. You should see:
Examine the test output. If there are errors, send a bug report to splint-bug@cs.virginia.edu.Testing splint 3.1.0... Version Info: Splint 3.1.0 --- 11 Feb 2002 Maintainer: splint-bug@splint.org ... (about 100 lines of test output elided) Checking manual... Checking tests2.2... Checking tests2.4... Checking tests2.5... Checking db1... Checking db2... Checking db3...Note: If possible do not built splint in a directory under /usr/. If the test suite is run in a directory under /usr/ for example /usr/src/, it will report errors even if Splint was built correctly.
- make install
- Set environment variables:
LARCH_PATH - path to search for splint libraries and initializations files. If you are using the standard directories, this should be .:base-directory/splint-3.1.0/lib.Put the commands to set these variables (the actual commands will depend on the shell you are using) in one of your initialization dotfiles (usually ~/.environment).LCLIMPORTDIR - directory containing lcl imports files. If you are using the standard directories, this is base-directory/splint-3.1.0/imports.
Set up your PATH to include the directory containing splint-3.1.0/bin/splint, or move the binary to a directory on your command path.
![]() |
|