Compile Time


No such file or directory

Make sure that the path to your compiler is correct. If you specified a compiler by setting CC when building your Makefile (for example, make makefiles CC="/path" ), double-check the path you typed. If the path to your compiler came from the Postfix makedefs file, you might need to override it with:

$ make makefiles CC="/path/to/your/compiler"

Another possibility is to have Postfix call your compiler without a path, assuming its directory is in your environment path:

$ make makefiles CC="cc"

Could not open source file

Make sure that the path to your include files is correct. The include files are normally stored in /usr/include. If your system uses a different path for some reason, you will have to specify it with the -I option set in CCARGS :

$ make makefiles CCARGS="-I/path/to/include"

If you already specified a path with -I double-check your typing.

Unresolved (or undefined) symbol

Make sure that the library paths you specified with the -L option are correct and that you have specified the libraries themselves correctly with the -l option.

Warnings from header files

If you see errors associated with a header file like mail_conf.h, you may not be using an ANSI C compiler. Nearly all platforms ship with a compiler that is used to reconfigure the kernel, but they do not all include an ANSI C compiler that you can use for development. You may have to contact your vendor to get an ANSI C compiler if you want to build Postfix. Also, the GNU gcc compiler works on nearly all platforms and is available as open source software. If you are using the compiler for HP-UX, you must use the -Ae flag to compile in ANSI mode. Include it in your CCARGS variable:

$ make makefiles CCARGS="-Ae"

Don’t know how to

You have probably lost your Makefile or never had one. You can easily create your Makefile by executing the command:

$ make -f Makefile.init makefiles

After that completes, try your build again.

results matching ""

    No results matching ""