Skip to contentSkip to conversation

Fix 64 configuration

PATCH In review Manuel Naranjo 2 participants 3 messages Nov 15, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix 64 configuration

Hello everyone,

It's been about 1 month since I got my 64 bits laptop, and after a hole month I started to figure out why the he## I couldn't get the audio service working on it. Or the pan service, or the serial service, or what ever service you might think off.

I was always getting: dbus.exceptions.DBusException:
org.bluez.Error.Failed: Exec format error

When ever I asked dbus to register a new server.

After a long trial and error, I discovered that by default bluez was installing all the services to ${prefix}/lib instead of ${prefix}/lib64.

Here's a little patch that fixes that problem. I'm not sure if I fixed the problem in the best way, I haven't ever used auto tools for over 10 seconds, so I might have broken something. I tested, it builds, and then when I make the install it puts the files into lib64.

The patch was made against the latest cvs version.

Thanks,
Manuel Naranjo
Wireless Cables Inc.
www.aircable.net

47,49c47,50
<
< if (test "${libdir}" = '${exec_prefix}/lib'); then
< libdir="${prefix}/lib"
---

Quoted 4 lines
	
	dnl if lib64 is present then we use it
	if (test -d "${prefix}/lib64" ); then
	    libdir="${prefix}/lib64"

51c52,57
<
---

Quoted 6 lines
	
	dnl and then only if ${libdir} keeps beeing empty we use lib
	if ( test -z "${libdir}" ) ; then
	    libdir="${prefix}/lib"
	fi

68a75

Quoted 1 line

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

On Wed, 2007-11-14 at 23:53 -0300, Manuel Naranjo wrote:
<snip>

Quoted 1 line

The patch was made against the latest cvs version.

Please use "diff -up" to generate your patches. There's not even a filename in the diff you posted.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

Oops!! Sorry.

Quoted 4 lines

Please use "diff -up" to generate your patches. There's not even a filename in the diff you posted.

Here it's again.

acinclude.m4 renamed from acinclude.m4.orig +10 -4
@@ -44,11 +44,17 @@ AC_DEFUN([AC_INIT_BLUEZ], [
 
 		prefix="${ac_default_prefix}"
 	fi
-
-	if (test "${libdir}" = '${exec_prefix}/lib'); then
-		libdir="${prefix}/lib"
+	
+	dnl if lib64 is present then we use it
+	if (test -d "${prefix}/lib64" ); then
+	    libdir="${prefix}/lib64"
 	fi
-
+	
+	dnl and then only if ${libdir} keeps beeing empty we use lib
+	if ( test -z "${libdir}" ) ; then
+	    libdir="${prefix}/lib"
+	fi
+	
 	if (test "$sysconfdir" = '${prefix}/etc'); then
 		configdir="${prefix}/etc/bluetooth"
 	else

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel