LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2018, 07:14 AM   #1
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Rep: Reputation: 7
Unhappy transcode fails to build on Slackware 14.2 x64 multilib


Hello,

i wanted to install transcode from the slackbuilds.org repository. I was doing it using sboui (sbopkg). I had installed all the optional dependecies and set all the build flags to YES as described on the package's page. Unfortunately while building i got that error:
Code:
mv -f .deps/export_im_la-export_im.Tpo .deps/export_im_la-export_im.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc  -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -fPIC -module -avoid-version  -o export_im.la -rpath /usr/lib64/transcode export_im_la-export_im.lo -lMagickWand-6.Q16 -lMagickCore-6.Q16 -lm -lm -lz -ldl 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/export_im_la-export_im.o   -lMagickWand-6.Q16 -lMagickCore-6.Q16 -lm -lz -ldl  -O2   -Wl,-soname -Wl,export_im.so -o .libs/export_im.so
libtool: link: ( cd ".libs" && rm -f "export_im.la" && ln -s "../export_im.la" "export_im.la" )
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -I/usr/include   -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -fPIC -MT export_jpg_la-export_jpg.lo -MD -MP -MF .deps/export_jpg_la-export_jpg.Tpo -c -o export_jpg_la-export_jpg.lo `test -f 'export_jpg.c' || echo './'`export_jpg.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -fPIC -MT export_jpg_la-export_jpg.lo -MD -MP -MF .deps/export_jpg_la-export_jpg.Tpo -c export_jpg.c  -fPIC -DPIC -o .libs/export_jpg_la-export_jpg.o
export_jpg.c: In function 'export_jpg_encode':
export_jpg.c:284:22: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
   char *out_buffer = param->buffer;
                      ^
export_jpg.c:304:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
       image_buffer = out_buffer;
                    ^
mv -f .deps/export_jpg_la-export_jpg.Tpo .deps/export_jpg_la-export_jpg.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc  -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -fPIC -module -avoid-version  -o export_jpg.la -rpath /usr/lib64/transcode export_jpg_la-export_jpg.lo -L/usr/lib -ljpeg  -lm -lm -lz -ldl 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/export_jpg_la-export_jpg.o   -L/usr/lib /usr/lib/libjpeg.so -lm -lz -ldl  -O2   -Wl,-soname -Wl,export_jpg.so -o .libs/export_jpg.so
/usr/lib/libjpeg.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:746: recipe for target 'export_jpg.la' failed
make[2]: *** [export_jpg.la] Error 1
make[2]: Leaving directory '/tmp/SBo/transcode-1.1.7/export'
Makefile:474: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/transcode-1.1.7'
Makefile:381: recipe for target 'all' failed
make: *** [all] Error 2
Is it because i run a multilib system? Could anyone help me fix that?

Thanks!
 
Old 07-15-2018, 07:29 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
you have to edit the SlackBuild like described here

https://slackbuilds.org/faq/#multilib
 
2 members found this post helpful.
Old 07-15-2018, 07:32 AM   #3
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
You should read the SBo faq, it has a likely workaround for your issue.

http://slackbuilds.org/faq/#multilib

To make it clear, you are building a 64-bit package and its failing because its trying to use "/usr/lib/" instead of "/usr/lib64/".
Code:
/bin/sh ../libtool --tag=CC   --mode=link gcc  -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -fPIC -module -avoid-version  -o export_jpg.la -rpath /usr/lib64/transcode export_jpg_la-export_jpg.lo -L/usr/lib -ljpeg  -lm -lm -lz -ldl 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/export_jpg_la-export_jpg.o   -L/usr/lib /usr/lib/libjpeg.so -lm -lz -ldl  -O2   -Wl,-soname -Wl,export_jpg.so -o .libs/export_jpg.so
/usr/lib/libjpeg.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Edit: ponce was faster.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 14.2 multilib - Telepathy-Qt fails to build - Error 2: recipe for target 'all' failed glupa4e Slackware 15 07-08-2017 10:28 AM
Slackware 14.2 multilib - Icecast fails to build glupa4e Slackware 6 01-04-2017 06:55 AM
[SOLVED] py3cairo build fails 14.1 multilib bmarley83 Slackware 12 10-05-2015 02:54 PM
[SOLVED] Cannot build autogen on Slackware 14.1 64bit / multilib andrew.46 Slackware 2 07-18-2014 02:15 AM
Frostwire on Slackware (32, 64 and multilib) fails to run kingbeowulf Slackware 5 12-30-2011 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration