There is a lot of information on bus errors at Mac OS X on the web. One person suggest that this has to do with installing different versions of the same library. Avoiding this with -avoid-version solves the problem in that case. However, parse-stratego does not refer to different versions of the same library:

/Users/t/pkg/strategoxt/2004-06-28-15-11/bin/parse-stratego:
/Users/t/pkg/strategoxt/2004-06-28-15-11/lib/srts/libliblib.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Users/t/pkg/strategoxt/2004-06-28-15-11/lib/srts/libstratego.opt.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Users/t/pkg/strategoxt/2004-06-28-15-11/lib/srts/libstratego-choice.opt.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Users/t/pkg/strategoxt/2004-06-28-15-11/lib/srts/libstratego-lib.opt.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.0.0)

Another report (OpenLDAP) advices to use -fno-common:

http://www.openldap.org/lists/openldap-devel/200203/msg00074.html

Submitted on 28 June 2004 at 16:42

On 28 June 2004 at 18:21 Jira commented:

STR-133, martin:
The top-level configure.ac now contains AC_PROG_LIBTOOL. Therefore it now accepts the flag –disable-shared. This results in an interesting error message at exactly the same location where the bus error occured when using shared libraries!


/Users/t/pkg/strategoxt/2004-06-28-17-55/bin/parse-stratego -i abox-ext.str -o abox-ext.rtree –verbose 0
** WARNING: Repository doesn’t exist: (XTC,Imported(“/Users/t/pkg/strategoxt/2004-06-28-17-55/share/strategoxt/XTC”))
No XTC registration for StrategoRenamed.sdf found
—————————————————————-


On 5 July 2004 at 15:51 Jira commented:

STR-133, martin:
Solved. Caused by a duplicate symbol.

Log in to post comments