1.2.5 compiles just fine under Mac OS X Server, but not
1.2.6. Insight?


Sequence of events:

# set LDFLAGS="-L/usr/local/mysql/lib/mysql -lmidgard
-lmysqlclient"
# set LIB="$LDFLAGS"
# set LIBS="$LDFLAGS"

midgard-lib:
# ./configure --with-mysql=/usr/local/mysql/lib/mysql
loading cache ./config.cache
checking for a BSD compatible install... (cached)
/usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of
Makefiles... no
checking host system type... powerpc-apple-rhapsody5.5
checking build system type... powerpc-apple-rhapsody5.5
checking for ranlib... (cached) ranlib
checking for gcc... (cached) 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... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached)
no
checking for BSD-compatible nm... (cached) /usr/bin/nm -p
checking whether ln -s works... (cached) yes
updating cache ./config.cache
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 ... yes
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
loading cache ./config.cache
checking how to run the C preprocessor... (cached) gcc -E
-traditional-cpp
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for library containing crypt... (cached) none
required
checking for crypt.h... (cached) no
checking MySQL location... /usr/local/mysql
checking for mysql_connect in -lmysqlclient... (cached) yes
checking for errmsg.h... (cached) yes
checking for mysql.h... (cached) yes
creating ./config.status
creating Makefile
# make
# make install
/bin/sh ./mkinstalldirs /usr/local/lib
/bin/sh ./libtool  --mode=install /usr/local/bin/ginstall -c
libmidgard.la /usr/local/lib/libmidgard.la
/usr/local/bin/ginstall -c .libs/libmidgard.lai
/usr/local/lib/libmidgard.la
/usr/local/bin/ginstall -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/local/bin/ginstall -c -m 644 midgard.h
/usr/local/include/midgard.h

mod_midgard:
# ./configure --with-midgard=/usr/local
loading cache ./config.cache
checking for a BSD compatible install...
/usr/local/bin/ginstall -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


config.log for mod_midgard:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a
mistake.

configure:591: checking for a BSD compatible install
configure:650: checking for apxs
configure:685: checking for mgd_connect in -lmidgard
configure:704: cc -o conftest   -I/usr/local/include
-L/usr/local/lib conftest.c -lmidgard   1>&5
/usr/bin/ld: Undefined symbols:
_mysql_close
_mysql_fetch_row
_mysql_free_result
_mysql_init
_mysql_query
_mysql_real_connect
_mysql_store_result
configure: failed program was:
#line 693 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.
*/
/* We use char because int might match the return type of a
gcc2
    builtin and then its argument prototype would still
apply.  */
char mgd_connect();

int main() {
mgd_connect()
; return 0; }



Thanks...

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