[gobolinux-users] KDE upgrade to 3.5.7 failed because hal 0.5.9 ftbfs
rubisher
rubisher at scarlet.be
Tue Sep 4 21:03:27 UTC 2007
rubisher wrote:
> Jonas Karlsson wrote:
>> On Fri, 31 Aug 2007 16:31:20 +0200, rubisher <rubisher at scarlet.be> wrote:
>>
>>> ---------- Initial header -----------
>>>
>>>> From : gobolinux-users-bounces at lists.gobolinux.org
>>> To : gobolinux-users at lists.gobolinux.org
>>> CC :
>>> Date : Fri, 31 Aug 2007 12:39:51 +0200
>>> Subject : Re: [gobolinux-users] KDE upgrade to 3.5.7 failed because hal
>>> 0.5.9 ftbfs
>>>
>>>> 2007/8/30, rubisher <rubisher at scarlet.be>:
>>>>> Hello all,
>>>>>
>>>>> Comtinuing my KDE update (Freshen -U KDE-Base KDE-Graphics KDE-Libs
>>> KDE-Multimedia KDE-Network KDE-PIM), I encountered
>>>>> following issue while the compile step of hal 0.5.9:
>>>>> [snip]
>>>>> make[5]: Entering directory
>>> `/Files/Compile/Sources/hal-0.5.9/hald/linux/probing'
>>> gcc -DHAVE_CONFIG_H -I. -I../../.. -DPACKAGE_SYSCONF_DIR=\""/Programs/HAL/Settings"\"
>>>> -DPACKAGE_DATA_DIR=\""/Programs/HAL/0.5.9/share"\" -DPACKAGE_BIN_DIR=\""/Programs/HAL/0.5.9/bin"\"
>>>>
>>>> -DPACKAGE_LOCALE_DIR=\""/Programs/HAL/0.5.9/share/locale"\" -DPACKAGE_LOCALSTATEDIR=\""/System/Variable"\" -I../../..
>>>>
>>>> -I/Programs/GLib/2.12.11/include/glib-2.0 -I/Programs/GLib/2.12.11/lib/glib-2.0/include
>>>>
>>>> -I/Programs/DBus-GLib/0.73/include/dbus-1.0 -I/Programs/DBus/1.0.2/include/dbus-1.0
>>>>
>>>> -I/Programs/DBus/1.0.2/lib/dbus-1.0/include -I/Programs/DBus/1.0.2/include/dbus-1.0
>>>>
>>>> -I/Programs/DBus/1.0.2/lib/dbus-1.0/include -I/Programs/Udev/095/include -O2 -march=i686 -fomit-frame-pointer -pipe
>>>>
>>>> I looked at the recipe and it states Udev >= 105 as BuildDependency.
>>> Acutaly it was already there:
>>> ]ls -l /Programs/Udev
>>> total 12
>>> drwxr-xr-x 9 Brother Brother 4096 2006-10-25 01:40 095
>>> drwxr-xr-x 9 Brother Brother 4096 2007-06-01 22:14 110
>>> lrwxrwxrwx 1 Brother Brother 3 2007-06-03 14:50 Current -> 095
>>> drwxr-xr-x 4 Brother Brother 4096 2006-10-25 01:34 Settings
>>>
>>> So I just "SymlinkProgram Udev 110":
>>> ls -l /Programs/Udev
>>> total 12
>>> drwxr-xr-x 9 Brother Brother 4096 2006-10-25 01:40 095
>>> drwxr-xr-x 9 Brother Brother 4096 2007-06-01 22:14 110
>>> lrwxrwxrwx 1 Brother Brother 3 2007-08-31 14:09 Current -> 110
>>> drwxr-xr-x 4 Brother Brother 4096 2006-10-25 01:34 Settings
>>>
>>>> Wasn't you asked to upgrade Udev before compilation of HAL started?
>>>> Does upgrading Udev solve this issue?
>>>>
>>> Anyway it doesn't help (always same errors), sorry.
>>>
>> Did you see if used includes from Udev 095 (again) or Udev 110?
>
> Yes:
> gcc -DHAVE_CONFIG_H -I. -I../../.. -DPACKAGE_SYSCONF_DIR=\""/Programs/HAL/Settings"\"
> -DPACKAGE_DATA_DIR=\""/Programs/HAL/0.5.9/share"\" -DPACKAGE_BIN_DIR=\""/Programs/HAL/0.5.9/bin"\"
> -DPACKAGE_LOCALE_DIR=\""/Programs/HAL/0.5.9/share/locale"\" -DPACKAGE_LOCALSTATEDIR=\""/System/Variable"\" -I../../..
> -I/Programs/GLib/2.12.11/include/glib-2.0 -I/Programs/GLib/2.12.11/lib/glib-2.0/include
> -I/Programs/DBus-GLib/0.73/include/dbus-1.0 -I/Programs/DBus/1.0.2/include/dbus-1.0
> -I/Programs/DBus/1.0.2/lib/dbus-1.0/include -I/Programs/DBus/1.0.2/include/dbus-1.0
> -I/Programs/DBus/1.0.2/lib/dbus-1.0/include -I/Programs/Udev/110/include -O2 -march=i686 -fomit-frame-pointer -pipe
> -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT
> linux_dvd_rw_utils.o -MD -MP -MF .deps/linux_dvd_rw_utils.Tpo -c -o linux_dvd_rw_utils.o linux_dvd_rw_utils.c
>
>> Sometimes,
>> due to how pkg-config works, only symlinking doesn't work. I have
>> successfully built the current recipe both normally and with ChrootCompile.
>>
>> What version of Glibc and Linux-Headers do you have?
>>
> # ls -l /Programs/Glibc/
> total 12
> drwxr-xr-x 10 Brother Brother 4096 2006-10-29 13:32 2.4
> drwxr-xr-x 10 Brother Brother 4096 2007-02-23 18:06 2.5
> lrwxrwxrwx 1 Brother Brother 3 2007-06-11 10:43 Current -> 2.5
> drwxr-xr-x 2 Brother Brother 4096 2007-08-31 16:41 Settings
>
> seems to be the latest available.
>
> # ls -l /Programs/Linux-Headers/
> total 8
> drwxr-xr-x 6 Brother Brother 4096 2006-10-14 20:49 2.6.16.20
> drwxr-xr-x 5 Brother Brother 4096 2007-02-23 18:07 2.6.20
> lrwxrwxrwx 1 Brother Brother 6 2007-06-24 11:32 Current -> 2.6.20
>
> Also the latest (and the only one still) available
>
> That say, even in 2.6.16.20 in include/scsi/sg.h (where SG_FLAG_LUN_INHIBIT is supposed to be defined) but seems to be
> renamed in 2.6 as SG_FLAG_UNUSED_LUN_INHIBIT for a while (I didn't reach to find when with accuracy).
>
> I will check later about other errors.
>
Well I tried the latest 0.5.9.1 src but it din't help more (always same errors) because I discover the projects' git tree:
<http://www.freedesktop.org/wiki/Software/hal>
and the build intructions:
<http://www.freedesktop.org/wiki/Software/HalBuildInstructions> just to grab developement tree and noticed this change
around previous mentioned errors:
--- linux_dvd_rw_utils.c.Orig 2007-04-03 16:38:50.000000000 +0000
+++ linux_dvd_rw_utils.c 2007-09-04 19:57:30.000000000 +0000
@@ -58,6 +58,14 @@
#include "linux_dvd_rw_utils.h"
+#if !defined(SG_FLAG_LUN_INHIBIT)
+# if defined(SG_FLAG_UNUSED_LUN_INHIBIT)
+# define SG_FLAG_LUN_INHIBIT SG_FLAG_UNUSED_LUN_INHIBIT
+# else
+# define SG_FLAG_LUN_INHIBIT 0
+# endif
+#endif
+
typedef enum {
NONE = CGC_DATA_NONE, // 3
READ = CGC_DATA_READ, // 2
@@ -149,8 +157,8 @@
errno = EIO;
ret = -1;
if (cmd->sg_io.masked_status & CHECK_CONDITION) {
- CREAM_ON_ERRNO (cmd->sg_io.sbp);
- ret = ERRCODE (cmd->sg_io.sbp);
+ CREAM_ON_ERRNO ((unsigned char*)cmd->sg_io.sbp);
+ ret = ERRCODE ((unsigned char*)cmd->sg_io.sbp);
if (ret == 0)
ret = -1;
}
=== <> ===
This finaly help me to Compile successfully HAL ;-)
That said I don't have yet enough knowledge in Recipe to know the better place to put this patch?
Tia,
r.
PS: I also noticed another detail not common to my usual way of work:
(my favorite way to install open source project being:
./configure --prefix=/opt/$productName/$release (e.g. /opt/openssh/4.3-p1))
Here in the recipe there is:
[snip]
configure_options=(
[snip]
"--with-dbus-sys=${settings_target}/dbus-1/system.d"
[snip]
)
[snip]
Where I would put (like I would do to configure foobar to look for the libraries of barfoo pkg in another location)
"--with-dbus-sys=${goboPrograms}/DBus/Settings/dbus-1/system.d"
But this seems to breack some Compile step:
[snip]
test -z "/Programs/DBus/Settings/dbus-1/system.d" || /System/Links/Executables/mkdir -p
"/Programs/DBus/Settings/dbus-1/system.d"
/System/Links/Executables/install -c -m 644 'hal.conf' '/Programs/DBus/Settings/dbus-1/system.d/hal.conf'
real_install: cannot create regular file `/Programs/DBus/Settings/dbus-1/system.d/hal.conf': Permission denied
make[2]: *** [install-dist_dbusDATA] Error 1
[snip]
But I just discover HAL project, so excuse me if I don't yet understand relationship between hal and dbus ;-)
More information about the gobolinux-users
mailing list