> > >Please add path to libmysqlclient to dynamic loader's
> > >configuration file
> > >(/etc/ld.so.conf) or its equalent.
> >
> >I should be a little more specific. While "ld" exists,
> >ldconfig nor ld.so.conf exists.
> >
> >Is there a way around this without requiring a dynamic
> >loader?
>export LDFLAGS="-L/usr/lib/mysql -Lwhatever/you/need"
>before running ./configure

Still doesn't work...

Compile midgard-lib-1.2.6-beta2...

...midgard-lib-1.2.6-beta2]#./configure
--with-mysql=/usr/local/lib/mysql
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of
Makefiles... no
checking host system type... powerpc-apple-rhapsody5.5
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking if gcc static flag -static works... none
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared
libraries... no
checking command to parse /usr/bin/nm -p output... ok
checking how to hardcode library paths into programs...
unsupported
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking how to run the C preprocessor... gcc -E
-traditional-cpp
checking for ANSI C header files... yes
checking for working const... yes
checking for library containing crypt... none required
checking for crypt.h... no
checking MySQL location... /usr/local/mysql
checking for mysql_connect in -lmysqlclient... yes
checking for errmsg.h... yes
checking for mysql.h... yes
updating cache ./config.cache
creating ./config.status
creating Makefile

...midgard-lib-1.2.6-beta2]#make

No errors...

...midgard-lib-1.2.6-beta2]#make install
/bin/sh ./mkinstalldirs /usr/local/lib
/bin/sh ./libtool  --mode=install /usr/bin/install -c
libmidgard.la /usr/local/lib/libmidgard.la
/usr/bin/install -c .libs/libmidgard.lai
/usr/local/lib/libmidgard.la
/usr/bin/install -c .libs/libmidgard.a
/usr/local/lib/libmidgard.a
ranlib /usr/local/lib/libmidgard.a
chmod 644 /usr/local/lib/libmidgard.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed
libraries
in a given directory, LIBDIR, you must either use libtool,
and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:

See any operating system documentation about shared
libraries for
more information, such as the ld(1) and ld.so(8) manual
pages.
----------------------------------------------------------------------
/bin/sh ./mkinstalldirs /usr/local/include
 /usr/bin/install -c -m 644 midgard.h
/usr/local/include/midgard.h


Compile mod_midgard-1.2.6-beta2...

...mod_midgard-1.2.6-beta2] root# ./configure --with-mysql
--with-midgard
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking for apxs... /usr/sbin/apxs
checking for mgd_connect in -lmidgard... no
*** You need the Midgard library for using mod_midgard.
***
*** Use the --with-midgard option to tell
***
*** the configure script where to look for the library.
***
*** Check also that both the Midgard library and the MySQL
***
*** client library are on your dynamic library load path.
***
configure: error: Midgard library libmidgard not found


I tried several different combinations of LDFLAGS, including
setting LDFLAGS="-L/usr/local/lib -L/usr/local/include
-L/usr/local/mysql/lib"

No joy...

mod_midgard-1.2.6 just won't compile. It cannot find the
midgard or mysql libraries no matter how I attempt to tell
it where those libraries are. What's changed since 1.2.5
that is causing configure to not find the libraries? Can I
hard code their locations in one or more of the configure
files?


For reference...

# l /usr/local/lib
total 314
-rw-r--r--  1 root  wheel  152648 Feb  5 22:34 libmidgard.a
-rwxr-xr-x  1 root  wheel     654 Feb  5 22:34 libmidgard.la
lrwxr-xr-x  1 root  wheel      26 Feb  5 22:34 mysql ->
/usr/local/mysql/lib/mysql

# l /usr/local/mysql/lib/mysql
total 1388
-rw-r--r--  1 root  wheel   29016 Jun 20  1999 libdbug.a
-rw-r--r--  1 root  wheel   36736 Jun 20  1999 libheap.a
-rw-r--r--  1 root  wheel   17056 Jun 20  1999 libmerge.a
-rw-r--r--  1 root  wheel  209144 Jun 20  1999
libmysqlclient.a
-rw-r--r--  1 root  wheel     465 Jun 20  1999
libmysqlclient.la
-rw-r--r--  1 root  wheel   23520 Jun 20  1999
libmystrings.a
-rw-r--r--  1 root  wheel  228420 Jun 20  1999 libmysys.a
-rw-r--r--  1 root  wheel  144856 Jun 20  1999 libnisam.a



Todd Daniel Woodward
Technical Consultant
RadioDigest.com Inc.

http://radiodigest.com

     "Radio you can READ!"

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to