It is interesting because I just ran into the same problem cross compiling 
Bacula.  I suspect that it is because you are using an older compiler or 
doing a cross compile yourself.  I forget the details, but I fixed the 
win32_client problem as best I can remember by adding winapi.o to the files 
included in the libraray -- modify src/lib/Makefile.in,  The TERM_msg and 
OK_msg problem was solved by making them static -- in src/lib/bnet_msg.c

static char OK_msg[]   = "2000 OK\n";
static char TERM_msg[] = "2999 Terminate\n";

I might have had to remove some extern char OK_msg[]  somewhere too -- I 
forget.

This code is in the CVS, but it is version 1.39, and as has been pointed out 
SF is lagging *very* behind on the public cvs so if you want to see all the 
differences, you could download the CVS tar file that Dan creates.


On Wednesday 26 April 2006 23:26, Jacob Hoopes wrote:
> Hello, I'm trying to compile a bacula CLIENT on AIX 5.2 and it keeps
> failing.  I was hoping that you could help.
>
> gcc -v
> Reading specs
> from /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/specs
> Configured with: ../gcc-3.3.2/configure  :
> (reconfigured) ../gcc-3.3.2/configure --disable-nls :
> (reconfigured) ../gcc-3.3.2/configure --disable-nls
> Thread model: aix
> gcc version 3.3.2
>
> ./configure --enable-client-only
>
> Here is a copy of my config.out:
>   Host:                       powerpc-ibm-aix5.2.0.0 -- aix 2
>   Bacula version:             1.38.8 (14 April 2006)
>   Source code location:       .
>   Install binaries:           /sbin
>   Install config files:       /etc/bacula
>   Scripts directory:          /etc/bacula
>   Working directory:          /var/bacula/working
>   PID directory:              /var/run
>   Subsys directory:           /var/run/subsys
>   Man directory:              /usr/share/man
>   Data directory:             /usr/share
>   C Compiler:                 gcc 3.3.2
>   C++ Compiler:               /usr/local/bin/g++ 3.3.2
>   Compiler flags:              -g -O2 -Wall
>   Linker flags:
>   Libraries:                  -lpthread  -lintl
>   Statically Linked Tools:    no
>   Statically Linked FD:       no
>   Statically Linked SD:       no
>   Statically Linked DIR:      no
>   Statically Linked CONS:     no
>   Database type:              None
>   Database lib:
>
>   Job Output Email:           [EMAIL PROTECTED]
>   Traceback Email:            [EMAIL PROTECTED]
>   SMTP Host Address:          localhost
>
>   Director Port:              9101
>   File daemon Port:           9102
>   Storage daemon Port:        9103
>
>   Director User:
>   Director Group:
>   Storage Daemon User:
>   Storage DaemonGroup:
>   File Daemon User:
>   File Daemon Group:
>   SQL binaries Directory
>
>   Large file support:         no
>   Bacula conio support:       yes -ltermcap
>   readline support:           no
>   TCP Wrappers support:       no
>   TLS support:                no
>   ZLIB support:               yes
>   enable-smartalloc:          yes
>   enable-gnome:               no
>   enable-wx-console:          no
>   enable-tray-monitor:
>   client-only:                yes
>   build-dird:                 yes
>   build-stored:               yes
>   ACL support:                no
>   Python support:             no
>
> When I run a make it fails at:
> make[1]: Leaving directory
> `/home/live/revinetix/bacula-1.38.8/src/findlib'
> ==>Entering directory /u/live/revinetix/bacula-1.38.8/src/filed
> make[1]: Entering directory
> `/home/live/revinetix/bacula-1.38.8/src/filed'
> ==== Make of filed is good ====
>
> make[1]: Leaving directory
> `/home/live/revinetix/bacula-1.38.8/src/filed'
> ==>Entering directory /u/live/revinetix/bacula-1.38.8/src/console
> make[1]: Entering directory
> `/home/live/revinetix/bacula-1.38.8/src/console'
> /usr/local/bin/g++   -L../lib -L../cats -o bconsole console.o
> console_conf.o authenticate.o conio.o \
>        -ltermcap  -lbac -lm -lpthread  -lintl  \
>
> ld: 0711-317 ERROR: Undefined symbol: win32_client
> ld: 0711-317 ERROR: Undefined symbol: TERM_msg
> ld: 0711-317 ERROR: Undefined symbol: OK_msg
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
> make[1]: *** [bconsole] Error 1
> make[1]: Leaving directory
> `/home/live/revinetix/bacula-1.38.8/src/console'
>   ====== Error in /u/live/revinetix/bacula-1.38.8/src/console ======
>
> So how do I link to where it failed:
>
> ld: 0711-317 ERROR: Undefined symbol: win32_client
> ld: 0711-317 ERROR: Undefined symbol: TERM_msg
> ld: 0711-317 ERROR: Undefined symbol: OK_msg
>
> I also read the README.AIX file included in the tarball and it mentioned
> a bug in the "as" compiler, although it applied for an earlier version
> of gcc (gcc version 2.9-aix51-020209).  If this is the case, how do I
> patch it?
>
> Thanks in advance!
>
> Jake

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
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