LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-10-2012, 04:08 PM   #1
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 14.1 kernel 4.1.13 gcc 4.8.2
Posts: 246

Rep: Reputation: 22
hddtemp 0.3-15 beta won't compile.


I could not get hddtemp-0.3-15 beta to compile. I noticed that there have not been any updates to the code in five years. Is there a newer version available somewhere or another way to monitor hdd temps? The error is below:

bash-4.1# make install
Making install in intl
make[1]: Entering directory `/root/hddtemp-0.3-beta15/intl'
if { test "hddtemp" = "gettext-runtime" || test "hddtemp" = "gettext-tools"; } \
&& test 'no' = yes; then \
/bin/sh .././mkinstalldirs /usr/local/lib /usr/local/include; \
/usr/bin/ginstall -c -m 644 libintl.h /usr/local/include/libintl.h; \
@LIBTOOL@ --mode=install \
/usr/bin/ginstall -c -m 644 libintl.a /usr/local/lib/libintl.a; \
if test "@RELOCATABLE@" = yes; then \
dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < /usr/local/lib/libintl.la | sed -e "s,^',," -e "s,'\$,,"`; \
if test -n "$dependencies"; then \
rm -f /usr/local/lib/libintl.la; \
fi; \
fi; \
else \
: ; \
fi
if test "hddtemp" = "gettext-tools" \
&& test 'no' = no \
&& test yes != no; then \
/bin/sh .././mkinstalldirs /usr/local/lib; \
@LIBTOOL@ --mode=install \
/usr/bin/ginstall -c -m 644 libgnuintl.a /usr/local/lib/libgnuintl.a; \
rm -f /usr/local/lib/preloadable_libintl.so; \
/usr/bin/ginstall -c -m 644 /usr/local/lib/libgnuintl.so /usr/local/lib/preloadable_libintl.so; \
@LIBTOOL@ --mode=uninstall \
rm -f /usr/local/lib/libgnuintl.a; \
else \
: ; \
fi
if test 'no' = yes; then \
test yes != no || /bin/sh .././mkinstalldirs /usr/local/lib; \
temp=/usr/local/lib/t-charset.alias; \
dest=/usr/local/lib/charset.alias; \
if test -f /usr/local/lib/charset.alias; then \
orig=/usr/local/lib/charset.alias; \
sed -f ref-add.sed $orig > $temp; \
/usr/bin/ginstall -c -m 644 $temp $dest; \
rm -f $temp; \
else \
if test yes = no; then \
orig=charset.alias; \
sed -f ref-add.sed $orig > $temp; \
/usr/bin/ginstall -c -m 644 $temp $dest; \
rm -f $temp; \
fi; \
fi; \
/bin/sh .././mkinstalldirs /usr/local/share/locale; \
test -f /usr/local/share/locale/locale.alias \
&& orig=/usr/local/share/locale/locale.alias \
|| orig=./locale.alias; \
temp=/usr/local/share/locale/t-locale.alias; \
dest=/usr/local/share/locale/locale.alias; \
sed -f ref-add.sed $orig > $temp; \
/usr/bin/ginstall -c -m 644 $temp $dest; \
rm -f $temp; \
else \
: ; \
fi
if test "hddtemp" = "gettext-tools"; then \
/bin/sh .././mkinstalldirs /usr/local/share/gettext/intl; \
/usr/bin/ginstall -c -m 644 VERSION /usr/local/share/gettext/intl/VERSION; \
/usr/bin/ginstall -c -m 644 ChangeLog.inst /usr/local/share/gettext/intl/ChangeLog; \
dists="COPYING.LIB-2.0 COPYING.LIB-2.1 Makefile.in config.charset locale.alias ref-add.sin ref-del.sin gmo.h gettextP.h hash-string.h loadinfo.h plural-exp.h eval-plural.h localcharset.h relocatable.h xsize.h printf-args.h printf-args.c printf-parse.h wprintf-parse.h printf-parse.c vasnprintf.h vasnwprintf.h vasnprintf.c os2compat.h libgnuintl.h.in bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y plural-exp.c localcharset.c relocatable.c langprefs.c localename.c log.c printf.c osdep.c os2compat.c intl-compat.c"; \
for file in $dists; do \
/usr/bin/ginstall -c -m 644 ./$file \
/usr/local/share/gettext/intl/$file; \
done; \
chmod a+x /usr/local/share/gettext/intl/config.charset; \
dists="plural.c"; \
for file in $dists; do \
if test -f $file; then dir=.; else dir=.; fi; \
/usr/bin/ginstall -c -m 644 $dir/$file \
/usr/local/share/gettext/intl/$file; \
done; \
dists="xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h"; \
for file in $dists; do \
rm -f /usr/local/share/gettext/intl/$file; \
done; \
else \
: ; \
fi
make[1]: Leaving directory `/root/hddtemp-0.3-beta15/intl'
Making install in po
make[1]: Entering directory `/root/hddtemp-0.3-beta15/po'
/bin/sh .././mkinstalldirs /usr/local/share
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/hddtemp.mo
installing pt.gmo as /usr/local/share/locale/pt/LC_MESSAGES/hddtemp.mo
installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/hddtemp.mo
installing sv.gmo as /usr/local/share/locale/sv/LC_MESSAGES/hddtemp.mo
if test "hddtemp" = "gettext-tools"; then \
/bin/sh .././mkinstalldirs /usr/local/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \
/usr/bin/ginstall -c -m 644 ./$file \
/usr/local/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f /usr/local/share/gettext/po/$file; \
done; \
else \
: ; \
fi
make[1]: Leaving directory `/root/hddtemp-0.3-beta15/po'
Making install in m4
make[1]: Entering directory `/root/hddtemp-0.3-beta15/m4'
make[2]: Entering directory `/root/hddtemp-0.3-beta15/m4'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/hddtemp-0.3-beta15/m4'
make[1]: Leaving directory `/root/hddtemp-0.3-beta15/m4'
Making install in src
make[1]: Entering directory `/root/hddtemp-0.3-beta15/src'
if gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I.. -I../intl -I../intl -Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-backtrace.o -MD -MP -MF ".deps/hddtemp-backtrace.Tpo" \
-c -o hddtemp-backtrace.o `test -f 'backtrace.c' || echo './'`backtrace.c; \
then mv -f ".deps/hddtemp-backtrace.Tpo" ".deps/hddtemp-backtrace.Po"; \
else rm -f ".deps/hddtemp-backtrace.Tpo"; exit 1; \
fi
backtrace.c: In function 'backtrace_handler':
backtrace.c:67:29: error: 'REG_EIP' undeclared (first use in this function)
backtrace.c:67:29: note: each undeclared identifier is reported only once for each function it appears in
backtrace.c:45:32: warning: unused variable 'old_ebp'
backtrace.c:45:23: warning: unused variable 'old_eip'
make[1]: *** [hddtemp-backtrace.o] Error 1
make[1]: Leaving directory `/root/hddtemp-0.3-beta15/src'
make: *** [install-recursive] Error 1

Last edited by Arcosanti; 08-10-2012 at 04:46 PM.
 
Old 08-10-2012, 04:32 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
What error?

Why are you running make all-recursive? The instructions in INSTALL clearly state:

Quote:
INSTALLATION
============
Run ./configure (see --help for options), then just type 'make' and don't forget
to get the last hddtemp.db file on the site :

$ wget http://www.guzu.net/linux/hddtemp.db

By default, the hddtemp.db will we searched in /usr/share/misc directory but
you can change this at compilation time with the --with-db-path option:

$ ./configure --with-db-path=/etc/hddtemp.db

Last edited by macemoneta; 08-10-2012 at 04:35 PM.
 
Old 08-10-2012, 04:54 PM   #3
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 14.1 kernel 4.1.13 gcc 4.8.2
Posts: 246

Original Poster
Rep: Reputation: 22
I didn't notice that the error didn't come through the second time. I edited the original posting to show the error. All I originally did was:

./configure --with-db-path=/etc/hddtemp.db
make

And then the error above came up. To get the error to come up again I typed make install. As for the recursive make-all my guess is that the make script is doing that.

After looking at backtrace.c and .h it is looking like the definition for REG_EIP was left out.

Last edited by Arcosanti; 08-10-2012 at 05:12 PM.
 
Old 08-10-2012, 05:35 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The last comment in this post has a patch.
 
2 members found this post helpful.
Old 08-10-2012, 05:50 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The latest "updates" are found in e.g. 'Debian Sid' and 'Fedora 17'.

The Debian patch : hddtemp_0.3-beta15-52.diff.gz
http://ftp.de.debian.org/debian/pool...a15-52.diff.gz
patch -p1 < hddtemp_0.3-beta15-52.diff : No errors with 'make install'.
( Slackware64 - 13.37 ).

The Fedora patch is in "hddtemp-0.3-0.23.beta15.fc17.src.rpm"
ftp://ftp.pbone.net/mirror/download....5.fc17.src.rpm

.

Last edited by knudfl; 08-10-2012 at 05:51 PM.
 
Old 08-10-2012, 05:59 PM   #6
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 14.1 kernel 4.1.13 gcc 4.8.2
Posts: 246

Original Poster
Rep: Reputation: 22
Thanks. That did the trick.
 
Old 12-04-2013, 04:38 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
The Debian patch worked on Slackware 14.1 too. It fixed the "backtrace.c:67:29: error: 'REG_EIP' undeclared" error.

Here's the change to hddtemp.SlackBuild, done for installation by sbopkg (hence the .sbopkg extension). The hddtemp_0.3-beta15-52.diff file is in the same directory as hddtemp.SlackBuild.
Code:
root@CW9:/var/lib/sbopkg/SBo/14.1/system/hddtemp# diff hddtemp.SlackBuild{,.sbopkg}                                         
56a57,59
> # Apply Debian patch (from http://ftp.de.debian.org/debian/pool/main/h/hddtemp/hddtemp_0.3-beta15-52.diff.gz)
> patch -p1 < $CWD/hddtemp_0.3-beta15-52.diff
> 
root@CW9:/var/lib/sbopkg/SBo/14.1/system/hddtemp# diff -u hddtemp.SlackBuild{,.sbopkg}                                      
--- hddtemp.SlackBuild	2013-11-23 01:17:41.000000000 +0530
+++ hddtemp.SlackBuild.sbopkg	2013-12-04 16:01:42.570374414 +0530
@@ -54,6 +54,9 @@
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;
 
+# Apply Debian patch (from http://ftp.de.debian.org/debian/pool/main/h/hddtemp/hddtemp_0.3-beta15-52.diff.gz)
+patch -p1 < $CWD/hddtemp_0.3-beta15-52.diff
+
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
 
  


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
LXer: How-To: Compile and Install digiKam 1.0 Beta 1 in Ubuntu 9.04 Jaunty Jackalope LXer Syndicated Linux News 0 06-29-2009 01:20 PM
Failed to compile MySQLembedded as requirement of amarok 2.1 beta DaCapitalist Linux - Software 6 04-27-2009 10:52 AM
Yahoomail beta won't work with firefox in opensuse girard SUSE / openSUSE 0 03-23-2007 07:55 AM
Trying to compile Openoffice 2.0 beta DaneM Linux - Software 20 09-04-2005 04:44 AM
kde 3.4 beta 1 (kdeutils) compile error mkoljack Fedora 1 04-12-2005 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:15 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