[Coin-discuss] Compile BCP 1.0 on SunOS 5.10

Dan Chen mailtodanchen at yahoo.ca
Thu Nov 2 14:57:08 EST 2006


Hi Lou,

After I add '#include <string.h>' into BCP_string.hpp and '#include <signal.h>' into CoinSignal.hpp, Bcp is compiled. Then, I copy 'config_coinutils.h.in' from build/CoinUtils/inc/ to CoinUtils/src, and rename it to 'config_coinutils.h'. When I run 'make test' I got the following message:


Making all in CoinUtils
Making all in src
Making all in Bcp
Making all in src
Making all in Osi
Making all in src
Making all in .
Making all in OsiClp
Making all in OsiVol
Making all in Vol
Making all in src
Making all in Clp
Making all in src
make: Fatal error: Don't know how to make target `/home/dchen/largescratch/coin-Bcp/seqbuild/CoinUtils/src/libCoinUtils.la'
Current working directory /net/nfs1-data/scratchLarge/tmp/dchen/coin-Bcp/seqbuild2/Clp/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='src '; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /net/nfs1-data/scratchLarge/tmp/dchen/coin-Bcp/seqbuild2/Clp
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='CoinUtils Bcp Osi Vol Clp Cgl'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'



Lou Hafer <lou at cs.sfu.ca> wrote: Dan,

 I'm testing this on Solaris 5.10, with Sun/Studio 11 compilers, using
the stable/1.0 revision checked out from subversion. Looks like you're using the 
release tarball 1.0.0. I'm hoping there are no significant differences.

 The immediate cause of your problem is that Solaris doesn't define 
strlen, etc, in cstring; it prefers string.h. If you add the line

#include 

immediately below #include  in BCP_string.hpp, the main compile will
go through without error.

 But ...  if you try to build the test, you'll run into another problem,
a complaint that the file config_coinutils.h cannot be found.  The proper fix
for this requires a correction to test/BAC/Makefile.am (adding COINUTILSOBJDIR
to the include path) , which means you'll need to run the Gnu autotools, which
means you'll need to upgrade CoinUtils, which means ...  well, you probably
don't want to get into it (but email me if you do, and I'll finish the story).
Instead, try this ...  at some point before you run `make test', copy the file

build/CoinUtils/inc/config_coinutils.h

to

CoinUtils/src

That should allow the test to compile and run.

 Hope this does it for you; post again if you run into trouble.
 
       Lou

_______________________________________________
Coin-discuss mailing list
Coin-discuss at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/coin-discuss


 		
---------------------------------
The best gets better. See why everyone is raving about the All-new Yahoo! Mail.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20061102/efdd8608/attachment.html>


More information about the Coin-discuss mailing list