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: ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| "Marcelo Flores" <mflores@bridgewater.edu> wrote in message news > 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. |
| |||
| >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 |
| ||||
| 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 > news >> 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. > > |