Compiling Redland RDF LIbrary on OS X

Just wanted to drop a little note here, in case other folks are trying to compile the Redland RDF Library on OS X. Apparently, if you have a Intel box and have the MySQL 5.0.25+ ( x86 ) installed, you’re going to run into this error:

ld: multiple definitions of symbol _CRYPTO_add_lock

/usr/lib/libcrypto.dylib(cryptlib.o) definition of _CRYPTO_add_lock

/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-misc.o) definition of _CRYPTO_add_lock in section (__TEXT,__text)

ld: multiple definitions of symbol _CRYPTO_lock

/usr/lib/libcrypto.dylib(cryptlib.o) definition of _CRYPTO_lock

/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-misc.o) definition of _CRYPTO_lock in section (__TEXT,__text)

/usr/bin/libtool: internal link edit command failed

make[3]: *** [librdf.la] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all] Error 2

make: *** [all-recursive] Error 1

The folks over at MySQL have said they have fixed this bug, but apparently it’s still an issue on Intel boxes. To get around it for the Redland install, simply add the –with-mysql=no flag when you run ./configure. This disables Redlands MySQL triple store. More options can be found be found here.