0.31 fails to build on Fedora Rawhide

Bug #978235 reported by BJ Dierkes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
Fix Released
Low
Brian Aker

Bug Description

Getting the following on Fedora Rawhide:

benchmark/blobslap_client.cc:57:55: error: 'getopt' was not declared in this scope
benchmark/blobslap_client.cc:66:22: error: 'optarg' was not declared in this scope

Likely similar to a previous bug regarding the need for including unistd.h. Patching and attempting to build again now.... will update.

Revision history for this message
BJ Dierkes (derks) wrote :

The following resolves the build:

--- gearmand-0.31/benchmark/blobslap_client.cc.orig 2012-03-04 23:24:53.000000000 -0600
+++ gearmand-0.31/benchmark/blobslap_client.cc 2012-04-10 12:58:56.207501626 -0500
@@ -18,6 +18,7 @@
 #include <cstdlib>
 #include <cstring>
 #include <cstdio>
+#include <unistd.h>

 #define BLOBSLAP_DEFAULT_NUM_TASKS 10
 #define BLOBSLAP_DEFAULT_BLOB_MIN_SIZE 0

Brian Aker (brianaker)
Changed in gearmand:
milestone: none → 0.32
assignee: nobody → Brian Aker (brianaker)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Brian Aker (brianaker) wrote :

Please pull lp:gourmand and test.

Thanks!

Changed in gearmand:
status: In Progress → Fix Committed
Brian Aker (brianaker)
Changed in gearmand:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.