On Tue, 25 Nov 2008 16:45:12 CST, Mickey Chandler said:

> The Makefile has "CFLAGS_Linux=-lldap -lldap nooci.o -lodbc" in it and

Given that line...

> I've tried to rebuild three times and still come up with that, when I
> think that there should be a link to one of these:
>
> /usr/lib/libmyodbc3-3.51.12.so
> /usr/lib/libmyodbc3.so
> /usr/lib/libmyodbc3_r-3.51.12.so
> /usr/lib/libmyodbc3_r.so

You probably won't get links to those libraries.

CFLAGS_Linux="-lldap -lldap nooci.o -lmyodbc3"

has a much better chance of winning.  Note that last library name - you want
a different library, you have to *tell* it, the linker isn't a mind reader :)

Oh, and if you want the _r thread-safe variants, you of course should use
"-lmyodbc3_r" instead.  Again, it's not a mind-reader.