[SOLVED] Is it possible to install HAL on Slackware 14.1?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As per a number of threads on the Internet, including the following Ubuntu based article, Channel 4's 4od in UK and few other video content providers require HAL installed, otherwise they won't play.
Out of all my Linux machines, only an older laptop with Slack 13.37 on it will play 4od.
I was wondering if there is a way of installing HAL on Slackware 14.1 64bit, ideally without interfering with any other packages or functionality of the machine. Has anybody else stumbled over this one, or managed to get it working?
You might be able to build hal using the 13.37 source (under l/). I don't know if it interferes with anything though. I recall it as removed because udev took over some of it's functionality.
if you want to build it with the 13.37 script, you will need this block before the "autoconf" line (I just tried it)
Code:
# this header moved
sed -i \
"s|linux/videodev\.h|libv4l1-videodev.h|" \
hald/linux/probing/probe-video4linux.c
# this is needed for the newer glib
sed -i \
"s|\ <glib/.*\.h>$| <glib.h>|" \
hald/hald_dbus.c \
hald/linux/addons/addon-*.c \
hald/linux/hal-file-monitor.c \
tools/hal-storage-*.c
as if it interferes with something once installed I haven't tried it.
Thanks ponce. I just tried to build the 13.37 sources from a slackware mirror on a 14.1 64bit install - using your suggested code. I get the following error:
Code:
<snip/>
...
Making all in linux
make[4]: Entering directory `/tmp/hal-0.5.14/hald/linux'
Making all in probing
make[5]: Entering directory `/tmp/hal-0.5.14/hald/linux/probing'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/tmp/hal-0.5.14/hald/linux/probing'
Making all in addons
make[5]: Entering directory `/tmp/hal-0.5.14/hald/linux/addons'
CCLD hald-addon-generic-backlight
CCLD hald-addon-hid-ups
CCLD hald-addon-input
CCLD hald-addon-ipw-killswitch
CCLD hald-addon-leds
CCLD hald-addon-rfkill-killswitch
CC addon-storage.o
In file included from addon-storage.c:35:0:
/usr/include/scsi/sg.h:38:3: error: unknown type name ‘size_t’
size_t iov_len; /* Length in bytes */
^
make[5]: *** [addon-storage.o] Error 1
make[5]: Leaving directory `/tmp/hal-0.5.14/hald/linux/addons'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/hal-0.5.14/hald/linux'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/hal-0.5.14/hald'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/hal-0.5.14/hald'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/hal-0.5.14'
make: *** [all] Error 2
Should I have installed hal-info first, or is it something else?
Thanks ponce. I just tried to build the 13.37 sources from a slackware mirror on a 14.1 64bit install - using your suggested code. I get the following error:
Code:
/usr/include/scsi/sg.h:38:3: error: unknown type name ‘size_t’
size_t is defined in stdlib.h, located in the glibc package: I tried the above on a slackware full install.
@Bertman123 - thanks for that. Indeed, the 13.37 64bits packages installed without a problem. Initially Flash kept on crashing when attempting to play 4oD - but after rebooting the laptop, I'm happy to report that 4oD is finally playing on Linux. Fantastic not to have to keep on rebooting into Windows. Thanks again!
@ponce - Yes, you are right. I've checked /usr/include/stdlib.h - and it seems to include the definition for size_t. Yet the compilation was failing. Hmm.
I just hope that installing hal won't have any side effect on other pieces of software. So far very chuffed.
well, I tried on 32 bit and it failed with the same error as you, so I made a patch that simply invert the order of the interested includes and worked fine here: apply just before the above seds
Even though the package for 13.37 is available, the only reason I did not choose to say to use that package is because it was built for 13.37 and you're running 14.1 so I decided to take the safe bet and not mix packages from different Slackware versions.
Glad to hear the hal package worked out even for 14.1.
I haven't had a problem with the hal packages on 14.1. It helps me to be able to watch amazon prime videos. :-) I haven't noticed any problems with it.
Thanks ponce. I wonder if it would be a good idea to add HAL to SBo. It might be obsolete, but it also seems to be desperately needed for playing a number of online video sources.
and, IMHO, the above online video providers shouldn't use it.
I couldn't agree more - but the reality of the matter is that they do use it - so it's a choice between installing HAL or using Windows. I'd rather do the former and enjoy Linux :-)
I was just thinking that others might end up in the same situation when trying to watch online videos - and if HAL was on SBo with the correct install scripts, it will save them the hassle of hunting around.
I think there will be no need to hunt around, as they have the choice to use the adjustments described in this topic and rebuild it theirselves or also avoid building it and use directly 13.37 packages (as you have tested ).
Even though the package for 13.37 is available, the only reason I did not choose to say to use that package is because it was built for 13.37 and you're running 14.1 so I decided to take the safe bet and not mix packages from different Slackware versions.
Using the package from 13.37 is just fine. Slackware packages, which don't get an upgrade, are not rebuilt for new releases of the distribution anyway. So with the exception of Slackware64 13.0, every Slackware release is a "mix".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.