[freetds] make fails in macosx 10.3 libtools section

Nicki Handy nhandy at assumption.edu
Mon Jul 12 15:39:18 EDT 2004

Hello- I have a novice question, but I couldn't find anything in the
documentation or the archives. I am getting an error on make in max osx
10.3.4. i am logged in as root. i read in the known problems with OSes that
one line in the libtool should be edited for osx so I think that might be my
problem. unfortunately, the directions seem to be a bit outdated- they say
to edit a line that is different in the version I have but I did delete out
the variable $deplibs after i started getting these errors. That did not
help. Any ideas?

/usr/bin/libtool: unknown option character `B' in: -Bsymbolic
Usage: /usr/bin/libtool -static [-] file [...] [-filelist
listfile[,dirname]] [-arch_only arch] [-sacLT]
Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist
listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name]
[-compatibility_version #] [-current_version #] [-seg1addr 0x#]
[-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table
<filename>] [-seg_addr_table_filename <file_system_path>] [-all_load]
make[3]: *** [libtdsodbc.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
[ast:assumpti/Desktop/freetds-0.62.4] root#
this is what the docs say to change: (i'm not sure how i would apply this
patch but as i said i simply deleted the var i thought it might not like)
Figure 2-1. libtool patch for OS X 10.3
--- libtool-orig Thu Nov 6 15:34:53 2003
+++ libtool Thu Nov 6 15:38:45 2003
@@ -202,7 +202,7 @@

# Commands used to build and install a shared archive.
-archive_cmds="\$CC \$(if test .\$module = .yes; then echo -bundle; else
echo -dynamiclib; fi) \$allow_undefined_flag -o \$lib \$libobjs \$deplibs
\$linkopts -install_name\$rpath/\$soname \$verstring"
+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"

This patch was contributed by <Daniel Fazekas>, and has been used
successfully by three people that we know of. As you can see, the only
effect is to remove \$deplibs from line 202.

Thanks a lot

More information about the FreeTDS mailing list