You need to make sure that the gcc on your box is build on that box,
Using a package won't do it, most of them where compiled on greater or
lesser hardware versions than you might be running, This in turn causes
the compiler it self to think that its running in cross-compile mode
and mysql won't allow a cross compile(er) build.
Martin Cameron wrote:
>
> Shouldn't it be ./configure --prefix=/usr/local/mysql
>
> On Mon, 16 Jul 2001 12:44, you wrote:
> > I am trying to compile mysql by it is failing in the ./configure step. I am
> > running solaris 2.5.1 , gcc 2.95, binutils 2.11.2. It fails with the
> > following error
> >
> > ./configure -prefix=/usr/local/mysql
> > .
> > .....
> >
> > loading cache ./config.cache
> > checking for a BSD compatible install... ./install-sh -c
> > checking for bison... no
> > checking for byacc... no
> > checking for pdftex... no
> > checking return type of sprintf... configure: error: can not run test
> > program while cross compiling
> >
> > any help would be greatly appreciated.
> >
> > regards
> > Imran.
>
> ---------------------------------------------------------------------
> 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