[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#7876) LMDB compile issue on AIX 6.1
fkruchio@gmail.com wrote:
> Full_Name: Frank Kruchio
> Version: LMDB
> OS: AIX 6.1
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (203.97.151.51)
>
>
> Looking at cfengine 3.6 deployment on AIX and LMDB is a possible database to
> use.
> This is the error I receive when running make.
> Has anyone managed to compile lmdb on AIX ?
Use Gnumake.
>
> [root@p2aunx002]:/home/unixgrp/m014084/mdb/libraries/liblmdb # pwd
> /home/unixgrp/m014084/mdb/libraries/liblmdb
> [root@p2aunx002]:/home/unixgrp/m014084/mdb/libraries/liblmdb # make
> gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast
> -fPIC -c mdb.c
> mdb.c: In function 'mdb_cursor_put':
> mdb.c:6029: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> mdb.c:6029: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> mdb.c: In function 'mdb_node_shrink':
> mdb.c:6691: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> mdb.c:6691: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> mdb.c: In function 'mdb_xcursor_init1':
> mdb.c:6765: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> mdb.c:6765: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast
> -fPIC -c midl.c
> ar rs liblmdb.a mdb.o midl.o
> ar: creating an archive file liblmdb.a
> gcc -pthread -shared -o liblmdb.so mdb.o midl.o
> gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast
> -c mdb_stat.c
> gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast
> mdb_stat.c -o mdb_stat
> ld: 0711-317 ERROR: Undefined symbol: .mdb_env_create
> ld: 0711-317 ERROR: Undefined symbol: .mdb_env_set_maxdbs
> ld: 0711-317 ERROR: Undefined symbol: .mdb_env_open
> ld: 0711-317 ERROR: Undefined symbol: .mdb_reader_list
> ld: 0711-317 ERROR: Undefined symbol: .mdb_reader_check
> ld: 0711-317 ERROR: Undefined symbol: .mdb_txn_begin
> ld: 0711-317 ERROR: Undefined symbol: .mdb_cursor_open
> ld: 0711-317 ERROR: Undefined symbol: .mdb_stat
> ld: 0711-317 ERROR: Undefined symbol: .mdb_cursor_get
> ld: 0711-317 ERROR: Undefined symbol: .mdb_env_stat
> ld: 0711-317 ERROR: Undefined symbol: .mdb_env_info
> ld: 0711-317 ERROR: Undefined symbol: .mdb_strerror
> ld: 0711-317 ERROR: Undefined symbol: .mdb_env_close
> ld: 0711-317 ERROR: Undefined symbol: .mdb_cursor_close
> ld: 0711-317 ERROR: Undefined symbol: .mdb_dbi_open
> ld: 0711-317 ERROR: Undefined symbol: .mdb_dbi_close
> ld: 0711-317 ERROR: Undefined symbol: .mdb_txn_abort
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> collect2: ld returned 8 exit status
> make: The error code from the last command is 1.
>
>
> Stop.
>
>
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/