You are not logged in.

#1 2006-09-19 10:34:05

sacarde
Member
Registered: 2006-07-14
Posts: 389

error during fedora-directory-server AUR installation

I have try to install in arch-0.7.2 updated,
fedora-directory-server AUR

but when compiling I have error:


cc1plus: error: unrecognized command line option "-fwritable-strings"
gmake[2]: *** [../../built/Linux-domestic-optimize-normal-slapd/lib/base/shexp.o] Error 1
gmake[2]: Leaving directory `/home/sacarde/PKG/fedora-ds/src/ldapserver/lib/base'
gmake[1]: *** [httpdLib] Error 2
gmake[1]: Leaving directory `/home/sacarde/PKG/fedora-ds/src/ldapserver'
gmake: *** [buildDirectory] Error 2
cp: cannot stat `built/release/slapd/Linux-domestic-optimize-normal-slapd/*': No such file or directory
==> ERROR: Build Failed. Aborting...


can you help me ?


thankyou

Offline

#2 2006-09-19 15:02:06

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: error during fedora-directory-server AUR installation

remove the -fwritable-strings options from the Makefile.
Try adding:
sed -i 's/-fwritable-strings//' ldapserver/lib/base/Makefile
before the make line.

Offline

#3 2006-09-19 16:20:52

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: error during fedora-directory-server AUR installation

I try as suggest

I insert in PKGBUILD

in section about ldapserver (I am not sure ... before and after "cd ldapserver")

...
...
  ###try using arch package for net-snmp
  # Get net-snmp from sourceforge, this is just one mirror
  cd $startdir/src/
  cd net-snmp-5.2.1
  mkdir built
  sed -i "s|read tmpinput|#read tmpinput|" configure
  CFLAGS="-O2" ./configure --with-default-snmp-version=3 --with-sys-contact="" --with-sys-location="" --with-logfile="" --with-persistent-directory="/var/net-snmp" --prefix="$startdir/src/net-snmp-5.2.1/built" --disable-applications --disable-manuals --disable-scripts --disable-mibs
  make
  make install

  cd $startdir/src/
  export CVSROOT=:pserver:anonymous@cvs.fedora.redhat.com:/cvs/dirsec
  cvs co -r FedoraDS71_20050526_RTC ldapserver
  sed -i 's/-fwritable-strings//' ldapserver/lib/base/Makefile
  cd ldapserver
  ##blarney fix..it really wants gmake..
  ln -s `which make` gmake
  export PATH=$PATH:`pwd`
  sed -i "s#$(shell cat /etc/redhat-release)#"ArchLinux"#" nsconfig.mk nsdefs.mk
  sed -i "s#GSSAPI_LIBS=-L/usr/kerberos/lib -lgssapi_krb5#GSSAPI_LIBS=-L/usr/lib -lgssapi#" components.mk
  sed -i 's/-fwritable-strings//' ldapserver/lib/base/Makefile
  gmake USE_PERL_FROM_PATH=1 BUILD_DEBUG=optimize ${_BLD_64}
  mkdir -p $startdir/pkg/opt/fedora-ds
  cp -R built/release/slapd/Linux-domestic-optimize-normal-slapd/* $startdir/pkg/opt/fedora-ds

}

but error is the same


cc1plus: error: unrecognized command line option "-fwritable-strings"


where I wrong ?

Offline

#4 2006-09-19 17:38:21

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: error during fedora-directory-server AUR installation

I try to remove this string from other 2 files from subdirectory ldapserver:

./nsconfig.mk

./ldap/nsldap.mk


now build finish OK

but

/opt/fedora-ds/bin/slapd/server/ns-slapd

I have error

/opt/fedora-ds/bin/slapd/server/ns-slapd: error while loading shared libraries: libssldap50.so: cannot open shared object file: No such file or directory

Offline

Board footer

Powered by FluxBB