Unix Technical Forum

Error compiling MySQL 4.1.18.

This is a discussion on Error compiling MySQL 4.1.18. within the MySQL forums, part of the Database Server Software category; --> Greetings, I encounter an error when making MySQL and I can't find any documentation on it. The error goes: ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 08:29 AM
Marcelo Flores
 
Posts: n/a
Default Error compiling MySQL 4.1.18.

Greetings,

I encounter an error when making MySQL and I can't find any
documentation on it. The error goes:

gcc -DDBUG_OFF -03 -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -o
charset2html -DDEFAULT_BASEDIR=\"/usr/local/mysql\"
-DDATADIR=\"/usr/local/mysql/var\"
-DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\"
-DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DHAVE_CONFIG_H -I../include
-I../include -I. -DDBUG_OFF -03 -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T
-DMAIN ./charset2html.c libmysys.a ../dbug/libdbug.a
.../strings/libmystrings.a -lpthread -lthread -lposix4 -lcrypt -lgen
-lsocket -lnsl -lm -lpthread -lthread
gcc: unrecognized option '-03'
gcc: unrecognized option '-03'
Undefined first referenced
symbol in file
isinf ../strings/libmystrings.a(strtod.o)
ld: fatal: Symbol referencing errors. No output written to charset2html
collect2: ld returned 1 exit status
make[2]: *** [charset2html] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
make[2]: Leaving directory `/etc/downloads/mysql-4.1.18/mysys'
make[1]: Leaving directory `/etc/downloads/mysql-4.1.18'
bash-2.05#

I'm following the config parameters:

CCFLAGS="-03" CXX=gcc CXXFLAGS="-03 -felide-constructors -fno-exceptions
-fno-rtti ./configure --prefix=/usr/local/mysql
--with-mysqld-ldflags=-all=static

on a x86 machine running Solaris 9 and gcc 4.0.2

I initially had the --enable-assembler option but that was giving my
more errors (Solaris 9 on x86 compatibility from what I gathered).

Has anyone seen this before? I really would appreciate any help I could
get.

Thanks,
Marcelo Flores
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 08:30 AM
Bill Karwin
 
Posts: n/a
Default Re: Error compiling MySQL 4.1.18.

"Marcelo Flores" <mflores@bridgewater.edu> wrote in message
newsa6dnQfDXJknRYTZRVn-tw@giganews.com...
> Undefined first referenced
> symbol in file
> isinf ../strings/libmystrings.a(strtod.o)
>
> on a x86 machine running Solaris 9 and gcc 4.0.2


There seems to be an incompatibility when using MySQL and GCC 4.0.2.
The problem does not occur when using GCC 3.4.x.

See a long discussion here: http://bugs.mysql.com/bug.php?id=14862

It's not clear from that bug log if there is an easy fix, short of
downgrading GCC to 3.4.x.

Do you have to compile from source? Can you not use the binary of MySQL
available for Solaris x86?

I remember there was a problem with a missing shared library in the Solaris
SPARC binary package, so if you use Perl/PHP etc. you have to build the
whole thing from source. But I haven't checked if the same library is also
missing in the Solaris x86 binary.

Regards,
Bill K.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 08:30 AM
Gordon Burditt
 
Posts: n/a
Default Re: Error compiling MySQL 4.1.18.

>I encounter an error when making MySQL and I can't find any
>documentation on it. The error goes:
>
>I'm following the config parameters:
>
>CCFLAGS="-03" CXX=gcc CXXFLAGS="-03 -felide-constructors -fno-exceptions

^^ ^^
I believe that option is -O3, not -03
(Oh as in Octopus, not 0 as in dialing the operator).

> -fno-rtti ./configure --prefix=/usr/local/mysql
>--with-mysqld-ldflags=-all=static


I think you're missing a " somewhere above also, unless I snipped
it by accident.

Gordon L. Burditt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 08:30 AM
Marcelo Flores
 
Posts: n/a
Default Re: Error compiling MySQL 4.1.18.

Thanks for the replies,

I went ahead and downgraded my gcc. Everything worked fine after that.

Thanks again!
Marcelo Flores
Bill Karwin wrote:
> "Marcelo Flores" <mflores@bridgewater.edu> wrote in message
> newsa6dnQfDXJknRYTZRVn-tw@giganews.com...
>> Undefined first referenced
>> symbol in file
>> isinf ../strings/libmystrings.a(strtod.o)
>>
>> on a x86 machine running Solaris 9 and gcc 4.0.2

>
> There seems to be an incompatibility when using MySQL and GCC 4.0.2.
> The problem does not occur when using GCC 3.4.x.
>
> See a long discussion here: http://bugs.mysql.com/bug.php?id=14862
>
> It's not clear from that bug log if there is an easy fix, short of
> downgrading GCC to 3.4.x.
>
> Do you have to compile from source? Can you not use the binary of MySQL
> available for Solaris x86?
>
> I remember there was a problem with a missing shared library in the Solaris
> SPARC binary package, so if you use Perl/PHP etc. you have to build the
> whole thing from source. But I haven't checked if the same library is also
> missing in the Solaris x86 binary.
>
> Regards,
> Bill K.
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:08 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com