Re: build c-sdk on FreeBSD-7.2

kyanh <[email protected]> Thu, 21 May 2009 17:54:47 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.directory
Organization http://groups.google.com
Message-ID <[email protected]>
On 20 Tháng Năm, 22:49, Anton Bobrov <[email protected]> wrote:
> this might be due tohttp://www.freebsd.org/doc/en/books/porters-handbook/dads-pthread.html
>
> you might wanna try removing -pthread from EXTRA_LIBS line of
> ldap/libraries/libldap/Makefile.in, see if that helps or not.
>

Thank you, Anton.

I temporarily build `mozldap` with another configure and that error
disappears though there are still troubles with linking libraries in
`ldap/clients/tools`. Some `Makefile.in`s miss configuration for
FreeBSD system and I have to patch. It's too early to say about that
but if anyone feels interested I will provide one.

I hope that I can comeback to this topic soon.

Regards,

> kyanh wrote:
> > Dear all,
>
> > I try to build Fedora Directory Server on FreeBSD -7.2. Now I am
> > building `mozldap` . The `ld` prorgram fails with option `-pthread`:
>
> > <pre>
> > # ./configure --enable-clu --with-sasl=/usr/local --with-svrcore=/usr/
> > local
>
> > ....
> > checking whether gcc accepts -pthread... yes
> > creating ./config.status
> > .....
>
> > # gmake
> > /usr/bin/ld: unrecognized option '-pthread'
> > /usr/bin/ld: use the --help option for usage information
> > gmake[3]: *** [libprldap60.so] Error 1
> > </pre>
>
> > How can I get rid of this error?