[freetds] Max OS X Panther (solved?)
John Gilmore-Baldwin
jbaldwin at theolympian.com
Mon Nov 3 13:21:47 EST 2003
Send the message, figure something out. Is there a term for that?
Here's what I was able to do to get freetds (NOV-02 snapshot) to
compile cleanly on Panther:
In the libtool, change the archive_cmds= line (about line 205) to:
archive_cmds="\$CC \$(if test .\$module = .yes; then echo -bundle; else
echo -dynamiclib; fi) \$allow_undefined_flag -o \$lib \$libobjs
\$linkopts -install_name \$rpath/\$soname \$verstring"
I removed the \$deplibs in the line. Then cleaned, did a make and a
check, and it was working. I'm reasonably happy with the result (though
I wish I had a more complete understanding of the cause of this
situation).
I hope this is helpful to someone else as well.
John
On Nov 3, 2003, at 12:59 PM, John Gilmore-Baldwin wrote:
> I'm running into problems getting the make to complete in Panther (Mac
> OS X 10.3).
>
> The compiles work fine, but the libtool is putting the
> ./.libs/libtds_objects.a in twice to create the
> .libs/libtds.2.0.0.dylib library. (this is the first error, but I
> think the problem is repeated in a few places.)
>
> I can get the command to work properly if I do it manually without the
> second reference:
>
> gcc -dynamiclib -flat_namespace -undefined suppress -o
> .libs/libtds.2.0.0.dylib -all_load ./.libs/libtds_objects.a
> ../replacements/.libs/libreplacements.a -L/usr/lib -liconv
> ../replacements/.libs/libreplacements.a -lc -install_name
> /usr/local/lib/libtds.2.dylib -compatibility_version 3
> -current_version 3.0
>
> but then if I try to continue to make, it deletes my newly created
> library and tries to rebuild it and spews out duplicate reference
> errors:
>
> ld: multiple definitions of symbol _tds_alloc_client_sqlstate
> ./.libs/libtds_objects.a(mem.o) definition of
> _tds_alloc_client_sqlstate in section (__TEXT,__text)
> ./.libs/libtds_objects.a(mem.o) definition of
> _tds_alloc_client_sqlstate in section (__TEXT,__text)
> .......
>
> I'm not super familiar with make. I've tried examining the libtool in
> the distribution, but it's a lot to digest. I've been able to get
> freetds to compile on Mac OS X before by tweaking the makefiles a
> little bit, but I'm struggling a little more with this one.
>
> So, does anyone have any pointers?
>
> John
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
More information about the FreeTDS
mailing list