vincen wrote:
> 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
--------------------
> >
Ultimately all the problems I had making this work had to do with making
sure that I was building with the right/consistent version of Perl. It's
the reason for removing and recreating the symbolic links in the jails.
However, I can't say that I saw error specifically like those as I
fumbled my way through the process.
There's some chance that I could make my .tar of the LMS build available
and it could be copied into the run jail and just work...
Home: Win7Pro(x64)[3.3Ghz i5, 8GB RAM, 120GB SSD system, 15TB storage],
LMS 7.9.0 -> Logitech Squeezebox Classic V.3 -> Cambridge Audio DacMagic
-> NAD C160 -> 2 x NAD C272 -> Quad 22L2
Portable: FreeNAS 9.3 [HP Microserver Gen8, 10GB RAM, 16GB flash boot,
120GB SSD for LMS 7.9.0 in FreeBSD jail, 5 x 4TB WD Red HD ZFS RAIDZ1]
-> Logitech Squeezebox Classic V.3 -> Cambridge Audio DacMagic: XLR out
-> Soundmaster Diamond 12-2 mixing board -> P.A.
------------------------------------------------------------------------
get.amped's Profile: http://forums.slimdevices.com/member.php?userid=10022
View this thread: http://forums.slimdevices.com/showthread.php?t=104122
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix