[OPEN-ILS-DEV] install.sh build -- lot's of apparent errors...

Dan Scott denials at gmail.com
Wed Mar 28 18:10:41 EDT 2007


On 24/03/07, Garry Collum <gcollum at gmail.com> wrote:
> It's been a while since I programmed in C, but libdbdpgsql is the correct
> name for the library.  The -l in the ld is a switch followed by the name of
> the library, sans lib.
>
> A complete hack, but I copied the contents of /usr/lib/dbd into the
> Open-ILS/src/c-apps directory and tried again.  I got a little farther, but
> ld errored out again.  With the error of: collect2: ld returned 1 exit
> status.  I would like to figure out why ld is not finding the libraries in
> /usr/lib/dbd.
>
> I have httpd-2.2.3-5 and httpd-devel-2.2.3-5 installed.
>
> Garry

Guys, I just got bit by a similar bug at runtime (rather than at
compile time). Except in my case, the desired library lives in
/usr/local/lib/dbd/. I'm running on Gentoo, so your mileage may vary.

Rather than copying the libraries around, you should either be able to:

1) Add /usr/lib/dbd/ to /etc/ld.so.conf and run "ldconfig" to enable
the libraries to be found
 or
2) Modify the LD_LIBRARY_PATH environment variable to include
/usr/lib/dbd/  (I set it in the opensrf users ~/.bashrc file).

100 karma bonus points to Bill Erickson for having the patience to
work through this issue with me.

Good luck.


Dan


> On 3/24/07, John Craig < john at alphagconsulting.com> wrote:
> >
> > Hi Garry,
> >
> > I'm so inexperienced at making stuff from source that I'm moving very
> slowly indeed.... I am slowly figuring a few things out with make and how
> it's supposed to be used...
> >
> > Notes below.
> >
> > John
> >
> > Garry Collum wrote:
> > Hi John,
> >
> > I'm trying to build on Fedora as well and I'm getting errors, but I'm
> getting closer.
> >
> > Here are my variable definitions.
> > APXS2="/usr/sbin/apxs"
> > APACHE2_HEADERS="/usr/include/httpd"
> > APR_HEADERS="/usr/include/apr-1"
> > LIBXML2_HEADERS="/usr/include/libxml2"
> > Got those set fine (although uncoventionally; I should, apparently have
> run: make configure eh?).
> >
> >
> > Here's a couple of things that are not obvious.
> >
> > The first set of errors I got were for memcached. I didn't compile and
> install the libmemcache.  You have to go to http://www.danga.com/memcached
> to get memcached, but while you are there you also need the libmemcache for
> the build (http://www.danga.com/memcached/apis.bml ).  It's
> under the C API section.   I also got the perl module while I was there.
> It's the most current one.
> > I got memcache and libmemcache and the memcache Perl module taken care of.
> >
> >
> > Also Fedora puts the dbdpgsql library in /usr/lib/dbd, but it doesn't add
> this directory to the link path.  If this is your situation. Go to the
> /etc/ld.so.conf.d and create a file called dbd.conf.  (actually you can call
> it anything you want as long as it ends in .conf)  The file just needs one
> line.  The path:  /usr/lib/dbd
> > Then just type
> >   ldconfig
> >  at the command line to update the path.
> >
> > You can use
> >   ldconfig -v | more
> > if you want some feedback.
> > OK. I did that (just to be sure it was in the link path--as I don't know
> how to tell what is and what isn't in the link path...). Here's what it's
> telling me that seems like it might be related:
> >
> > /usr/bin/ld: cannot find -ldbdpgsql
> > collect2: ld returned 1 exit status
> >
> > The file in question (as per your instructions above) is libdbdpgsql....
> So is this different? What's with this /usr/bin/ld reference? Do I need some
> kind of link to the /usr/lib/dbd/libdbdpgsql file?
> >
> > The errors that I'm getting now have to do with the apr library when the
> gateway directory is being built.  I'm going to try to find the most current
> src, if that doesn't work, I noticed an older src on the apache web site.
> > I'm having similar problems with apr. This post from last month suggests
> what we may need is an OLDER version:
> >
> >
> http://list.georgialibraries.org/pipermail/open-ils-dev/2007-February/000276.html
> >
> > (But unfortunately it's rather unclear. The error I'm getting is identical
> to the one in this question.)
> >
> > Similar errors showing up with these also:
> >
> > /usr/include/httpd/httpd.h
> > /usr/include/httpd/util_filter.h
> > /usr/include/httpd/http_core.h
> > /usr/include/httpd/http_protocol.h
> >
> > So have I got some kind of version compatibility problem there too? What
> version of the httpd development libraries did you load?
> >
> > (Can one of you experts help us out here?)
> >
> >
> > Garry
> >
> >
>
>


More information about the Open-ils-dev mailing list