[Devel] [ openser-Bugs-1376270 ] openodbc fail to locate -lodbc on
FreeBSD
SourceForge.net
noreply at sourceforge.net
Thu Dec 8 14:31:22 CET 2005
Bugs item #1376270, was opened at 2005-12-08 13:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1376270&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Submitted By: Norman Brandinger (goestelecom)
Assigned to: Nobody/Anonymous (nobody)
Summary: openodbc fail to locate -lodbc on FreeBSD
Initial Comment:
FreeBSD installs most "port" libraries in
/usr/local/include. This lib should be added to
modules/unixodbc/Makefile as shown below for
compilation to be successful.
I suggested a patch yesterday for "includes" that used
-I/usr/local/lib. After researching todays problem
with "libs", I found that Makefile.defs already begins
to setup local base directories for many OS's. I
propose changing modules/unixodbc/Makefile as follows.
New module Makefiles should probably follow a similar
format of using the $(LOCALBASE) variable.
# sql.h locations (freebsd,openbsd solaris)
DEFS+=-I$(LOCALBASE)/include
# libodbc locations on RH/Suse, Solaris /OpenBSD, FreeBSD
# (Debian does the right thing and puts it in /usr/lib)
LIBS+=-L$(LOCALBASE)/lib -lodbc -lz
Regards,
Norm
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1376270&group_id=139143
More information about the Devel
mailing list