[GE users] Clean compile on FreeBSD?

Erik van Roode gridengine at cthulhu.demon.nl
Tue Nov 16 06:11:54 GMT 2004


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

On Monday 15 November 2004 13:51, Jeroen Kleijer wrote:
> sge_bdb_types.h:80: error: syntax error before
> '*' token

I run 4.8, not 5.x, but it sounds like <db.h> isn't included (DB_ENV 
undefined). At least I get the same error.

ports/db42 installs db.h in a db42 subdirectory, /usr/local/include/db4/,
and libraries in /usr/local/lib/libdb42.

Try this in your aimk.site:
----------------------------------------------------
set BERKELEYDB_HOME = /usr/local
set BDB_INCLUDE_SUBDIR = db42
set BDB_LIB_SUBDIR = db42
set BDB_LIB_SUFFIX =
----------------------------------------------------
Setting BDB_LIB_SUBDIR doesn't seem to have any effect though,
so I ended up hacking the Makefile by adding -L/usr/local/lib/db42

gridengine/source/libs/spool/berkeleydb/Makefile
 -L/usr/local/lib/db42 -ldb${BDB_LIB_SUFFIX}

Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list