#2 Error linking on os X

closed
5
2006-09-14
2006-08-05
timilo
No

Hi,

I downloaded loris 1.4 source.
On mac PPC G4 running os X 10.4.7 I ran configure an then make.

This is the error I get:

ld: multiple definitions of symbol ___divdi3
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libgcc.a(_divdi3.o) private
external definition of ___divdi3 in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib
(_divdi3_s.o) definition of ___divdi3
ld: multiple definitions of symbol ___udivdi3
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libgcc.a(_udivdi3.o)
private external definition of ___udivdi3 in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib
(_udivdi3_s.o) definition of ___udivdi3
ld: multiple definitions of symbol ___umoddi3
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libgcc.a(_umoddi3.o)
private external definition of ___umoddi3 in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib
(_umoddi3_s.o) definition of ___umoddi3
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libloris.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I have attached the full outputs of configure and make as a text file.

I tried both gcc 4.0.1 and gcc 3.3.

Thanks,

timilo

Discussion

  • timilo

    timilo - 2006-08-05

    outputs of configure and of make

     
  • Kelly Fitz

    Kelly Fitz - 2006-08-05
    • labels: --> Build/Install
    • assigned_to: nobody --> kfitz
     
  • Kelly Fitz

    Kelly Fitz - 2006-08-05

    Logged In: YES
    user_id=65143

    That error doesn't show up in the file you attached.

    I have not been able to reproduce this error. Did you run configure and make
    with no other arguments?

    One notable differene between your build and mine is that you link against
    the FFTW library statically, instead of dynamically. You do this because, by
    deault, the dynamic versions of the FFTW library are not built when you install
    FFTW.

    Please try rebuilding and reinstalling FFTW after configuring with the

    --enable-shared

    flag. This will cause the dynamic version of the FFTW library to be built and
    installed. Then attempt to build Loris again.

    Please post a comment here indicating whether this solves the problem, so
    that I can make a note of this issue.

    Thanks,
    -kel

     
  • timilo

    timilo - 2006-08-07

    Logged In: YES
    user_id=1569022

    Hi, and thanks for your answer.

    So I just tried running configure with the --enable-shared flag for fftw.
    This does *not* fix the problem.

    Also worth mentionning is that everything compiled fine on another mac
    (laptop g4) without having to specify any flags (like --enable-shared).

     
  • Kelly Fitz

    Kelly Fitz - 2006-08-19

    Logged In: YES
    user_id=65143

    Hello,

    Just to clarify, you re-configured FFTW with the enable-shared flag to
    configure, then you rebuilt FFTW, then you reinstalled FFTW, then you tried
    again to build Loris, and still it failed?

    If this is true, please send me the output from the failed make. It should be
    different from the first time, perhaps I can figure out what is going wrong this
    time.

    Thanks,
    -kel

     
  • ktalley

    ktalley - 2006-09-13

    Logged In: YES
    user_id=1597547

    I was having the same problem as timilo compiling Loris 1.4 on 10.4.7 (PPC).
    The errors were also identical. When I rebuilt FFTW using --enable-shared flag
    Loris was able to compile without any issues after that. I first thought it was a
    problem with libtool, but after seeing your note, that was able to fix the
    problem. Thanks

    keith

     
  • Kelly Fitz

    Kelly Fitz - 2006-09-14
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks