Professional Web Applications Themes

Error compiling MySQL 4.1.18. - MySQL

Greetings, I encounter an error when making MySQL and I can't find any doentation on it. The error goes: gcc -DDBUG_OFF -03 -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -o cht2html -DDEFAULT_BASEDIR=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DDEFAULT_CHT_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 ./cht2html.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 cht2html collect2: ld returned 1 exit status make[2]: *** [cht2html] Error 1 make[1]: *** [check-recursive] Error 1 make: *** [check] Error 2 ...

  1. #1

    Default Error compiling MySQL 4.1.18.

    Greetings,

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

    gcc -DDBUG_OFF -03 -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -o
    cht2html -DDEFAULT_BASEDIR=\"/usr/local/mysql\"
    -DDATADIR=\"/usr/local/mysql/var\"
    -DDEFAULT_CHT_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 ./cht2html.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 cht2html
    collect2: ld returned 1 exit status
    make[2]: *** [cht2html] 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 Guest

  2. #2

    Default Re: Error compiling MySQL 4.1.18.

    "Marcelo Flores" <mfloresbridgewater.edu> wrote in message
    news:Da6dnQfDXJknRYTZRVn-twgiganews.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: [url]http://bugs.mysql.com/bug.php?id=14862[/url]

    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.


    Bill Karwin Guest

  3. #3

    Default Re: Error compiling MySQL 4.1.18.

    >I encounter an error when making MySQL and I can't find any
    >doentation 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
    Gordon Burditt Guest

  4. #4

    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" <mfloresbridgewater.edu> wrote in message
    > news:Da6dnQfDXJknRYTZRVn-twgiganews.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: [url]http://bugs.mysql.com/bug.php?id=14862[/url]
    >
    > 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.
    >
    >
    Marcelo Flores Guest

Similar Threads

  1. Compiling Mysql for high performance
    By forrie@gmail.com in forum MySQL
    Replies: 5
    Last Post: July 17th, 05:46 PM
  2. Replies: 0
    Last Post: January 29th, 02:03 PM
  3. Error compiling GD-2.16
    By Mark in forum PERL Modules
    Replies: 3
    Last Post: November 3rd, 07:05 PM
  4. Compiling error, please
    By Beny Rey in forum ASP.NET Building Controls
    Replies: 1
    Last Post: December 13th, 01:27 AM
  5. Compiling 4.2.3 with MySQL ... what does it look for?
    By -{ Rene Brehmer }- in forum PHP Development
    Replies: 2
    Last Post: September 8th, 03:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139