Bug 71348 - [maintainer] Unbreak databases/mysqlcppapi after mysql41-* update
Summary: [maintainer] Unbreak databases/mysqlcppapi after mysql41-* update
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-03 18:40 UTC by Jie Gao
Modified: 2004-10-13 03:53 UTC (History)
0 users

See Also:


Attachments
patch-databases-mysqlcppapi (880 bytes, text/plain)
2004-09-03 18:40 UTC, Jie Gao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jie Gao 2004-09-03 18:40:16 UTC
	
databases/mysqlcppapi is unable to detect mysql-4.1.4 and use new 
mysql_shutdown() api. Thus it is broken with mysql41-* after mysql41-* were
updated to 4.1.4. I hope this fix can make it way to ports before the freeze.

Fix: Apply the following patch to ports tree.
How-To-Repeat: 	
build databases/mysqlcppapi port when mysql41-client is installed.
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2004-09-03 22:30:41 UTC
State Changed
From-To: open->feedback


Configure does not found libmysqlclient: 

configure:18657: checking for mysql_store_result in -lmysqlclient 
configure:18688: c++ -o conftest -O -pipe -g -march=pentium4 -I/usr/local/include -L/usr/local/lib conftest.cc -lmysqlclient  -lintl  >&5 
/usr/bin/ld: cannot find -lmysqlclient 
configure:18691: $? = 1 
configure: failed program was: 
| #line 18665 "configure" 
| /* confdefs.h.  */ 
|  
| #define PACKAGE_NAME "" 
| #define PACKAGE_TARNAME "" 
| #define PACKAGE_VERSION "" 
| #define PACKAGE_STRING "" 
| #define PACKAGE_BUGREPORT "" 
| #ifdef __cplusplus 
| #include <stdlib.h> 
| #endif 
| #define STDC_HEADERS 1 
| #define HAVE_SYS_TYPES_H 1 
| #define HAVE_SYS_STAT_H 1 
| #define HAVE_STDLIB_H 1 
| #define HAVE_STRING_H 1 
| #define HAVE_MEMORY_H 1 
| #define HAVE_STRINGS_H 1 
| #define HAVE_INTTYPES_H 1 
| #define HAVE_STDINT_H 1 
| #define HAVE_UNISTD_H 1 
| #define HAVE_DLFCN_H 1 
| #define HAVE_LIBINTL 1 
| /* end confdefs.h.  */ 
|  
| /* Override any gcc2 internal prototype to avoid an error.  */ 
| #ifdef __cplusplus 
| extern "C" 
| #endif 
| /* We use char because int might match the return type of a gcc2 
|    builtin and then its argument prototype would still apply.  */ 
| char mysql_store_result (); 
| int 
| main () 
| { 
| mysql_store_result (); 
|   ; 
|   return 0; 
| } 
configure:18709: result: no 


-L/usr/local/lib/mysql is missing.
Comment 2 Jie Gao 2004-09-04 03:32:53 UTC
>Submitter-Id:	current-users
>Originator:	Jie Gao
>Organization:	
>Confidential:	no 
>Category:	ports
>Synopsis:	Re: ports/71348: [maintainer] Unbreak databases/mysqlcppapi after mysql41-* update

Well, I didn't notice this because configure won't fail because of this, and
my programs works well.

Below is an additional patch to address this problem. It should also be applied
to the ports tree.

--- patch-databases-mysqlcppapi-2 begins here ---
Index: databases/mysqlcppapi/files/patch-configure
===================================================================
RCS file: /home/grads/gaoj/repository/ports/databases/mysqlcppapi/files/patch-configure,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- databases/mysqlcppapi/files/patch-configure	6 Aug 2004 00:24:35 -0000	1.1
+++ databases/mysqlcppapi/files/patch-configure	4 Sep 2004 02:25:30 -0000	1.2
@@ -1,4 +1,4 @@
---- configure~	Wed Aug  4 23:58:41 2004
+--- configure.orig	Wed Aug  4 23:58:41 2004
 +++ configure	Thu Aug  5 00:12:29 2004
 @@ -18465,8 +18465,8 @@
  fi;
@@ -11,3 +11,14 @@
  
  
  
+--- configure.orig	Fri Aug 29 03:24:14 2003
++++ configure	Fri Sep  3 20:09:58 2004
+@@ -18660,7 +18660,7 @@
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lmysqlclient  $LIBS"
++LIBS="-L$MYSQL_PREFIX/lib/mysql -lmysqlclient  $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h.  */
--- patch-databases-mysqlcppapi-2 ends here ---
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2004-09-04 08:17:55 UTC
State Changed
From-To: feedback->open


Feedback received, thanks.
Comment 4 Edwin Groothuis freebsd_committer freebsd_triage 2004-10-13 03:53:14 UTC
State Changed
From-To: open->closed

Committed, thanks!