Re: [qmailtoaster] Build Error: Simscan

2008-04-04 Thread Jake Vickers

Roxanne Sandesara wrote:
I'm looking for anyone who might be able to help me puzzle out the 
cause and correction for a build error I'm getting with simscan. Every 
other package in the whole Toaster install came out wonderfully, but 
this.



What follows is a script taken during an attempt to build the package, 
and then a cat of the tmp file from the build.



In function 'open',
inlined from 'make_cdb' at simscanmk.c:379:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' 
declared with attribute error: open with O_CREAT in second argument 
needs 3 arguments

make[2]: *** [simscanmk.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/simscan-1.3.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/simscan-1.3.1'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.79697 (%build)




RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.79697 (%build)
[EMAIL PROTECTED]:/usr/src/redhat/[EMAIL PROTECTED] SRPMS]# cat 
/var/tmp/rpm-tmp.79697

#!/bin/sh



You're building for F8 using FC6 flags, right? F8 uses a new glibc and 
gcc, and specifically they require 3 sets for the open command:


int open(const char *pathname, int flags, mode_t mode);

(mode_t mode is the new set required). There is a compat package out 
there that will allow you to build the older packages like this, but I 
don't remember what it is off the top of my head (something like 
compat-gcc34 or some-such). Google around for it, or set up FC6 in 
VMWare and build it there and move it to your F8 machine. You could also 
root around in the source code and bring it up to date for your version 
of gcc and glibc.
Since development on the 1.3 branch of QMT has been frozen by Erik I 
doubt there'll be a patch written to allow it to build on the newer 
distros. This shouldn't be a problem once the 1.4 branch is released.



-
QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[qmailtoaster] Build Error: Simscan

2008-04-03 Thread Roxanne Sandesara
I'm looking for anyone who might be able to help me puzzle out the  
cause and correction for a build error I'm getting with simscan.  
Every other package in the whole Toaster install came out  
wonderfully, but this.



What follows is a script taken during an attempt to build the  
package, and then a cat of the tmp file from the build.



rpmbuild --rebuild --with fdr60 /usr/src/redhat/SRPMS/simscan - 
toaster*.src.rpm

Installing /usr/src/redhat/SRPMS/simscan-toaster-1.3.1-1.3.6.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.95461
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf simscan-1.3.1
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/simscan-1.3.1.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd simscan-1.3.1
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (simscan-1.3.x-clamav.patch.bz2):'
Patch #0 (simscan-1.3.x-clamav.patch.bz2):
+ /usr/bin/bzip2 -d
+ patch -p0 -s
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ '[' -f /var/tmp/simscan-1.3.1-gcc ']'
+ rm -f /var/tmp/simscan-1.3.1-gcc
+ echo gcc
+ '[' -f /var/tmp/simscan-1.3.1-show_flags ']'
+ cat
+ chmod u+x /var/tmp/simscan-1.3.1-show_flags
+ /var/tmp/simscan-1.3.1-show_flags




 RPM RELEASE: simscan- 
toaster-1.3.1-1.3.6 

 OS TYPE IS : Fedora Core 6 Linux 
 BUILD DATE : Sat Apr 14 2007 
 CCFLAGS: -O2 -g -pipe -Wall -Wp,- 
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer- 
size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables 
 LDFLAGS: -O2 -g -pipe -Wall -Wp,- 
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer- 
size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables 





+ '[' -f /var/tmp/simscan-1.3.1-show_flags ']'
+ rm -f /var/tmp/simscan-1.3.1-show_flags
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.79697
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd simscan-1.3.1
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - 
fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 - 
mtune=generic -fasynchronous-unwind-tables'

+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - 
fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 - 
mtune=generic -fasynchronous-unwind-tables'

+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - 
fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 - 
mtune=generic -fasynchronous-unwind-tables'

+ export FFLAGS
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /bin/rm -f ./config.guess
++ basename ./config.guess
+ /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess
`/usr/lib/rpm/redhat/config.guess' - `./config.guess'
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /bin/rm -f ./config.sub
++ basename ./config.sub
+ /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub
`/usr/lib/rpm/redhat/config.sub' - `./config.sub'
+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux- 
gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr -- 
exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/ 
etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib  
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/ 
com --mandir=/usr/share/man --infodir=/usr/share/info --enable- 
user=clamav --enable-attach --enable-ripmime=/usr/bin/ripmime -- 
enable-per-domain --enable-spam --enable-spam-hits=20 --enable- 
received --enable-clamavdb-path=/usr/share/clamav --enable-custom- 
smtp-reject

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for style of include used by make... GNU
checking for i686-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... none
checking for strsep... yes
checking for i686-redhat-linux-gnu-gcc... gcc