Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 30 Aug 2005 21:51:57 -0400
From: Jean-Francois Leblond <jfleblond@...eotron.ca>
To: john-users@...ts.openwall.com
Subject: Problems compiling John on AIX 4.3.3

Hi,

Has anyone been successfull in compiling John under AIX 4.3.3 ?

I ran into several problems.

Here's my first one:

# make aix-ppc-cc
        ln -sf ppc.h arch.h
        make ../run/john ../run/unshadow ../run/unafs ../run/unique
JOHN_OBJS="DES_bs.o DES_bs_b.o DES_fmt.o DES_std.o  BSDI_fmt.o  MD5_fmt.o
MD5_std.o  BF_fmt.o BF_std.o  AFS_fmt.o  LM_fmt.o  batch.o bench.o charset.o
common.o compiler.o config.o cracker.o  external.o formats.o getopt.o idle.o
inc.o john.o list.o loader.o  logger.o math.o memory.o misc.o options.o
params.o path.o recovery.o  rpp.o rules.o signals.o single.o status.o tty.o
wordlist.o  unshadow.o  unafs.o  unique.o"  CPP=cc CC=cc AS=cc LD=cc
CFLAGS="-c -qunroll -qarch=ppc -qtune=601 -qchars=signed"
 LDFLAGS="-s -lbsd"  OPT_NORMAL="-O2"  OPT_INLINE="-O3 -Q=99 -w"
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 DES_bs.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        sed "s/unsigned long/ARCH_WORD/" nonstd.c > DES_bs_s.c
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O3 -Q=99 -w
DES_bs_b.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 DES_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 DES_std.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
    1500-030: (I) INFORMATION: DES_std_set_key: Additional optimization may
be attained by recompiling and specifying MAXMEM option with a value greater
than 2048.
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 BSDI_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 MD5_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 MD5_std.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
    1500-030: (I) INFORMATION: MD5_std_get_binary: Additional optimization
may be attained by recompiling and specifying MAXMEM option with a value
greater than 2048.
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 BF_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 BF_std.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 AFS_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 LM_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 batch.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
"math.h", line 15.3: 1506-334 (S) Identifier int64 has already been defined
on line 629 of "/usr/include/sys/inttypes.h".
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.


Then I changed the following in math.h:

# diff math.h.new math.h.orig
13,26c13,15
< /*
<  *typedef struct {
<  *    unsigned int lo, hi;
<  *} int64;
<  */
< #if defined(_H_INTTYPES) && defined(_ALL_SOURCE)
<
< #define _TIFF_DATA_TYPEDEFS_
< typedef unsigned char uint8;
< typedef unsigned short uint16;
< typedef unsigned int uint32;
<
< #endif
<
---
> typedef struct {
>       unsigned int lo, hi;
> } int64;
#

I'm doubting this modification that I found on the web.

I'm having the following error now:

# make aix-ppc-cc
        ln -sf ppc.h arch.h
        make ../run/john ../run/unshadow ../run/unafs ../run/unique
JOHN_OBJS="DES_bs.o DES_bs_b.o DES_fmt.o DES_std.o  BSDI_fmt.o  MD5_fmt.o
MD5_std.o  BF_fmt.o BF_std.o  AFS_fmt.o  LM_fmt.o  batch.o bench.o charset.o
common.o compiler.o config.o cracker.o  external.o formats.o getopt.o idle.o
inc.o john.o list.o loader.o  logger.o math.o memory.o misc.o options.o
params.o path.o recovery.o  rpp.o rules.o signals.o single.o status.o tty.o
wordlist.o  unshadow.o  unafs.o  unique.o"  CPP=cc CC=cc AS=cc LD=cc
CFLAGS="-c -qunroll -qarch=ppc -qtune=601 -qchars=signed"
 LDFLAGS="-s -lbsd"  OPT_NORMAL="-O2"  OPT_INLINE="-O3 -Q=99 -w"
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 DES_bs.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        sed "s/unsigned long/ARCH_WORD/" nonstd.c > DES_bs_s.c
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O3 -Q=99 -w
DES_bs_b.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 DES_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 DES_std.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
    1500-030: (I) INFORMATION: DES_std_set_key: Additional optimization may
be attained by recompiling and specifying MAXMEM option with a value greater
than 2048.
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 BSDI_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 MD5_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 MD5_std.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
    1500-030: (I) INFORMATION: MD5_std_get_binary: Additional optimization
may be attained by recompiling and specifying MAXMEM option with a value
greater than 2048.
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 BF_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 BF_std.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 AFS_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 LM_fmt.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 batch.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 bench.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
        cc -c -qunroll -qarch=ppc -qtune=601 -qchars=signed -O2 charset.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users.  Compilation will proceed shortly.
1506-155 (W) Option unroll requires suboption(s).
"charset.c", line 184.63: 1506-021 (S) Expecting struct or union.
"charset.c", line 224.58: 1506-021 (S) Expecting struct or union.
"charset.c", line 233.17: 1506-021 (S) Expecting struct or union.
"charset.c", line 233.26: 1506-021 (S) Expecting struct or union.
"charset.c", line 239.29: 1506-122 (S) Expecting pointer to struct or union.
"charset.c", line 239.41: 1506-021 (S) Expecting struct or union.
"charset.c", line 240.30: 1506-122 (S) Expecting pointer to struct or union.
"charset.c", line 240.43: 1506-021 (S) Expecting struct or union.
"charset.c", line 240.53: 1506-122 (S) Expecting pointer to struct or union.
"charset.c", line 240.65: 1506-021 (S) Expecting struct or union.
"charset.c", line 248.21: 1506-021 (S) Expecting struct or union.
"charset.c", line 248.45: 1506-021 (S) Expecting struct or union.
"charset.c", line 251.17: 1506-122 (S) Expecting pointer to struct or union.
"charset.c", line 251.29: 1506-122 (S) Expecting pointer to struct or union.
make: 1254-004 The error code from the last command is 1.


Compiling in GCC gives the same errors.

I'm a newbie in C.

Your help would be greatly appreciated.



Thanks

JF Leblond


Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ