Hello,
I'm trying to build mdb tools (mdb_stat and mdb_copy inside libraries/liblmdb directory) on a Solaris 10 SPARC operating system with OpenLDAP 2.4.39.
Is there some requirements for building the tools on this OS because i have a error during build ?
Here is my result (while i do not set any specific gcc flags) : # make ... gcc -pthreads -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast mdb_stat.o liblmdb.a -o mdb_stat Undefined first referenced symbol in file fdatasync liblmdb.a(mdb.o) ld: fatal: Symbol referencing errors. No output written to mdb_stat collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `mdb_stat' #
Notice that i use a gcc 3.4.3 and gcc option "-pthread" do not exist for this gcc release, i had to replace it by "-pthreads". I try to read mdb.c for any specific options but i don't find anything...
Notice also that i succeed to build OpenLDAP 2.4.39 with my Solaris 10 environment.
Thanks, --
Frederic Poisson
"POISSON Frédéric" wrote:
Hello,
I'm trying to build mdb tools (mdb_stat and mdb_copy inside libraries/liblmdb directory) on a Solaris 10 SPARC operating system with OpenLDAP 2.4.39.
Is there some requirements for building the tools on this OS because i have a error during build ?
Here is my result (while i do not set any specific gcc flags) : # make ... gcc -pthreads -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast mdb_stat.o liblmdb.a -o mdb_stat Undefined first referenced symbol in file fdatasync liblmdb.a(mdb.o) ld: fatal: Symbol referencing errors. No output written to mdb_stat collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `mdb_stat' #
Read the Solaris manpage for fdatasync.
The requirement for building on any given OS is that you know your own OS.
Notice that i use a gcc 3.4.3 and gcc option "-pthread" do not exist for this gcc release, i had to replace it by "-pthreads". I try to read mdb.c for any specific options but i don't find anything...
Notice also that i succeed to build OpenLDAP 2.4.39 with my Solaris 10 environment.
Thanks,
*Frederic Poisson*
Hi,
On Thu, 20 Mar 2014, Howard Chu wrote:
"POISSON Frédéric" wrote:
Hello,
I'm trying to build mdb tools (mdb_stat and mdb_copy inside libraries/liblmdb directory) on a Solaris 10 SPARC operating system with OpenLDAP 2.4.39.
Is there some requirements for building the tools on this OS because i have a error during build ?
can we have these connected to the default build please.
I patch libraries/Makefile.in in my rpm to get these tools into my build. ;)
Greetings Christian
On Thu, 20 Mar 2014, Christian Kratzer wrote:
can we have these connected to the default build please.
I patch libraries/Makefile.in in my rpm to get these tools into my build. ;)
If you have a patch, submit it to the ITS?
(I've always felt that just setting an environment variable is a totally reasonable part of a build process, but there's something to be said for least surprise...)
Christian Kratzer wrote:
On Thu, 20 Mar 2014, Howard Chu wrote:
"POISSON Frédéric" wrote:
Hello,
I'm trying to build mdb tools (mdb_stat and mdb_copy inside libraries/liblmdb directory) on a Solaris 10 SPARC operating system with OpenLDAP 2.4.39.
Is there some requirements for building the tools on this OS because i have a error during build ?
can we have these connected to the default build please.
+1
Ciao, Michael.
Michael Ströder wrote:
Christian Kratzer wrote:
On Thu, 20 Mar 2014, Howard Chu wrote:
"POISSON Frédéric" wrote:
Hello,
I'm trying to build mdb tools (mdb_stat and mdb_copy inside libraries/liblmdb directory) on a Solaris 10 SPARC operating system with OpenLDAP 2.4.39.
Is there some requirements for building the tools on this OS because i have a error during build ?
can we have these connected to the default build please.
It's open source. Learn to edit the Makefile yourself if this matters to you. Or learn to type "make" twice. It's not that hard. In the meantime, it saves me time as a developer for things to work the way they currently do.
If you're getting software from a distro they've already done this.
+1
Ciao, Michael.
openldap-technical@openldap.org