Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Compiling pwsafe 0.2.0 OSX 10.4.11 ppc

2011-07-27
2013-05-02
  • Michael Cook
    Michael Cook
    2011-07-27

    Compiled pwsafe 0.2.0 OSX 10.4.11 ppc as follows.

    Xcode is 2.5
    g++ 4.0.1
    readline 4.3 revision 1029 (through Fink)

    1) export LDFLAGS="-flat_namespace -undefined suppress" as per INSTALL notes for Tiger.

    2) ./configure fails with ..

    pwsafe.cpp: In function 'secstring getpw(const char*)':
    pwsafe.cpp:1407: error: invalid conversion from 'int (*)()' to 'int (*)(const char*, int)'
    pwsafe.cpp: In function 'secstring gettxt(const char*, const secstring&)':
    pwsafe.cpp:1433: error: invalid conversion from 'int (*)()' to 'int (*)(const char*, int)'
    make: ***  Error 1
    g++ -DHAVE_CONFIG_H -I. -I. -I.   -lncurses  -I/usr/X11R6/include  -L/usr/X11R6/lib  -g -O2 -c pwsafe.cpp
    pwsafe.cpp: In function 'secstring getpw(const char*)':
    pwsafe.cpp:1407: error: invalid conversion from 'int (*)()' to 'int (*)(const char*, int)'
    pwsafe.cpp: In function 'secstring gettxt(const char*, const secstring&)':
    pwsafe.cpp:1433: error: invalid conversion from 'int (*)()' to 'int (*)(const char*, int)'
    make: ***  Error 1

    3) ./configure -without-readline ;make .. works (a lucky guess based on INSTALL comments).

    4) make check .. fails 2 of 4 tests but pwsafe still seems usable for most operations .. still testing ..

    PASS: test/create
    Copying testv2.dat to /tmp/edit_test.dat7623: OK
    testing removing an entry that does not exist from /tmp/edit_test.dat7623: OK
    testing editing 'testing' entry in /tmp/edit_test.dat7623: FAILED!
    pwsafe is NOT WORKING PROPERLY. It is not correctly editing testing entry in /tmp/edit_test.dat7623 (passphrase: abc).
    Here is the cmdline:
    ./pwsafe -f /tmp/edit_test.dat7623 -edit testing
    Here is the output:
    Enter passphrase for /tmp/edit_test.dat7623:
    name:  group:  username:  change password ?  /tmp/edit_test.dat7623 unchanged
    FAIL: test/edit
    creating a new db /tmp/merge_test.dat7638: OK
    merging testv2.dat into /tmp/merge_test.dat7638: OK
    re-merging testv2.dat into /tmp/merge_test.dat7638 another time: OK
    merging test.dat into /tmp/merge_test.dat7638: FAILED!
    Unable to merge test.dat into /tmp/merge_test.dat7638
    Here is the output:
    Enter passphrase for /tmp/merge_test.dat7638:
    Entry testing differs (uuid, login). Overwrite ?
    /tmp/merge_test.dat7638 unchanged
    FAIL: test/merge
    ===================
    2 of 4 tests failed
    ===================
    make: ***  Error 1
    make: ***  Error 2

    Have a nice day.

     
  • Is it possible that this is the bug fixed in patch #3259514 in the tracker? The author hasn't applied that patch yet, but see if it helps.