Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 9 Oct 2012 03:23:28 -0700 (PDT)
From: Micho Dumanov <>
Subject: Re: Compile ERROR 0711-317 ERROR: Undefined symbol: .flock under AIX-64 bit

Thank you very much. 
The option: -lbsd
in the  
in the line: LDFLAGS = -s -lbsd $(OMPFLAGS)WORK FINE on the AIX-64bit
The performance is a litle bit slower 512K c/sFor machine:Processor Type: PowerPC_POWER
Processor Implementation Mode: POWER 4
Processor Version: PV_4_3
Number Of Processors: 4
Processor Clock Speed: 2498 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 99-DXR8K
Memory Size: 5952 MB
Good Memory Size: 5952 MB
Platform Firmware level: MB246_060_021
Firmware Version: IBM,MB246_060_021

Is it OK.
Best RegardsMicho
--- On Mon, 10/8/12, Solar Designer <> wrote:

From: Solar Designer <>
Subject: Re: [john-users] Compile ERROR 0711-317 ERROR: Undefined symbol: .flock under AIX-64 bit
Date: Monday, October 8, 2012, 6:25 PM

Hi Micho,

Thank you for the problem report!

On Mon, Oct 08, 2012 at 03:05:08AM -0700, Micho Dumanov wrote:
> I try to compile john 1.7.9 under AIX-64bit with commands:
> make clean generic
> make clean aix-ppc32
> but it failed with errors: 
> make clean generic -> ERROR 0711-317 ERROR: Undefined symbol: .flock

Apparently, AIX has flock() in libbsd, so you need to add -lbsd to the
LDFLAGS line in the Makefile.  Please try that.

(JtR's "make generic" currently detects the presence of flock() and some
other not-perfectly-portable functions in the header files and tries to
use them if so, but unfortunately it does not know whether any -lXXX
options may need to be added as well.)

> make clean aix-ppc32 -> /usr/bin/sh: cc:  not found.

This means that you don't have IBM's xlC compiler installed.  You may
either use "make generic" with gcc and the LDFLAGS correction as
discussed above, or you may install xlC and use aix-ppc32 then (but this
make target will be suboptimal on your 64-bit system).

Either way, the speed will be somewhat slow as compared to x86 systems.
Ideally, we'd need to add a proper make target for AIX on recent POWER
processors with VMX (IBM's name for what we're more used to be calling
AltiVec).  This is not a lot of work, but it'd take someone willing and
capable of doing it and having access to a proper system.  The gcc
compile farm includes a suitable machine, and maybe we should apply for
access to that, but it runs Linux rather than AIX:

name   port disk   CPU           Notes
gcc110      2TB    4x16x3.55 GHz IBM POWER7 / 64 GB RAM / IBM Power 730 Express server / Fedora ppc64

"If you are working on a piece of free software (GCC or any other GPL,
BSD, MIT, ...) and need ssh access to the farm for compilation, debug
and test on various architectures you may apply for a GCC Compile Farm
account." - it sounds like our project is eligible.


P.S. Thank you for attaching the build logs.  Unfortunately, it appears
that you were logging stdout only, not stderr.  If you post more build
logs, please include both stdout and stderr (add "2>&1").

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.