Folks:

To get Bacula 2.5.42-b2 to run on FreeBSD 7.x and 8.x, the following
patches are required.  This is because a newer gcc is used on those
platforms.

FYI:

FreeBSD 6.3 - gcc 3.4.6
FreeBSD 7.1 - gcc 4.2.1
FreeBSD 8.x - gcc 4.2.1 (20070719)

The patches relate to casting.  These patches will be applied to the
FreeBSD port sysutils/bacula-server-devel (i.e. the beta port).   When I
start working on Bacula 3.x version, I expect I'll need to apply similar
patches.

If this makes sense to put into the Bacula source code, I'll commit it.

See attached.

-- 
Dan Langille

BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:     http://www.pgcon.org/
Index: files/patch-src_cats_sql.c
===================================================================
RCS file: files/patch-src_cats_sql.c
diff -N files/patch-src_cats_sql.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ files/patch-src_cats_sql.c  12 Apr 2009 00:35:46 -0000
@@ -0,0 +1,11 @@
+--- src/cats/sql.c.orig        2008-11-11 09:33:46.000000000 -0500
++++ src/cats/sql.c     2009-04-11 20:35:41.171024520 -0400
+@@ -759,7 +759,7 @@
+    if (mdb->lock.valid == RWLOCK_VALID) { 
+       fprintf(fp, "\tRWLOCK=%p w_active=%i w_wait=%i\n", &mdb->lock, 
mdb->lock.w_active, mdb->lock.w_wait);
+ #ifndef HAVE_WIN32
+-      fprintf(fp, "\t\tthreadid=0x%x mutex=%p\n", (int)mdb->lock.writer_id, 
&mdb->lock.mutex);
++      fprintf(fp, "\t\tthreadid=0x%lx mutex=%p\n", (long)mdb->lock.writer_id, 
&mdb->lock.mutex);
+ #endif
+    }
+ }
Index: files/patch-src_lib_jcr.c
===================================================================
RCS file: files/patch-src_lib_jcr.c
diff -N files/patch-src_lib_jcr.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ files/patch-src_lib_jcr.c   12 Apr 2009 00:35:09 -0000
@@ -0,0 +1,13 @@
+--- src/lib/jcr.c.orig 2009-03-06 15:00:47.000000000 -0500
++++ src/lib/jcr.c      2009-04-11 20:34:50.407999331 -0400
+@@ -1063,8 +1063,8 @@
+       fprintf(fp, "\tuse_count=%i\n",
+               jcr->use_count());
+ #else
+-      fprintf(fp, "\tuse_count=%i threadid=0x%x\n",
+-              jcr->use_count(), (int)jcr->my_thread_id);
++      fprintf(fp, "\tuse_count=%i threadid=0x%lx\n",
++              jcr->use_count(), (long)jcr->my_thread_id);
+ #endif
+       fprintf(fp, "\tJobType=%c JobLevel=%c\n",
+               jcr->get_JobType(), jcr->get_JobLevel());

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to