On Wednesday 08 November 2006 15:48, Russell Sutherland wrote:
> There does not seem to be a port for Bacula for OpenBSD 4.0.
> 
> I've tried building the package from source.
> 
> After configuration, the "make" fails when trying to compile
> the stored code:
> 
> ==>Entering directory /usr/local/src/bacula-1.38.11/src/dird
> ==== Make of dird is good ====
> 
> ==>Entering directory /usr/local/src/bacula-1.38.11/src/stored
> /usr/bin/g++   -c  -I/usr/local/include   -I. -I..  -g -O2 -Wall -pthread 
dev.c
> dev.c: In function `bool eod_dev(DEVICE*)':
> dev.c:850: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:850: error: 'struct mtget' has no member named 'mt_blkno'
> dev.c:852: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:881: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:882: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:899: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:900: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c: In function `u_int32_t status_dev(DEVICE*)':
> dev.c:1023: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:1023: error: 'struct mtget' has no member named 'mt_blkno'
> dev.c: In member function `bool DEVICE::fsf(int)':
> dev.c:1188: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:1188: error: 'struct mtget' has no member named 'mt_blkno'
> dev.c:1190: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c: In member function `bool DEVICE::fsr(int)':
> dev.c:1375: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:1375: error: 'struct mtget' has no member named 'mt_blkno'
> dev.c:1023: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:1023: error: 'struct mtget' has no member named 'mt_blkno'
> dev.c: In member function `bool DEVICE::fsf(int)':
> dev.c:1188: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:1188: error: 'struct mtget' has no member named 'mt_blkno'
> dev.c:1190: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c: In member function `bool DEVICE::fsr(int)':
> dev.c:1375: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:1375: error: 'struct mtget' has no member named 'mt_blkno'
> dev.c:1377: error: 'struct mtget' has no member named 'mt_fileno'
> dev.c:1378: error: 'struct mtget' has no member named 'mt_blkno'
> dev.c: In function `bool dev_get_os_pos(DEVICE*, mtget*)':
> dev.c:1968: error: 'struct mtget' has no member named 'mt_fileno'
> *** Error code 1
> 
> Stop in /usr/local/src/bacula-1.38.11/src/stored.

It looks to me like the OS' header file is badly broken -- at least in the 
sense that if it is a Unix system, both mt_fileno and mt_blkno should be 
defined in the struct mtget.

Someone should fix the OS, barring that we will need a patch.

I checked the man page for st, where all other Unix systems define the packet.  
They include no definition, so you will need to consult the header file 
directly sys/mtio.h.   Sorry, but you are pretty much on your own on this.



> 
> 
>   ====== Error in /usr/local/src/bacula-1.38.11/src/stored ======
> 
> 
> ==>Entering directory /usr/local/src/bacula-1.38.11/src/tools
> ==== Make of tools is good ====
> 
> 
> 
> Any ideas how this can be fixed?
> 
> -- 
> Russell Sutherland
> russ AT madhaus . cns . utoronto . ca
> +1.416.978.0470 [ voice ]
> +1.416.978.6620 [ fax ]
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job 
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to