Build of Gearman 0.29 on Ubuntu Oneiric with --disable-libpq fails
Bug #970828 reported by
Dossy Shiobara
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman |
Fix Released
|
Medium
|
Brian Aker |
Bug Description
Trying to build Gearman 0.29 on Ubuntu Oneiric without Postgres support (e.g., configure --disable-libpq) fails:
CXXLD gearmand/gearmand
libgearman-
/usr/
Changed in gearmand: | |
assignee: | nobody → Brian Aker (brianaker) |
importance: | Undecided → Medium |
Changed in gearmand: | |
milestone: | none → 0.31 |
status: | New → In Progress |
Changed in gearmand: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
The real "bug" here is that even with --disable-libpq passed to configure, config.h defines HAVE_LIBPQ = 1 as long as Postgres is found, which causes lines 66-69 in libgearman- server/ plugins. cc to do the wrong thing:
66 if (HAVE_LIBPQ) initialize_ postgres( );
67 {
68 queue::
69 }
My guess is the correct fix belongs in m4/have_libpq.m4. See proposed fix in attached patch have_libpq- patch.txt.