At 10:26 AM 10/29/2002 +0800, you wrote:
On Mon, Oct 28, 2002 at 05:16:36PM -0700, Scott G. Brauer wrote:
>
> >
> >Why did you compile from source *and* install from pkgs? What does
>
> The packages were installed initially. I was stepping through the tutorial
> for building / installing Midgard and downloaded and compiled glib
> accordingly.
>
>
> >'glib-config --cflags' return?
>
> $ glib-config --cflags
> -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
>
> $ ls /usr/local/include/glib-1.2
> glib.h
> gmodule.h
>
> $ ls /usr/local/lib/glib/include
> glibconfig.h

Well, looks like we need config.log from this installation. And check that
path returned by 'glib-config --libs' is in your /etc/ld.so.conf

I have figured out the problem. While looking through the config.log file I saw a reference (file is listed below) to "/usr/bin/ld: cannot find -lmysqlclient". I removed the source version of MySQL with "make distclean" and installed the mysql and mysql-devel rpm's. This fixed that problem.

Now I have to figure out why it can't find midgard/midgard.h. If I can't figure this one out I will repost.

Thanks for all the tips. This is a very helpful community.


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

configure:537: checking for midgard-config
configure:560: checking for midgard-config
configure:634: checking for a BSD compatible install
configure:689: checking for static Apache module build
configure:737: checking for apxs
configure:786: checking for /etc/mandrake-release
configure:800: checking for library containing g_string_new
configure:818: cc -o conftest -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/mysql -I/usr/local/include -L/usr/local/lib -L/usr/lib/mysql -lmysqlclient -lexpat -lm -lz -lcrypt -lglib -lmidgard conftest.c -L/usr/local/lib -L/usr/lib/mysql -lmysqlclient -lexpat -lm -lz -lcrypt -lglib -lmidgard 1>&5
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 807 "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 g_string_new();

int main() {
g_string_new()
; return 0; }
configure:840: cc -o conftest -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/mysql -I/usr/local/include -L/usr/local/lib -L/usr/lib/mysql -lmysqlclient -lexpat -lm -lz -lcrypt -lglib -lmidgard conftest.c -lglib -L/usr/local/lib -L/usr/lib/mysql -lmysqlclient -lexpat -lm -lz -lcrypt -lglib -lmidgard 1>&5
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 829 "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 g_string_new();

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

$ glib-config --libs
-L/usr/local/lib -lglib

$cat /etc/ld.so.conf
/usr/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-1.45/lib
/usr/lib/qt-2.3.1/lib
/usr/local/lib
/usr/local/midgard/lib

/usr/lib/qt-3.0.5/lib
/usr/lib/glib
/usr/lib/sane

********************************************************************************************


Scott G. Brauer
President
Computing Solutions by Design, Inc.
[EMAIL PROTECTED]
www.csbd.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to