Module compile Fehler

  • Hey,

    Ich hab mein altes MTA Module wieder gefunden und wollte es wieder compilen. Irgendwie funktioniert es nicht wie gewollt.
    Wenn ich make eingebe kommt:

    Code
    mail:~# make
    gcc  -g -MD -Wall -fPIC -I./  -c -o CFunctions.o CFunctions.cpp
    gcc  -g -MD -Wall -fPIC -I./  -c -o CThread.o CThread.cpp
    gcc  -g -MD -Wall -fPIC -I./  -c -o CThreadData.o CThreadData.cpp
    gcc  -g -MD -Wall -fPIC -I./  -c -o ml_base.o ml_base.cpp
    gcc -g -MD -Wall -fPIC -I./ -fPIC -shared -Wl,-soname,shell.so.1,-R./ -o test.so ./CFunctions.o ./CThread.o ./CThreadData.o ./ml_base.o -lpthread -lstdc++ -llua
    /usr/bin/ld: /usr/local/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC
    /usr/local/lib/liblua.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make: *** [ml_base] Error 1

    Lua Version 5.1.5 ist compilt und instaliert
    Ich finde irgendwie das Problem nicht.

    mfg,
    Soner


    #Edit

    Problem gelöst lag am 64Bit System

    Einmal editiert, zuletzt von Shyim (27. Dezember 2013 um 15:16)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!