Hello,

Thanks for the answer, i build it without errors. 
I have patched the Makefile by for my Solaris 10 with gcc 3.4.3 :
 - replacing "-pthread" by "-pthreads",
 - add "-lrt" to OPT parameter.

Regards,

Le 20/03/14, Howard Chu  <[email protected]> a écrit :
> "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*
> >
> >
> >
> 
> 
> -- 
>  -- Howard Chu
>  CTO, Symas Corp. http://www.symas.com
>  Director, Highland Sun http://highlandsun.com/hyc/
>  Chief Architect, OpenLDAP http://www.openldap.org/project/
> 
> 
> 
--

Frederic Poisson

Reply via email to