After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 335704 - fix to let drivel compile under OpenBSD 3.8
fix to let drivel compile under OpenBSD 3.8
Status: RESOLVED FIXED
Product: drivel
Classification: Deprecated
Component: general
2.0.x
Other OpenBSD
: Normal blocker
: ---
Assigned To: Todd Kulesza
Todd Kulesza
Depends on:
Blocks:
 
 
Reported: 2006-03-23 16:57 UTC by bugant
Modified: 2006-04-23 02:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix compile under OpenBSD 3.8 (764 bytes, patch)
2006-03-23 17:00 UTC, bugant
none Details | Review

Description bugant 2006-03-23 16:57:36 UTC
compiling drivel-2.0.2 on OpenBSD 3.8 goes
wrong.

BUG

I followed these steps:

1) ./configure --with-curl-libraries=/usr/local/lib \
--with-curl-includes=/usr/local/include

2) gmake

the error message is

In file included from /usr/local/include/curl/curl.h:1448,
                 from drivel.h:34,
                 from blog_blogger.c:28:
/usr/local/include/curl/multi.h:168: error: syntax error before "fd_set"
gmake[3]: *** [blog_blogger.o] Error 1
gmake[3]: Leaving directory `/home/bugant/drivel-2.0.2.orig/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/bugant/drivel-2.0.2.orig/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/bugant/drivel-2.0.2.orig'
gmake: *** [all] Error 2


PROPOSED PATCH

The following patch will make it compile clean.

diff -ruN drivel-2.0.2.orig/src/blog_blogger.c drivel-2.0.2/src/blog_blogger.c
--- drivel-2.0.2.orig/src/blog_blogger.c        Thu May 19 23:59:00 2005
+++ drivel-2.0.2/src/blog_blogger.c     Thu Mar 23 17:18:33 2006
@@ -19,6 +19,7 @@
  *             Todd Kulesza <todd@dropline.net>
  */

+#include <sys/types.h>
 #include <config.h>

 #define _XOPEN_SOURCE /* glibc2 needs this */
diff -ruN drivel-2.0.2.orig/src/blog_mt.c drivel-2.0.2/src/blog_mt.c
--- drivel-2.0.2.orig/src/blog_mt.c     Thu May 19 23:59:00 2005
+++ drivel-2.0.2/src/blog_mt.c  Thu Mar 23 17:18:46 2006
@@ -22,6 +22,7 @@
 /* Drivel's MT interface is modeled off of Sherzod Ruzmetov's
  * Net::MovableType PERL class. */

+#include <sys/types.h>
 #include <config.h>

 #define _XOPEN_SOURCE /* glibc2 needs this */
Comment 1 bugant 2006-03-23 17:00:24 UTC
Created attachment 61854 [details] [review]
fix compile under OpenBSD 3.8

I think I should had to attach the patch here.
Sorry.
Comment 2 palfrey 2006-03-24 11:48:10 UTC
Confirming that this patch applies cleanly against current CVS (2006-03-24), and that Linux compilation still works after it has been applied.
Comment 3 Todd Kulesza 2006-04-23 02:49:25 UTC
Confirmed and committed, thanks for the patch!