Results 1 to 2 of 2

Thread: installing qt 4.3.3 -- "/usr/bin/ld: cannot find -lm]"

  1. #1
    Join Date
    Jul 2007
    Location
    New York
    Posts
    45
    Thanks
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default installing qt 4.3.3 -- "/usr/bin/ld: cannot find -lm]"

    I am trying to compile qt 4.3.3 (or 4.3.1) on RH9 with mysql.

    I keep getting an error:

    /usr/bin/ld: cannot find -lm]
    from the command

    g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.3.3/lib -o mysql mysql.o -L/usr/lib/mysql -lz -lcrypt -lnsl -lm -lm] -lmysql -lmysqlclient
    which to me says that some autotool is failing and is writing -lm] when it should be -lm

    I cannot find anyone else who has had the same problem (nor can I effectively search because google strips the ']' from the query).

    I've tried modifying the config.tests scripts, which contain the bug, but they are always overwritten by configure.

    How do I bypass or fix this? If I could stop the autotools from overwriting the make files then I could circumvent the bug...

    -chris
    Last edited by jpn; 16th January 2008 at 12:14. Reason: reformatted to look better

  2. #2
    Join Date
    Jul 2007
    Location
    New York
    Posts
    45
    Thanks
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: installing qt 4.3.3 -- "/usr/bin/ld: cannot find -lm]"

    Turns out my mysql was too old... needs 4.0+ to work.

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
  •  
Qt is a trademark of The Qt Company.