Adding to my previous email (sorry for he topposting): This error seens to occur when 'configure' runs in the prep phase of rpmbuild. When I run 'configure' manually in the rpm/BUILD/courier.... tree, all seems OK. No error when going into 'afx'.
(SIGH...) What a cumbersome job to build these courier rpms... Is it really all needed and worth the effort? I'm close to the point to delete the whole lot from my computer and continue with Postfix/courier-auth/courier-IMAP. Egbert Jan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Egbert Jan Sent: Thursday, December 22, 2005 1:51 PM To: 'courier Users List' Subject: RE: [courier-users] Courier 20051212 Jeff wrote: >Egbert Jan wrote: >> I'm still trying to build the RPMs for Courier (latest snapshot) but >> cannot find 'netpbm-progs'. I know it is needed for the fax stuff >> which I don't want anyway. How do I tell rpmbuild to to use >> ''without-fax'??? Should I do rpmbuild in several steps (-ta, then use >> b... ) with editing config or spec files in between the steps? > >Either build the rpm using the "--without fax" switch or edit the spec file, comment out the lines at the top that say > >%{?_without_fax: %define with_fax 0} >%{!?_without_fax: %define with_fax 1} > >and add a line that says > >%define with_fax 0 > >Then rebuild the rpms. > >Jeff Jansen Thanks Jeff. Did that and now start doing something but errors-out while stepping into the 'afx' directory. I used 'rpmbuild -bp courier.spec' (tarball in rpm/SOURCES, spec file in rpm/SPECS). ... configure: configuring in afx configure: running /bin/sh './configure' --prefix=/usr/lib/courier '--host=i586-mandriva-linux-gnu' '--build=i586-mandriva-linux-gnu' '--target=i586-mandriva-linux-gnu' '--program-prefix=' '--prefix=/usr/lib/courier' '--exec-prefix=/usr/lib/courier' '--bindir=/usr/lib/courier/bin' '--sbindir=/usr/lib/courier/sbin' '--sysconfdir=/etc/courier' '--datadir=/usr/lib/courier/share' '--includedir=/usr/lib/courier/include' '--libdir=/usr/lib/courier/lib' '--libexecdir=/usr/lib/courier/lib' '--localstatedir=/var/spool/courier' '--sharedstatedir=/usr/lib/courier/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=courier.config.cache' '--enable-unicode=iso-8859-1,utf-8' 'CFLAGS=-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=pentiumpro' 'CXXFLAGS=-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=pentiumpro' 'FFLAGS=-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=pentiumpro' 'build_alias=i586-mandriva-linux-gnu' 'host_alias=i586-mandriva-linux-gnu' 'target_alias=i586-mandriva-linux-gnu' --with-makedatprog=/usr/lib/courier/lib/courier/makedatprog --with-piddir=/var/spool/courier/tmp --with-package=courier --with-version=0.52.1.20051212 --with-courierlogger=/usr/sbin/courierlogger --with-db=gdbm --with-mailuser=daemon --with-mailgroup=daemon --with-mailuid=2 --with-mailgid=2 --enable-trusted-groups='daemon' --with-formdata --enable-utf7-folder-encoding --with-webadmindir=/usr/lib/courier/share/courierwebadmin --cache-file=../courier.config.cache --srcdir=. configure: loading cache ../courier.config.cache configure: error: `CFLAGS' has changed since the previous run: configure: former value: -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=pentiumpro configure: current value: -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=pentiumpro configure: error: `CXXFLAGS' has changed since the previous run: configure: former value: -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=pentiumpro configure: current value: -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=pentiumpro configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm ../courier.config.cache' and start over configure: error: /bin/sh './configure' failed for afx error: Bad exit status from /var/tmp/rpm-tmp.94293 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.94293 (%prep) WHY? The CFLAGS and CXXFLAGS are the same except for the exta spaces around the 'O2'. Why mtun=pentiumpro? I would like to control the --with-mailuser=daemon --with-mailgroup=daemon --with-mailuid=2 --with-mailgid=2 --enable-trusted-groups='daemon' options myself. Where should I do that? TIA Egbert Jan ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
