Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-2300

Compile Error on Mac OS X 10.5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: < v5-28-00
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Environment:

      Mac OS

      Description

      $ ./configure macosx
      (snip)
      Enabled support for asimage, astiff, builtin_afterimage, builtin_ftgl, builtin_freetype, builtin_pcre, builtin_zlib, cintex, exceptions, fftw3, krb5, ldap, genvector, odbc, opengl, python, reflex, rpath, shared, ssl, xft, xml, xrootd.

      $ make
      (snip)
      gfortran -O2 -bind_at_load -o bin/g2root main/src/g2root.o \
      -Llib lib/libminicern.so \
      /usr/local/lib/gcc/i686-apple-darwin8/4.2.3/../../../libgfortran.dylib /usr/local/lib/gcc/i686-apple-darwin8/4.2.3/libgfortranbegin.a -lm -Wl,-rpath,@loader_path/../lib -pthread -ldl
      ld: -rpath can only be used when targeting Mac OS X 10.5 or later
      collect2: ld returned 1 exit status
      make: *** [bin/g2root] Error 1

      =============
      $ uname -a
      Darwin kusu.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386

      $ which gcc
      /usr/bin/gcc
      $ gcc --version
      i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)
      Copyright (C) 2005 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      $ which gfortran
      /usr/local/bin/gfortran
      $ gfortran --version
      GNU Fortran (GCC) 4.2.3
      Copyright (C) 2007 Free Software Foundation, Inc.

      GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
      You may redistribute copies of GNU Fortran
      under the terms of the GNU General Public License.
      For more information about these matters, see the file named COPYING

        Attachments

          Activity

            People

            • Assignee:
              rdm Fons Rademakers
              Reporter:
              oxon Akira Okumura (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: