Followed the tutorial step by step, just had to update the download link
for the mightly build avalaible but compiles fails. Here is a copy of
the last lines below. Any clues what's wrong ?


Code:
--------------------
    /usr/local/bin/perl /usr/local/lib/perl5/5.20/ExtUtils/xsubpp  -typemap 
/usr/local/lib/perl5/5.20/ExtUtils/typemap -typemap typemap 
  Scan.xs > Scan.xsc && mv Scan.xsc Scan.c                                      
                                                     
  Please specify prototyping behavior for Scan.xs (see perlxs manual)           
                                                      
  cc -c  -I/tmp/LMS/slimserver-vendor/CPAN/build/include 
-I/tmp/LMS/slimserver-vendor/CPAN/build/include -I/tmp/LMS/slimserver-vendor/
  CPAN/build/include -I/tmp/LMS/slimserver-vendor/CPAN/build/include 
-I/tmp/LMS/slimserver-vendor/CPAN/build/include -I/tmp/LMS/slimse
  rver-vendor/CPAN/build/include 
-I/tmp/LMS/slimserver-vendor/CPAN/build/include  -DHAS_FPSETMASK 
-DHAS_FLOATINGPOINT_H -fno-strict-al
  iasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe 
-fstack-protector -fno-strict-aliasing    -DVERSION=\"0.01\"  -DXS_VER
  SION=\"0.01\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"  -O2 -Wall 
-Wno-unused-value -Wno-format-security Scan.c          
  ./xs/Result.xs: In function 'XS_Media__Scan__Result_size':                    
                                                      
  ./xs/Result.xs:45: warning: format '%llu' expects type 'long long unsigned 
int', but argument 3 has type 'uint64_t'                 
  rm -f blib/arch/auto/Media/Scan/Scan.so                                       
                                                      
  LD_RUN_PATH="/usr/lib:/usr/local/lib" cc  -shared  
-L/wrkdirs/usr/ports/lang/perl5.20/work/perl-5.20.3 
-L/usr/local/lib/perl5/5.20/m
  ach/CORE -Wl,-rpath=/usr/local/lib/perl5/5.20/mach/CORE -lperl 
-L/usr/local/lib -fstack-protector Scan.o  -o blib/arch/auto/Media/Sc
  an/Scan.so 
/tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/libmediascan.a 
/tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/
  libavformat.a 
/tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/libavcodec.a 
/tmp/LMS/slimserver-vendor/CPAN/build/include/../lib
  /libswscale.a 
/tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/libavutil.a 
/tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/
  libexif.a /tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/libjpeg.a 
/tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/libpng
  .a /tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/libgif.a 
/tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/libdb.a     -l
  m -lz -lintl                                                                  
                                                      
  /usr/bin/ld: 
/tmp/LMS/slimserver-vendor/CPAN/build/include/../lib/libavcodec.a(deinterlace.o):
 relocation R_X86_64_PC32 against `ff_
  pw_4' can not be used when making a shared object; recompile with -fPIC       
                                                      
  /usr/bin/ld: final link failed: Bad value                                     
                                                      
  *** [blib/arch/auto/Media/Scan/Scan.so] Error code 1                          
                                                      
  
  Stop in /tmp/LMS/slimserver-vendor/CPAN/libmediascan-0.1/bindings/perl.       
                                                      
  make failed, aborting
--------------------


------------------------------------------------------------------------
vincen's Profile: http://forums.slimdevices.com/member.php?userid=602
View this thread: http://forums.slimdevices.com/showthread.php?t=104122

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to