Boost logo

Boost Users :

From: Tan Kwee Heong (tan.k.h_at_[hidden])
Date: 2005-06-28 22:24:25


Hi,

I hope this is the right forum to post this bug I found. If not, let me know
and I'll repost.

Thanks,

----------------------------------------------------------------------------
-
platform : win2k
boost version : 1_32_0
compiler : g++ 3.3.1 (cygming special)
build : both debug and release ( static linking of graphviz
library )

Symptoms:
1) Reading a digraph .dot file causes a syntax error to be emitted
2) The BGL example testcase has a false pass

This problem occurred in my BGL code, but to reproduce the problem, it is
easier to use the BGL example program example/graphviz.cpp, as annotated
below.

1) This step runs the graphviz testcase in <boost>\libs\graph\example.
Although
   I built both debug and released, I've retained only the relevant
"release" output.

      |

h:\vault\boost\boost_1_32_0\libs\graph\example>bjam -d2 --preserve-test-targ
ets -sTOOLS=gcc -sBUILD="debug release <runtime-link>static" graphviz
      | ...
      | gcc-C++-action
..\..\..\bin\boost\libs\graph\example\graphviz.test\gcc\debug\runtime-link-s
tatic\graphviz.obj
      |

"g++" -c -Wall -ftemplate-depth-255 -g -O0 -fno-inline -I"..\..\..\bin
\boost\libs\graph\example" -I "h:\vault\boost\boost_1_32_0" -o
"..\..\..\bin\boost\libs\graph\example\graphviz.test\gcc\debug\runtime-link-
static\graphviz.obj" "..\..\..\libs\graph\example\graphviz.cpp"
      | gcc-Link-action
..\..\..\bin\boost\libs\graph\example\graphviz.test\gcc\debug\runtime-link-s
tatic\graphviz.exe
      | "g++" "-Wl,--enable-auto-image-base" -static -g -o
"..\..\..\bin\boost\libs\graph\example\graphviz.test\gcc\debug\runtime-link-
static\graphviz.exe" -L"../../../bin/boost/libs/graph/build/libbgl-viz.lib/
gcc/debug/runtime-link-static"
"..\..\..\bin\boost\libs\graph\example\graphviz.test\gcc\debug\runtime-link-
static\graphviz.obj"
"..\..\..\bin\boost\libs\graph\build\libbgl-viz.lib\gcc\debug\runtime-link-s
tatic\libbgl-viz.lib"
"..\..\..\bin\boost\libs\graph\build\libbgl-viz.lib\gcc\debug\runtime-link-s
tatic\libbgl-viz.lib"
      |
      | execute-test
..\..\..\bin\boost\libs\graph\example\graphviz.test\gcc\debug\runtime-link-s
tatic\graphviz.run
      | ...

2) Note the **passed"" line.

      | **passed**
..\..\..\bin\boost\libs\graph\example\graphviz.test\gcc\debug\runtime-link-s
tatic\graphviz.test
      |

3) This step shows running the testcase executable built above, manually,
showing the syntax error emitted.

      |
H:\vault\boost\boost_1_32_0\bin\boost\libs\graph\example\graphviz.test\gcc\r
elease\runtime-link-static>graphviz
../../../../../../../../../libs/graph/example/graphviz_test.dot
      | graphviz
../../../../../../../../../libs/graph/example/graphviz_test.dot
      | This is an example to demonstrate how to read graphviz file
      | and how to write graph to graphviz format.
      |
      |
      | Usage: graphviz <input>.dot <output>.dot
      | If only have one xxx.dot in command line,
      | the second dot is graphviz_test_new.dot by default.
      | If there is no input and output dot file in command line, input is
graphviz_test.dot and output graphviz_test_new.dot.
      | syntax error
      |

4) This step shows an equivalent VC7.1 build that runs correctly.

      |
H:\vault\boost\boost_1_32_0\bin\boost\libs\graph\example\graphviz.test\vc-7_
1\release\runtime-link-static>graphviz
../../../../../../../../../libs/graph/example/graphviz_test.dot
      | graphviz
../../../../../../../../../libs/graph/example/graphviz_test.dot
      | This is an example to demonstrate how to read graphviz file
      | and how to write graph to graphviz format.
      |
      |
      | Usage: graphviz <input>.dot <output>.dot
      | If only have one xxx.dot in command line,
      | the second dot is graphviz_test_new.dot by default.
      | If there is no input and output dot file in command line, input is
graphviz_test.dot and output graphviz_test_new.dot.
      | a1 --> a2 b3
      | a2 --> a3
      | a3 --> end
      | a0 --> a1 a2 a3
      | b0 --> b1 a1 a2 a3 a0
      | b1 --> b2 a1 a2 a3 a0
      | b2 --> b3 a1 a2 a3 a0 a3
      | b3 --> a1 a2 a3 a0 end
      | start --> a1 a2 a3 a0 b0
      | end -->
      |


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net