bugfastcgi++ - Bugs: bug #33336, Mysql functionality has nothing to...

 
 

bug #33336: Mysql functionality has nothing to do with FastCgi

Submitted by:  Smeesters Olivier <osmeest>
Submitted on:  Wed 18 May 2011 08:38:14 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Eddie Carle <eddic>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 23 Sep 2011 01:31:16 PM UTC, comment #2:

I added a --without-mysql flag to configuration.ac

pkgConfigLibs="-lfastcgipp $BOOST_THREAD_LIBS $BOOST_DATE_TIME_LIBS"

-AC_CHECK_HEADER(mysql/mysql.h, hasMysql=yes)
+AC_ARG_WITH([mysql],
+ AS_HELP_STRING([--without-mysql], [build without mysql]))
+
+AS_IF([test "x$with_mysql" != "xno"], [
+ AC_CHECK_HEADER(mysql/mysql.h, hasMysql=yes)
+],[
+ hasMysql=no
+])
+
if test "$hasMysql" = yes
then
AM_CONDITIONAL(HAVE_MYSQL_H, true)

Anonymous
Wed 18 May 2011 03:22:31 PM UTC, comment #1:

The truth is I wanted to add a --without-mysql flag to the configure script but I couldn't figure out how and I've just been to busy. It annoys me to. Make me a patch for the configure.ac.in file to do it and I'll surely apply it :)

Eddie Carle <eddic>
Project AdministratorIn charge of this item.
Wed 18 May 2011 08:38:14 AM UTC, original submission:

Although it might be useful in some cases, the mysql functionality can be annoying to projects (like mine) which don't need it.
Currently, the automake system disables the mysql code when mysql.h is not present.
But if mysql.h is present on your system, there is no way to disable the functionality.

Suggestions:
- make the mysql part another library that is linked to fastcgi++
- allow a --without-mysql in the configure script

In the meantime, I have to patch src/Makefile.am to prevent the inclusion of mysql.cpp (and the dependency on the libmysql.o).

Smeesters Olivier <osmeest>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by eddic (Posted a comment)
  • -unavailable- added by osmeest (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 24 Sep 2011 06:41:26 PM UTCeddicStatusNone=>Fixed
      Assigned toNone=>eddic

    Back to the top


    Powered by Savane 3.1-cleanup