[Coin-discuss] COIN on FreeBSD
John J Forrest
jjforre at us.ibm.com
Fri Apr 11 10:13:52 EDT 2003
Would it be better to bundle these platform specific items into one hpp
file. At present it could be included from CoinPragma.hpp?
On other queries e.g. from Mikhail I will try and work on it eraly next
week.
John Forrest
Jean-Sebastien Roy <js at jeannot.org>
Sent by: coin-discuss-admin at www-124.southbury.usf.ibm.com
04/10/2003 06:04 PM
Please respond to coin-discuss
To: coin-discuss at www-124.southbury.usf.ibm.com
cc:
Subject: [Coin-discuss] COIN on FreeBSD
Hi !
I recently had to compile COIN (SBB to be precise), on FreeBSD and
encountered a few errors. FWIW, the patches I used to compile are
attached.
Besides, SBB (already) works really well : thanks for the great work.
Regards,
js
CP := /bin/cp -p
LN := ln -s
###############################################################################
CC := gcc
DEPCC := gcc -MM
CXX := g++
DEPCXX := g++ -MM
FF := g77
DEPFF := g77 -MM
###############################################################################
ifeq ($(OptLevel),-O)
OPTFLAG = -O2
else
OPTFLAG = $(OptLevel)
endif
compilerOptFlags := -O -O1 -O2 -O3 -O4 -O5 -O6
###############################################################################
SYSLD +=
STATICSYSLD += -static
###############################################################################
# It's OK to specify this even if static executable is created.
SHLINKPREFIX := -Wl,-rpath,
ifeq (${LibType},SHARED)
LD := g++ -o
LIBLDFLAGS := -shared
LIBEXT := .so
CXXFLAGS += -fPIC
else
LD := ar -q
LIBLDFLAGS :=
LIBEXT := .a
CXXFLAGS +=
endif
EFENCE := -lefence
diff -ru COIN/Clp/ClpModel.cpp COIN_FBSD/Clp/ClpModel.cpp
--- COIN/Clp/ClpModel.cpp Fri Mar 28 21:49:20 2003
+++ COIN_FBSD/Clp/ClpModel.cpp Thu Apr 10 23:20:48 2003
@@ -13,6 +13,10 @@
#include "CoinPragma.hpp"
#ifndef _MSC_VER
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Clp/Idiot.cpp COIN_FBSD/Clp/Idiot.cpp
--- COIN/Clp/Idiot.cpp Sun Dec 15 04:43:45 2002
+++ COIN_FBSD/Clp/Idiot.cpp Thu Apr 10 23:24:56 2003
@@ -16,6 +16,10 @@
#ifndef _MSC_VER
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Clp/Samples/driver.cpp COIN_FBSD/Clp/Samples/driver.cpp
--- COIN/Clp/Samples/driver.cpp Thu Jan 9 18:58:56 2003
+++ COIN_FBSD/Clp/Samples/driver.cpp Thu Apr 10 23:44:16 2003
@@ -13,6 +13,10 @@
#include <time.h>
#if !defined(_MSC_VER)
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Clp/Test/ClpMain.cpp COIN_FBSD/Clp/Test/ClpMain.cpp
--- COIN/Clp/Test/ClpMain.cpp Tue Mar 25 18:27:24 2003
+++ COIN_FBSD/Clp/Test/ClpMain.cpp Thu Apr 10 23:25:43 2003
@@ -15,6 +15,10 @@
#include "CoinPragma.hpp"
#ifndef _MSC_VER
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Clp/Test/unitTest.cpp COIN_FBSD/Clp/Test/unitTest.cpp
--- COIN/Clp/Test/unitTest.cpp Fri Mar 28 21:49:21 2003
+++ COIN_FBSD/Clp/Test/unitTest.cpp Thu Apr 10 23:27:10 2003
@@ -35,6 +35,10 @@
#include <time.h>
#ifndef _MSC_VER
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Coin/include/CoinFinite.hpp
COIN_FBSD/Coin/include/CoinFinite.hpp
--- COIN/Coin/include/CoinFinite.hpp Mon Jan 6 17:09:15 2003
+++ COIN_FBSD/Coin/include/CoinFinite.hpp Thu Apr 10
23:14:54 2003
@@ -65,6 +65,13 @@
//=============================================================================
+#if defined(__FreeBSD__)
+# define CoinFinite finite
+# define CoinIsnan isnan
+#endif
+
+//=============================================================================
+
#if defined(__CYGWIN32__)
# define CoinFinite finite
# define CoinIsnan isnan
diff -ru COIN/Osi/OsiClp/OsiClpSolverInterface.cpp
COIN_FBSD/Osi/OsiClp/OsiClpSolverInterface.cpp
--- COIN/Osi/OsiClp/OsiClpSolverInterface.cpp Wed Apr 2
23:15:12 2003
+++ COIN_FBSD/Osi/OsiClp/OsiClpSolverInterface.cpp Thu Apr
10 23:39:47 2003
@@ -9,6 +9,10 @@
# pragma warning(disable:4786)
#else
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Osi/Test/OsiSolverInterfaceTest.cpp
COIN_FBSD/Osi/Test/OsiSolverInterfaceTest.cpp
--- COIN/Osi/Test/OsiSolverInterfaceTest.cpp Fri Jan 31
16:44:06 2003
+++ COIN_FBSD/Osi/Test/OsiSolverInterfaceTest.cpp Thu Apr
10 23:44:40 2003
@@ -50,6 +50,10 @@
#include <time.h>
#ifndef _MSC_VER
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Sbb/Samples/sample1.cpp COIN_FBSD/Sbb/Samples/sample1.cpp
--- COIN/Sbb/Samples/sample1.cpp Sat Jan 25 21:36:52 2003
+++ COIN_FBSD/Sbb/Samples/sample1.cpp Thu Apr 10 23:43:45 2003
@@ -31,6 +31,10 @@
#include <time.h>
#if !defined(_MSC_VER)
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Sbb/Samples/sample2.cpp COIN_FBSD/Sbb/Samples/sample2.cpp
--- COIN/Sbb/Samples/sample2.cpp Sat Mar 15 15:31:55 2003
+++ COIN_FBSD/Sbb/Samples/sample2.cpp Thu Apr 10 23:43:38 2003
@@ -39,6 +39,10 @@
#include <time.h>
#if !defined(_MSC_VER)
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Sbb/SbbModel.cpp COIN_FBSD/Sbb/SbbModel.cpp
--- COIN/Sbb/SbbModel.cpp Tue Apr 8 16:12:40 2003
+++ COIN_FBSD/Sbb/SbbModel.cpp Thu Apr 10 23:41:33 2003
@@ -36,6 +36,10 @@
#include <time.h>
#if !defined(_MSC_VER)
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Sbb/Test/SbbMain.cpp COIN_FBSD/Sbb/Test/SbbMain.cpp
--- COIN/Sbb/Test/SbbMain.cpp Mon Feb 17 00:40:07 2003
+++ COIN_FBSD/Sbb/Test/SbbMain.cpp Thu Apr 10 23:42:53 2003
@@ -104,6 +104,10 @@
#include <time.h>
#if !defined(_MSC_VER)
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
diff -ru COIN/Sbb/Test/unitTest.cpp COIN_FBSD/Sbb/Test/unitTest.cpp
--- COIN/Sbb/Test/unitTest.cpp Sat Jan 25 03:09:16 2003
+++ COIN_FBSD/Sbb/Test/unitTest.cpp Thu Apr 10 23:43:12 2003
@@ -53,6 +53,10 @@
#include <time.h>
#if !defined(_MSC_VER)
#include <sys/times.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#endif
#include <sys/resource.h>
#include <unistd.h>
#endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20030411/c1fe24ed/attachment.html>
More information about the Coin-discuss
mailing list