Skip site navigation (1)Skip section navigation (2)
Date:      22 Jan 2003 13:57:27 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        an@centre.ru
Cc:        freebsd-gnome@FreeBSD.ORG
Subject:   Re: Error compiling port gnome-vfs-2
Message-ID:  <1043261846.339.24.camel@gyros>
In-Reply-To: <200301222022.53447.an@centre.ru>
References:  <200301222022.53447.an@centre.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-7TJVKtXKA6YW6gVTwYJp
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2003-01-22 at 12:22, Andrey wrote:
> Hi,
> 
> If installed port libcdda_paranoia not compiling cdda-method.c
> 
> 
> cdda_interface.h:
> ....
> typedef struct cdrom_drive{
> 
>   int opened; /* This struct may just represent a candidate for opening */
> 
> #ifdef Linux
>   char *cdda_device_name;
>   char *ioctl_device_name;
> 
>   int cdda_fd;
> 
>   int drive_type;
> #elif defined(__FreeBSD__)
>   struct cam_device *dev;
>   union ccb *ccb;
> #endif
> 
> 
> For FreeBSD "cdda_device_name" not member struct "cdrom_drive"

Can you try this patch to gnomevfs2 to see if it helps?

> 
> OS FreeBSD 4.7
> 	regards Andrey Shirchenko
> 
> PS. Nautilus2 core dumped is exist libcdda_paranoia

Hmmm...this may be gnomevfs2 related.  Else, if you could send a back
trace with symbols, that would be appreciated.  Thanks.

Joe

> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-gnome" in the body of the message
-- 
PGP Key : http://www.marcuscom.com/pgp.asc



--=-7TJVKtXKA6YW6gVTwYJp
Content-Disposition: attachment; filename=patch-modules_cdda-method.c
Content-Type: text/x-c; name=patch-modules_cdda-method.c; charset=ISO8859-1
Content-Transfer-Encoding: 7bit

--- modules/cdda-method.c.orig	Wed Jan 22 13:54:31 2003
+++ modules/cdda-method.c	Wed Jan 22 13:54:33 2003
@@ -623,7 +623,11 @@
 	// Check and see if we already have opened and stashed this drive
 	if (!use_base) {
 		if (global_context != NULL) {
+#ifdef Linux
 			if (strcmp (drive->cdda_device_name, global_context->drive->cdda_device_name) == 0) {
+#elif defined(__FreeBSD__)
+			if (strcmp (drive->dev->device_path, global_context->drive->dev->device_path) == 0) {
+#endif
 				use_cache = TRUE;
 				cdda_close (drive);
 				gnome_vfs_file_info_copy (file_info, global_context->file_info);
@@ -709,7 +713,11 @@
 	if (!use_base) {
 		// Check for cache
 		if (global_context != NULL) {
+#ifdef Linux
 				if (strcmp (drive->cdda_device_name, global_context->drive->cdda_device_name) != 0) {
+#elif defined(__FreeBSD__)
+				if (strcmp (drive->dev->device_path, global_context->drive->dev->device_path) != 0) {
+#endif
 					//	Clear old cache
 					cdda_context_free (global_context);
 					global_context = cdda_context_new (drive, uri);

--=-7TJVKtXKA6YW6gVTwYJp--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1043261846.339.24.camel>