texinfo
bison
flex
+ python
+ unzip
+ tar
and possibly other packages.
a function name has been added, changed, or an argument modified,
simply do the following:
- cd .../bacula/src/win32/dll
+ cd .../bacula/src/win32/lib
make (to build the .o files, note the link will fail)
- ./make_def >bacula.def
+ ./make_def >bacula32.def # or >bacula64.def
This should rebuild the bacula.def file, but it uses relative paths
and assumes you have the directory structure noted above. If you
top of the make_def file to use an absolute path to the correct
directory.
-===== manual changing of bacula.def no longer necessary =====
+===== manual changing of bacula32.def or bacula64.def no longer necessary =====
If you want to do it manually, please see below:
Exporting a function requires a bit more work. You must determine the
C++ mangled name of the new function.
- strings .../bacula/src/win32/dll/<file>.o | grep <symbol>
+ strings .../bacula/src/win32/lib/<file>.o | grep <symbol>
Note, strings often will not show the desired symbol. In that case,
use:
- nm .../bacula/src/win32/dll/<file>.o
+ nm .../bacula/src/win32/lib/<file>.o
Replace <file> with the base part of the name of the source code file
which contains the new function. Replace <symbol> with the name of
the new function. Remove the leading underscore and place the result
in the file
- .../bacula/src/win32/dll/bacula.def
-=== end manual changing of bacula.def ==========
+ .../bacula/src/win32/lib/bacula32.def
+=== end manual changing of bacula32.def or bacula64.def ==========
If you add a new file, you will need to specify its name in
- .../bacula/src/win32/dll/Makefile
+ .../bacula/src/win32/lib/Makefile
and
.../bacula/src/win32/libbac/Makefile
Note, strings often will not show the desired symbol. In that case,
use:
- nm .../bacula/src/win32/dll/<file>.o
+ nm .../bacula/src/win32/lib/<file>.o
Replace <file> with the base part of the name of the source code file
which contains the new function. Replace <symbol> with the name of
Makefile.template is a template for creating new Makefiles, if you are
creating a new directory, copy Makefile.template to Makefile in that
directory and edit to suit.
-