What you might try looking at is your environment variable
$LD_LIBRARY_PATH.  If you don't have it in your environment, set it up
with all the usual lib places i.e
/lib:/usr/lib:/usr/local/lib:/usr/share/lib:/usr/local/share/lib and so
one.  I think that this should clear up your problem with cross-compiling.

Ed


On Wed, 25 Apr 2001, Erich Neuwirth wrote:

> solaris 2.7 + gcc 2.95.2
> mysql 3.23.37
>
> in my last message i describe the probolem that
> configure thinks it is cross compiling.
> when i manually changt the configure file to avoid this test,
> i get the next error
>
>
> configure output:
>
> checking size of char... 0
> configure: error: No size for char type.
> A likely cause for this could be that there isn't any
> static libraries installed. You can verify this by checking if you have
> libm.a
> in /lib, /usr/lib or some other standard place.  If this is the problem,
> install the static libraries and try again.  If this isn't the problem,
> examine config.log for possible errors.  If you want to report this, use
> 'scripts/mysqlbug' and include at least the last 20 rows from
> config.log!
>
> config.log
>
> configure:6493: gcc -c -O3 -DDBUG_OFF   -DHAVE_CURSES_H
> -I/servers/space/neuwirt
> h/src/mysql-3.23.37/include -DHAVE_RWLOCK_T  conftest.c 1>&5
> configure:6516: checking size of char
> configure:6535: gcc -o conftest -O3 -DDBUG_OFF   -DHAVE_CURSES_H
> -I/servers/spac
> e/neuwirth/src/mysql-3.23.37/include -DHAVE_RWLOCK_T   conftest.c -lz
> -lcrypt -l
> gen -lsocket -lnsl -lm  -lpthread -lthread 1>&5
> configure: failed program was:
> #line 6524 "configure"
> #include "confdefs.h"
> #include <stdio.h>
> main()
> {
>   FILE *f=fopen("conftestval", "w");
>   if (!f) exit(1);
>   fprintf(f, "%d\n", sizeof(char));
>   exit(0);
> }
>
>
>
> i do have libm.a in /lib
>
> but when i create
> conftest.c manuallu abd compile it with the given command line
> only without redirection of the output i get:
>
> [sunsite@root:~/space/src/mysql-3.23.37] gcc -o conftest -O3
> -DDBUG_OFF   -DHAVE
> _CURSES_H -I/servers/space/neuwirth/src/mysql-3.23.37/include
> -DHAVE_RWLOCK_T co
> nftest.c -lz -lcrypt -lgen -lsocket -lnsl -lm  -lpthread -lthread
> conftest.c: In function `main':
> conftest.c:3: `FILE' undeclared (first use in this function)
> conftest.c:3: (Each undeclared identifier is reported only once
> conftest.c:3: for each function it appears in.)
> conftest.c:3: `f' undeclared (first use in this function)
>
> since FILE is declared in
> include/dbug.h
>
> it seems that this compile rund does not find the header files in the
> include dir
> any advice?
>
>
> --
> Erich Neuwirth, Computer Supported Didactics Working Group
> Visit our SunSITE at http://sunsite.univie.ac.at
> Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail 
><[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to