LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-13-2019, 04:03 PM   #1
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 14.2, SARPI
Posts: 317

Rep: Reputation: 30
testdisk on raspberry pi


I keep getting errors when attempting to compile testdisk. With either source or the slackbuild, compilation fails.

Code:
/usr/lib/qt/lib/libQtGui.so: undefined reference to `XRenderAddGlyphs'
/usr/lib/qt/lib/libQtGui.so: undefined reference to `XSetClipRectangles'
/usr/lib/qt/lib/libQtGui.so: undefined reference to `XSetIOErrorHandler'
/usr/lib/qt/lib/libQtGui.so: undefined reference to `XQueryExtension'
/usr/lib/qt/lib/libQtGui.so: undefined reference to `XFreeGC'
/usr/lib/qt/lib/libQtGui.so: undefined reference to `XCreateImage'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1229: qphotorec] Error 1
make[2]: Leaving directory '/tmp/SBo/testdisk-7.0/src'
make[1]: *** [Makefile:415: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/testdisk-7.0'
make: *** [Makefile:353: all] Error 2
Code:
nction ‚init_structure_mac‚:
partmac.c:307:89: warning: unused parameter ‚verbose‚ [-Wunused-parameter]
 ructure_mac(const disk_t *disk_car,list_part_t *list_part, const int verbose)
                                                                      ^~~~~~~
That's the jist of the errors. I don't expect anyone to actually debug the code ,but I'm hoping maybe somebody has knowledge on how to or a guide I couldn't find on google.

I looked through the slackbuild file and ./configure --help, but I didn't see anything obvious. Worse comes to worse I could hook it up to my main pc, but I thought I'd ask since having the program on my rsapberry pi could come in handy in the future.

Or maybe somebody know a program that does the same thing, except works on raspberry pi?
 
Old 04-13-2019, 07:03 PM   #2
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 253

Rep: Reputation: 74
Quote:
Originally Posted by hedron View Post
That's the jist of the errors. I don't expect anyone to actually debug the code ,but I'm hoping maybe somebody has knowledge on how to or a guide I couldn't find on google.

I looked through the slackbuild file and ./configure --help, but I didn't see anything obvious. Worse comes to worse I could hook it up to my main pc, but I thought I'd ask since having the program on my rsapberry pi could come in handy in the future.

Or maybe somebody know a program that does the same thing, except works on raspberry pi?
There's a problem with compiling the source. At first I thought it was ARM related. So i did some testing...

Using a RPi 3 and Slackware ARM 14.2, I tried to compile testdisk-7.0 but it was failing every time. So I thought I'd go back a few versions and tried to compile testdisk-6.13 but that was also unsuccessful. Then I decided to verify that they can be compiled and attempted to do so on a Slackware 14.2 x64 system. That wasn't successful either.

My results...

Compiling testdisk-7.0 under Slackware ARM 14.2.

Code:
config.status: executing depfiles commands
make  all-recursive
make[1]: Entering directory '/tmp/SBo/testdisk-7.0'
Making all in icons
make[2]: Entering directory '/tmp/SBo/testdisk-7.0/icons'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/SBo/testdisk-7.0/icons'
/bin/sh: line 12: 26232 Illegal instruction     make $local_target
Makefile:415: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/testdisk-7.0'
Makefile:353: recipe for target 'all' failed
make: *** [all] Illegal instruction
./testdisk.SlackBuild: line 88: 26222 Illegal instruction     make
Compiling testdisk-6.13 under Slackware ARM 14.2.

Code:
make[2]: Leaving directory '/tmp/SBo/testdisk-6.13/src'
/bin/sh: line 9: 16717 Illegal instruction     make $local_target
Makefile:381: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/testdisk-6.13'
Makefile:273: recipe for target 'all' failed
make: *** [all] Illegal instruction
./testdisk.SlackBuild: line 88: 16709 Illegal instruction     make
I tried compiling testdisk-7.0 under Slackware 14.2 x64.

Code:
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/SBo/testdisk-7.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
Compiling testdisk-6.13 under Slackware 14.2 x64.

Code:
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/SBo/testdisk-6.13':
configure: error: C compiler cannot create executables
See `config.log' for more details
As you can see something is very not right. Apparently I've got terminal problems with gcc... NOT! WTF?!?!?

The ARM system I tested with is the SARPi3 build machine and I've been building and testing the latest images on it over the past few days. I compiled some packages earlier this afternoon on it successfully. So there's no reason it should now be broken. I did another test by compiling a package...

Code:
usr/doc/u-boot-tools-2014.07/uImage.FIT/howto.txt
usr/doc/u-boot-tools-2014.07/uImage.FIT/sign-configs.its
usr/doc/u-boot-tools-2014.07/uImage.FIT/command_syntax_extensions.txt
usr/doc/u-boot-tools-2014.07/uImage.FIT/verified-boot.txt
install/
install/doinst.sh
install/slack-desc
etc/
etc/fw_env.config.new
WARNING:  zero length file install/slack-desc

Slackware package /tmp/u-boot-tools-2014.07-arm-1_SBo_fd.txz created.
That seemed to go well. No errors. 100% successful.

When my Slackware 14.2 x64 system failed to compile testdisk I compiled a package using a slackbuild script just to verify that all was well on my system...

Code:
usr/lib/java/bin/rmiregistry
usr/lib/java/bin/pack200
usr/lib/java/bin/rmid
usr/lib/java/bin/keytool
usr/lib/java/bin/java

Slackware package /tmp/jre-8u191-i586-1.txz created.
So, it works! There's no errors with gcc or make. No all-recursive failures with illegal instructions. Both Slackware systems are able to create excutables and compile source code with ease, as long as it's not testdisk.

I have no clue why compiling the testdisk source is producing these errors.

[EDIT] I even tried compiling the source code manually, without using the SlackBuild script, and it failed in the same way for the same reason(s).

Last edited by Penthux; 04-13-2019 at 07:09 PM. Reason: edit
 
1 members found this post helpful.
Old 04-13-2019, 07:25 PM   #3
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 14.2, SARPI
Posts: 317

Original Poster
Rep: Reputation: 30
I just installed (v7.0) it on my x64 pc, and it installed fine. Although, there were some warnings or errors while compiling.

EDIT: Come to think of it, looking at the errors...it could be that because I don't have X installed (since the machine is headless) it's failing to compile because it depends on some libraries that aren't installed. Although, I don't know why you'd need X libraries to compile a command line only program.

Last edited by hedron; 04-13-2019 at 08:44 PM.
 
Old 04-13-2019, 09:01 PM   #4
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 708

Rep: Reputation: 139Reputation: 139
Slackware package /tmp/testdisk-7.0-arm-1_SBo.tgz created

PRETTY_NAME="Slackware 14.2 arm (post 14.2 -current)", uname -r 4.19.32-v7+, SARPi3 full install up to date

OP what slackware version from your first post?
Attached Thumbnails
Click image for larger version

Name:	testdisk-slackbuild-install.jpg
Views:	6
Size:	165.0 KB
ID:	30344  

Last edited by glorsplitz; 04-13-2019 at 09:12 PM.
 
Old 04-14-2019, 05:08 AM   #5
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 253

Rep: Reputation: 74
Quote:
Originally Posted by hedron View Post
EDIT: Come to think of it, looking at the errors...it could be that because I don't have X installed (since the machine is headless) it's failing to compile because it depends on some libraries that aren't installed. Although, I don't know why you'd need X libraries to compile a command line only program.
I don't have X installed on Slackware ARM on any of the RPis but I do have it installed on my Slackware 14.2 x64 system.

Quote:
Originally Posted by glorsplitz View Post
Slackware package /tmp/testdisk-7.0-arm-1_SBo.tgz created

PRETTY_NAME="Slackware 14.2 arm (post 14.2 -current)", uname -r 4.19.32-v7+, SARPi3 full install up to date

OP what slackware version from your first post?
I was using Slackware 14.2 on x64 and ARM. Perhaps -current is required to compile successfully.

Last edited by Penthux; 04-14-2019 at 05:10 AM. Reason: forgot something
 
Old 04-14-2019, 12:14 PM   #6
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 14.2, SARPI
Posts: 317

Original Poster
Rep: Reputation: 30
I'm using plain 14.2. I installed using the SARPI guide. http://sarpi.fatdog.eu/index.php?p=installer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Suse and Testdisk xix Linux - Software 1 08-05-2005 09:29 AM
Using TestDisk on Itanium machine phahn Linux - Newbie 0 01-17-2005 09:53 AM
Testdisk documentation suguru Linux - Software 0 09-17-2004 10:48 AM
quick question about testdisk uglyugly General 1 03-27-2004 03:54 PM
testdisk stuff with adding a recovered reiserfs partition wini_g Linux - Software 2 11-07-2003 07:45 PM

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

All times are GMT -5. The time now is 12:21 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration