Re: build c-sdk on FreeBSD-7.2
kyanh <[email protected]> Thu, 21 May 2009 21:40:46 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <1e5f73ad-e51a-46d3-813a-7a1099d35311@d19g2000prh.googlegroups.com> |
On May 20, 10:49 pm, 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. > I use `nspr-threads` to get rid of this error /===================================================== ./configure \ --enable-clu --with-sasl=/usr/local \ --with-svrcore=/usr/local/ \ --with-nspr-threads \ --with-nspr-lib=/usr/local/lib \ --with-nspr-inc=/usr/local/include/nspr/ \ --with-nss-lib=/usr/local/lib/nss \ --with-nss-inc=/usr/local/include/nss/nss/ \===================================================== I need some a patch as below. I don't experience GNU compilers much so I tried some various methods to get the building process to work. Unfortunately all ldap client tools are corrupted: /===================================================== :: execute ../../dist/bin/ldapcmp: Bus error (core dumped) :: execute ../../dist/bin/ldapcompare: Segmentation fault (core dumped) :: execute ../../dist/bin/ldapdelete: Segmentation fault (core dumped) :: execute ../../dist/bin/ldapmodify: Bus error (core dumped) :: execute ../../dist/bin/ldappasswd: Segmentation fault (core dumped) :: execute ../../dist/bin/ldapsearch: Bus error (core dumped) \===================================================== The patch contents: /===================================================== diff -r origin/mozldap-6.0.6/mozilla/directory/c-sdk/Makefile.in mozldap-6.0.6/mozilla/directory/c-sdk/Makefile.in 37a38,39 > CONFIGURE_ENV= LD="${CC}" > diff -r origin/mozldap-6.0.6/mozilla/directory/c-sdk/config/FreeBSD.mk mozldap-6.0.6/mozilla/directory/c-sdk/config/FreeBSD.mk 43a44 > LD = gcc diff -r origin/mozldap-6.0.6/mozilla/directory/c-sdk/configure.in mozldap-6.0.6/mozilla/directory/c-sdk/configure.in 980a981 > 1245a1247 > LD='$(CC)' diff -r origin/mozldap-6.0.6/mozilla/directory/c-sdk/ldap/clients/ tools/Makefile.in mozldap-6.0.6/mozilla/directory/c-sdk/ldap/clients/ tools/Makefile.in 213a214,219 > ifeq ($(OS_ARCH), FreeBSD) > CC_FOR_LINK=/usr/bin/ld -Bshareable > # CC_FOR_LINK=$(CCC) > PLATFORMLIBS=-liconv -l$(LBER_LIBNAME) > endif > \===================================================== Any idea?