jeteve / Alien-ImageMagick

Perl Image Magick perlbrew + cpanm compatible install.
4 stars 6 forks source link

Build error on Debian Linux #5

Open fheyer opened 8 years ago

fheyer commented 8 years ago

Hello,

when building on Debian Linux using Perl 5.22.2 installed via perlbrew without option -Duseshrplib i encountered the following error:

cpanm (App::cpanminus) 1.7042 on perl 5.022002 built for x86_64-linux
Work directory is /var/www/.cpanm/work/1474971478.10807
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Alien::ImageMagick () on cpanmetadb ...
--> Working on Alien::ImageMagick
Fetching http://www.cpan.org/authors/id/J/JE/JETEVE/Alien-ImageMagick-0.07.tar.gz
-> OK
Unpacking Alien-ImageMagick-0.07.tar.gz
Entering Alien-ImageMagick-0.07
Checking configure dependencies from META.json
Checking if you have ExtUtils::Install 1.46 ... Yes (2.04)
Checking if you have Alien::Base::ModuleBuild 0.009 ... No
Checking if you have Module::Build 0.38 ... No
==> Found dependencies: Alien::Base::ModuleBuild, Module::Build
Searching Alien::Base::ModuleBuild (0.009) on cpanmetadb ...
--> Working on Alien::Base::ModuleBuild
Fetching http://www.cpan.org/authors/id/P/PL/PLICEASE/Alien-Base-0.029.tar.gz
-> OK
Unpacking Alien-Base-0.029.tar.gz
Entering Alien-Base-0.029
Checking configure dependencies from META.json
Checking if you have ExtUtils::Install 1.46 ... Yes (2.04)
Checking if you have Module::Build 0.38 ... No
==> Found dependencies: Module::Build
Searching Module::Build (0.38) on cpanmetadb ...
--> Working on Module::Build
...skipping...
_LARGE_FILES=1 -DHAVE_CONFIG_H Q16HDRI.c
rm -f ../blib/arch/auto/Image/Magick/Q16HDRI/Q16HDRI.so
LD_RUN_PATH="/var/www/perl5/perlbrew/perls/perl-5.22.2/lib:/usr/lib" cc  -L/var/www/perl5/perlbrew/perls/perl-5.22.2/lib -lMagickCore-7.Q16HDRI -shared -O2 -L/usr/local/lib -fstack-protector -L/var/www/perl5/perlbrew/perls/perl-5.22.2/lib/5.22.2/x86_64-linux/CORE/  Q16HDRI.o  -o ../blib/arch/auto/Image/Magick/Q16HDRI/Q16HDRI.so       \
           -L/var/www/perl5/perlbrew/perls/perl-5.22.2/lib -lMagickCore-7.Q16HDRI -lperl -lm    \

/usr/bin/ld: /var/www/perl5/perlbrew/perls/perl-5.22.2/lib/5.22.2/x86_64-linux/CORE//libperl.a(op.o): relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a shared object; recompile with -fPIC
/var/www/perl5/perlbrew/perls/perl-5.22.2/lib/5.22.2/x86_64-linux/CORE//libperl.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [../blib/arch/auto/Image/Magick/Q16HDRI/Q16HDRI.so] Error 1
make[4]: Leaving directory `/var/www/.cpanm/work/1474971478.10807/Alien-ImageMagick-0.07/_alien/ImageMagick-7.0.3-1/PerlMagick/quantum'
make[3]: *** [subdirs] Error 2
make[3]: Leaving directory `/var/www/.cpanm/work/1474971478.10807/Alien-ImageMagick-0.07/_alien/ImageMagick-7.0.3-1/PerlMagick'
make[2]: *** [install-exec-perl] Error 2
make[2]: Leaving directory `/var/www/.cpanm/work/1474971478.10807/Alien-ImageMagick-0.07/_alien/ImageMagick-7.0.3-1'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/www/.cpanm/work/1474971478.10807/Alien-ImageMagick-0.07/_alien/ImageMagick-7.0.3-1'
make: *** [install] Error 2
External command (LDFLAGS=-L/var/www/perl5/perlbrew/perls/perl-5.22.2/lib/5.22.2/x86_64-linux/CORE/ make install) failed! Error: 512
 at ./Build line 58.
Failed
-> FAIL Installing Alien::ImageMagick failed. See /var/www/.cpanm/work/1474971478.10807/build.log for details. Retry with --force to force install it.
21 distributions installed
fheyer commented 8 years ago

Addition: if i build perl with option -D useshrplib the build of Alien::ImageMagick succeeds. So it seems that this build limitation is still necessary on Linux.

jeteve commented 8 years ago

Thanks a lot for the insight.

Do you think you can submit a patch?

Cheers,

J.

On 29 September 2016 at 14:39, Florian notifications@github.com wrote:

Addition: if i build perl with option -D useshrplib the build of Alien::ImageMagick succeeds. So it seems that this build limitation is still necessary on Linux.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeteve/Alien-ImageMagick/issues/5#issuecomment-250468516, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGTXiMY1mt9AetYZsP2MiQ_Foz5a2xDks5qu7-TgaJpZM4KHyq5 .

Jerome Eteve http://www.justgiving.com/jetevesober +44(0)7738864546 http://www.eteve.net/

ambs commented 3 years ago

This still an issue