Edit src/lib/bnet_msg.c and replace:
extern char OK_msg[];
extern char TERM_msg[];
WITH:
static char OK_msg[] = "2000 OK\n";
static char TERM_msg[] = "2999 Terminate\n";
Next, I edited src/lib/Makefile.in and added winapi.c to the end of the "LIBSRCS =" section and winapi.o at the end of the "LIBOBJS =" section.
Next I ran make and it failed again. One thing I noticed is that now it created winapi.o
Next I edited src/console/Makefile
CONSSRCS = console.c console_conf.c authenticate.c conio.c
CONSOBJS = console.o console_conf.o authenticate.o conio.o
To:
CONSSRCS = console.c console_conf.c authenticate.c conio.c winapi.c
CONSOBJS = console.o console_conf.o authenticate.o conio.o winapi.o
Now running make returns the error:
/usr/local/bin/g++ -L../lib -L../cats -o bconsole console.o console_conf.o authenticate.o winapi.o conio.o \
-ltermcap -lbac -lm -lpthread -lintl \
ld: 0711-317 ERROR: Undefined symbol: win32_client
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make[1]: *** [bconsole] Error 1
I'm so close I can taste it...
On Thu, 2006-04-27 at 16:49 +0200, Heigl Florian - Munich-MR - external wrote:
Hi List(s), below is yet another person trying a bacula build for AIX; to my knowlegde noone has managed to build it in the last months. Suggestion: it would take me about two weeks to make a freshly installed RS/6000 accessible with compiler (I presume gcc) shell accessible via ssh. Would anyone step forward for a try of debugging the build errors that occur on AIX hosts when trying to build bacula? I have documented lots of them over time, but in the end I just don't understand enough of what they say to resolve them. From my experience the build also fails when all symbols are resolved, so I really it'd be best if some developer took a day's worth of time to look at it. As soon as it build's I could kind of 'freeze' the build host and keep a binary build updated for everyone else. Florian > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf > Of Jacob Hoopes > Sent: Wednesday, April 26, 2006 8:52 PM > To: bacula-users@lists.sourceforge.net > Subject: [Bacula-users] AIX 5.2 Compilation Problems > > Hello, I'm trying to compile a bacula CLIENT on AIX 5.2 and > it keeps failing. > 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 > ------------------------------------------------------- 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&kid0709&bid&3057&dat1642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users