Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

compiles fine, but won't execute

Francesco
2011-02-20
2013-04-22
  • Francesco
    Francesco
    2011-02-20

    I've this error:

    Sendmail-Milter-0.18# make
    cp Milter.pm blib/lib/Sendmail/Milter.pm
    AutoSplitting blib/lib/Sendmail/Milter.pm (blib/lib/auto/Sendmail/Milter)
    cp sample.pl blib/lib/Sendmail/sample.pl
    /usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp  -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap typemap  Milter.xs > Milter.xsc && mv Milter.xsc Milter.c
    cc -c  -I../sendmail-8.14.4/sendmail -I../sendmail-8.14.4/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib/perl/5.10/CORE"   Milter.c
    Milter.xs: In function 'XS_Sendmail__Milter__Context_replacebody':
    Milter.xs:445: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
    cc -c  -I../sendmail-8.14.4/sendmail -I../sendmail-8.14.4/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib/perl/5.10/CORE"   intpools.c
    intpools.c: In function 'test_run_callback':
    intpools.c:456: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'struct SV *'
    intpools.c:463: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
    intpools.c:467: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'struct SV *'
    intpools.c:467: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'struct PerlInterpreter *'
    intpools.c: In function 'test_intpools':
    intpools.c:506: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'struct PerlInterpreter *'
    cc -c  -I../sendmail-8.14.4/sendmail -I../sendmail-8.14.4/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib/perl/5.10/CORE"   callbacks.c
    Running Mkbootstrap for Sendmail::Milter ()
    chmod 644 Milter.bs
    rm -f blib/arch/auto/Sendmail/Milter/Milter.so
    cc  -shared -O2 -g -L/usr/local/lib Milter.o intpools.o callbacks.o  -o blib/arch/auto/Sendmail/Milter/Milter.so \
       -L/root/personalization/Sendmail-Milter-0.18/../sendmail-8.14.4/obj.Linux.2.6.18-194.8.1.el5xen.x86_64/libmilter -L/root/personalization/Sendmail-Milter-0.18/../sendmail-8.14.4/obj.Linux.2.6.18-194.8.1.el5xen.x86_64/libsmutil -L/root/personalization/Sendmail-Milter-0.18/../sendmail-8.14.4/obj.Linux.2.6.18-194.8.1.el5xen.x86_64/libsm -lmilter -lsmutil -lsm -lpthread  \
     
    /usr/bin/ld: /root/personalization/Sendmail-Milter-0.18/../sendmail-8.14.4/obj.Linux.2.6.18-194.8.1.el5xen.x86_64/libmilter/libmilter.a(main.o): relocation R_X86_64_32 against `mi_clean_signals' can not be used when making a shared object; recompile with -fPIC
    /root/personalization/Sendmail-Milter-0.18/../sendmail-8.14.4/obj.Linux.2.6.18-194.8.1.el5xen.x86_64/libmilter/libmilter.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make: ***  Error 1

    any ideas to solve?