Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2005 21:09:50 +0200
From:      "Maarten Sanders" <maarfree@xs4all.nl>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        contact@jeroen.se
Subject:   ports/84588: gpsdrive, sql support broken
Message-ID:  <1123268990.0@maarten>
Resent-Message-ID: <200508051910.j75JA8n9001705@freefall.freebsd.org>

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

>Number:         84588
>Category:       ports
>Synopsis:       gpsdrive, sql support broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 05 19:10:08 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Maarten Sanders
>Release:        FreeBSD 5.4-RELEASE-p1 i386
>Organization:
>Environment:


System: FreeBSD 5.4-RELEASE-p1 #8: Sun Jul 31 21:29:07 CEST 2005
    maarten@maarten:/usr/obj/usr/src/sys/MAARTEN2



>Description:


Trying to use sql for waypoints yields:
Cannot open "@PREFIX@/lib/mysql/libmysqlclient.10.dylib"

I found a patch on the web http://www.jeroen.se/otherprojects.php . I feel this patch should be applied to the port, though not sure it is only a FreeBSD problem.

All credits for this patch should go to Jeroen van Nieuwenhuizen, www.jeroen.se


>How-To-Repeat:


Try to use sql for waypoints


>Fix:


Applying the patch below (put in files/patch-src::gpsdrive.c) solves the problem.


--- temp/gpsdrive-2.09/src/gpsdrive.c	Wed Mar  3 21:46:47 2004
+++ /usr/ports/astro/gpsdrive/work/gpsdrive-2.09/src/gpsdrive.c	Fri Jun 11 15:42:11 2004
@@ -10490,30 +10490,52 @@
   if (usesql)
     {
       handle = dlopen ("/usr/local/lib/libmysqlclient.dll", RTLD_LAZY);
-      if (!handle)
+      if (!handle) {
+	dlerror() ;
 	handle =
 	  dlopen ("@PREFIX@/lib/mysql/libmysqlclient.10.dylib", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle = dlopen ("libmysqlclient.so", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle = dlopen ("libmysqlclient.so.10", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle = dlopen ("/opt/lib/mysql/libmysqlclient.so.10", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle = dlopen ("/opt/mysql/lib/libmysqlclient.so.10", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle = dlopen ("/usr/lib/mysql/libmysqlclient.so.10", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle = dlopen ("/usr/lib/libmysqlclient.so.10", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle =
 	  dlopen ("/usr/local/lib/mysql/libmysqlclient.so.10", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle = dlopen ("/usr/local/mysql/libmysqlclient.so.10", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle = dlopen ("/usr/local/lib/libmysqlclient.so.10", RTLD_LAZY);
-      if (!handle)
+      }
+      if (!handle) {
+	dlerror() ;
 	handle = dlopen ("/sw/lib/libmysqlclient.dylib", RTLD_LAZY);
+      }
 
       if (handle)
 	{



>Release-Note:
>Audit-Trail:
>Unformatted:



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