]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix Win32/64 build
authorKern Sibbald <kern@sibbald.com>
Sun, 30 Aug 2009 22:16:03 +0000 (00:16 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 30 Aug 2009 22:16:03 +0000 (00:16 +0200)
bacula/src/baconfig.h
bacula/src/win32/cats/Makefile
bacula/src/win32/cats/bacula_cats.def
bacula/src/win32/cats/make_def
bacula/src/win32/lib/bacula32.def
bacula/src/win32/lib/bacula64.def
bacula/src/win32/lib/make_def
bacula/technotes

index 24301083f3a7a72085dd48e557e2ffb8e52c66eb..08623a7a92cc306f8fe55663f50c82461276ca6a 100644 (file)
@@ -411,6 +411,7 @@ typedef int (INTHANDLER)();
 
 #if defined(HAVE_WIN32)
 typedef int64_t   boffset_t;
+#define caddr_t  char *
 #else
 typedef off_t     boffset_t;
 #endif
index ee5ef67e8760241bc17f6a4341c8a514ee1409d7..001a37fd30dbcea2f94aa48c93709f9f4edde6bc 100644 (file)
@@ -33,6 +33,7 @@ SQL_OBJS = \
        sql_get.o \
        sql_list.o \
        sql_update.o \
+       bvfs.o
 
 LIBS_DLL = \
        $(LIBS_BACULA)
index 44d3321588fe151fac27b6fe22c9bbf7afb1cd8d..7c82051e6e06eb794e7f6b9128f365db027dde54 100644 (file)
@@ -1,5 +1,26 @@
 LIBRARY bacula_cats.dll
 EXPORTS
+
+; bvfs.o
+_Z15bvfs_parent_dirPc
+_Z17bvfs_basename_dirPc
+_Z17bvfs_update_cacheP3JCRP4B_DB
+_Z32bvfs_update_path_hierarchy_cacheP3JCRP4B_DBP11db_list_ctx
+_ZN4Bvfs12_handle_pathEPviPPc
+_ZN4Bvfs12update_cacheEv
+_ZN4Bvfs15ls_special_dirsEv
+_ZN4Bvfs18get_dir_filenameidEv
+_ZN4Bvfs21get_all_file_versionsEjjPKc
+_ZN4Bvfs6ch_dirEPKc
+_ZN4Bvfs7ls_dirsEv
+_ZN4Bvfs8get_rootEv
+_ZN4Bvfs8ls_filesEv
+_ZN4BvfsC1EP3JCRP4B_DB
+_ZN4BvfsC2EP3JCRP4B_DB
+_ZN4BvfsD0Ev
+_ZN4BvfsD1Ev
+_ZN4BvfsD2Ev
+
  
 ; sql.o
 _Z10_db_unlockPKciP4B_DB
@@ -7,6 +28,7 @@ _Z11db_strerrorP4B_DB
 _Z11list_dashesP4B_DBPFvPvPKcES1_
 _Z11list_resultP3JCRP4B_DBPFvPvPKcES3_11e_list_type
 _Z16db_int64_handlerPviPPc
+_Z15db_list_handlerPviPPc
 _Z18db_end_transactionP3JCRP4B_DB
 _Z18get_sql_record_maxP3JCRP4B_DB
 _Z19split_path_and_fileP3JCRP4B_DBPKc
@@ -57,14 +79,13 @@ _Z16db_get_file_listP3JCRP4B_DBPcPFiPviPS3_ES4_
 _Z16db_get_media_idsP3JCRP4B_DBP9MEDIA_DBRPiPPj
 _Z17db_get_client_idsP3JCRP4B_DBPiPPj
 _Z17db_get_job_recordP3JCRP4B_DBP7JOB_DBR
-_Z18db_get_int_handlerPviPPc
 _Z18db_get_pool_recordP3JCRP4B_DBP8POOL_DBR
 _Z18db_get_query_dbidsP3JCRP4B_DBR8POOL_MEMR9dbid_list
 _Z19db_get_media_recordP3JCRP4B_DBP9MEDIA_DBR
 _Z20db_get_client_recordP3JCRP4B_DBP10CLIENT_DBR
 _Z21db_get_counter_recordP3JCRP4B_DBP11COUNTER_DBR
 _Z21db_get_fileset_recordP3JCRP4B_DBP11FILESET_DBR
-_Z22db_accurate_get_jobidsP3JCRP4B_DBP7JOB_DBRPc
+_Z22db_accurate_get_jobidsP3JCRP4B_DBP7JOB_DBRP11db_list_ctx
 _Z23db_get_job_volume_namesP3JCRP4B_DBjPPc
 _Z23db_get_num_pool_recordsP3JCRP4B_DB
 _Z24db_get_num_media_recordsP3JCRP4B_DB
index 945f86a9b6f3b6b731fd6a104952f37d3e6ffd20..a37bffdc9acbff418f416bfdf320b382103ff89d 100755 (executable)
@@ -10,10 +10,12 @@ echo "LIBRARY bacula_cats.dll"
 echo "EXPORTS"
 echo " "
 
-NM=../../../../../cross-tools/mingw32/mingw32/bin/nm
+TOPDIR=`(cd ../../..;pwd)`
+TOPDIR=${DEPKGS:-${TOPDIR}}
+NM=${TOPDIR}/cross-tools/mingw32/mingw32/bin/nm
 
 OBJS="sql.o sql_create.o sql_delete.o sql_find.o sql_get.o \
-      sql_list.o sql_update.o"
+      sql_list.o sql_update.o bvfs.o"
 
 #
 # The data could be automated too        
@@ -63,7 +65,7 @@ DATA="\
       uar_sel_jobid_temp" 
 
 
-cd cats_mysql
+cd obj32/cats_mysql
 for i in ${OBJS}; do \
    echo "; $i"; \
    ${NM} $i | grep "^[0-9a-f]* T _" | cut -c13-; \
index 4187cf65630f9657f3cf2d5883a7c51bc3396e61..8583d399a4025f66a0765a00b22fb74f6f017b5e 100644 (file)
@@ -509,12 +509,9 @@ _Z20get_jcr_by_full_namePc
 _Z20write_last_jobs_listiy
 _Z21unlock_last_jobs_listv
 _Z23get_jcr_by_partial_namePc
+_Z24get_next_jobid_from_listPPcPj
 _Z7new_jcriPFvP3JCRE
 _Z9lock_jobsv
-_ZN3JCR11set_JobTypeEi
-_ZN3JCR12set_JobLevelEi
-_ZN3JCR11set_JobTypeEi
-_ZN3JCR12set_JobLevelEi
 _ZN3JCR14get_ActionNameEb
 _ZN3JCR17get_OperationNameEv
 _ZN3JCR8JobReadsEv
index f69e5f8e6842c99d575b8fce883d279d5e5374eb..59ae8e72357eba7b11a7c75eaabafefa520dc622 100644 (file)
@@ -502,12 +502,9 @@ _Z20get_jcr_by_full_namePc
 _Z20write_last_jobs_listiy
 _Z21unlock_last_jobs_listv
 _Z23get_jcr_by_partial_namePc
+_Z24get_next_jobid_from_listPPcPj
 _Z7new_jcriPFvP3JCRE
 _Z9lock_jobsv
-_ZN3JCR11set_JobTypeEi
-_ZN3JCR12set_JobLevelEi
-_ZN3JCR11set_JobTypeEi
-_ZN3JCR12set_JobLevelEi
 _ZN3JCR14get_ActionNameEb
 _ZN3JCR17get_OperationNameEv
 _ZN3JCR8JobReadsEv
index d2517291f31fe7192e9f0d3f13f624ff1f50bc64..89d21cbcd2de6f36d42f623a02a571a003dc198a 100755 (executable)
@@ -6,12 +6,15 @@
 #  Kern Sibbald, June 2007
 #
 
-NM=../../../../cross-tools/mingw32/mingw32/bin/nm
+TOPDIR=`(cd ../../..;pwd)`
+TOPDIR=${DEPKGS:-${TOPDIR}}
+NM=${TOPDIR}/cross-tools/mingw32/mingw32/bin/nm
  
 echo "LIBRARY bacula.dll"
 echo "EXPORTS"
 echo " "
 
+cd obj32
 for i in *.o ; do \
    echo "; $i"; \
    ${NM} $i | grep "^[0-9a-f]* T _" | cut -c13- ; \
index 9a932f09b0653ccd6740c408cd132c1afcd55cbe..b9fb0f7cbe6067833345b6eb12c70ba1085a1903 100644 (file)
@@ -3,6 +3,7 @@
 General:
 
 30Aug09
+kes  Fix Win32/64 build
 kes  Fix bug #1355 Director crashes with double free in Accurate SQL query
 ebl  Prohibe copy and assignment in Bvfs.
 28Aug09