Linking problems on Mac OS

Hi,

I have a problem creating a binary for conversion of data files to ROOT files. (It is a program I borrowed, so I don’t know all the details of it.) The program works fine on Linux, but when I try to use it on Mac OS, it doesn’t.

The version of ROOT I use is 5.10 (downloaded with Fink Commander), on Mac OS X v. 10.4.

As a first step I have to create a shared library, libRawData (with suffix either .so or .dylib, I don’t know which is most appropriate), for the class TRawData, so I change the SOFLAGS in the old Makefile to:
SOFLAGS = -flat_namespace -dylib -bundle -undefined suppress

This seems to work fine, but I don’t know if -undefined suppress just hides the errors?

When linking to the created shared library in the creation of the binary, I get the errors:

ld: /extract/ROOTTREE/libRawData.dylib is input for the dynamic link editor, is not relocatable by the static link editor again
ld: warning empty table of contents: /extract/libacqfynu.a (can’t load from it)
ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
make: *** [reconstrev] Error 1

can anyone help?

Solveig