Menu

Compile apache module

john
2007-10-28
2012-09-26
  • john

    john - 2007-10-28

    Hello, guys, i'm start compiling stuff, i'm realy new new, and can't compiled a module of apache, dev-cpp say this:

    Compilator: Default compiler
    Building Makefile: "C:\apache\mod_xsendfile-0.9\Makefile.win"
    Executing make clean
    rm -f mod_xsendfile.o Proyect1.dll

    gcc.exe -c mod_xsendfile.c -o mod_xsendfile.o -I"C:/Dev-Cpp/include" -I"C:/apache/include" -DBUILDING_DLL=1

    dllwrap.exe --output-def libProyect1.def --implib libProyect1.a mod_xsendfile.o -L"C:/Dev-Cpp/lib" -L"C:/apache/lib" --no-export-all-symbols --add-stdcall-alias -o Proyect1.dll

    mod_xsendfile.o:mod_xsendfile.c:(.text+0x15): undefined reference to _imp__apr_palloc@8' mod_xsendfile.o:mod_xsendfile.c:(.text+0x72): undefined reference to_imp__apr_palloc@8'
    mod_xsendfile.o:mod_xsendfile.c:(.text+0x100): undefined reference to _imp__apr_palloc@8' mod_xsendfile.o:mod_xsendfile.c:(.text+0x15d): undefined reference to_imp__apr_palloc@8'
    mod_xsendfile.o:mod_xsendfile.c:(.text+0x349): undefined reference to `_imp__apr_pstrdup@8'
    .........
    collect2: ld returned 1 exit status

    dllwrap.exe: no export definition file provided.
    Creating one, but that may not be what you want
    dllwrap.exe: gcc exited with status 1

    make.exe: *** [Proyecto1.dll] Error 1

    Execution finish

    Well, some guide to read or what can i do to solve this....

    Thank for your help.

     
    • Anonymous

      Anonymous - 2007-10-28

      You have told DLLWRAP where to look for the libraries that the DLL needs (-L"C:/apache/lib") but you have not told it which ones to actually search for the import dependencies.

      I am not very familiar with DLL builds, but I think you need a -lXXX option where XXX refers to the libXXX.a import library containing the missing symbols.

      I am guessing (after a quick Googlr of "apr_palloc") that in this case that you need -lapr, in order to use libapr.a in C:/apache/lib. Note that is -<lowercase-L>apr, some fonts make it difficult to distinguish l(lowercase-L) form 1 (one).

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.