About eight months ago, I managed to accomplish this. However, it required some help and included needing to use a virtual machine of FC6 to build and compile the Simscan package, then uploading that to the FC8 box and installing it, due to an incompatibility with glibc and gcc between FC6 and FC8.

I can't take any credit for this, as it was Jake Vickers who was able to tell me what to do. To quote his email of 2009-04-04 07:08:53 AM EDT:

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.

This was followed then by:
Roxanne Sandesara wrote:
Jake --

I appreciate your help thus far. I at least know what is wrong, now.

I've tried to follow your advice and find the 'compat' package to fix this. Thus far, I haven't yet managed to find it. I'm wondering if I am not looking for the right things. Thus far, those I've tried have been:

compat-db i386 4.5.20-3.fc8 fedora 3.1 M compat-erlang i386 R10B-11.9.fc8 updates 31 M compat-expat1 i386 1.95.8-3 fedora 60 k compat-flex i386 2.5.4a-3.fc8 fedora 158 k compat-guichan05-devel i386 0.5.0-7.fc8 fedora 676 k compat-guile-16-devel i386 1.6.7-7.fc8 fedora 184 k compat-libgcc-296 i386 2.96-139 fedora 50 k compat-libosip2-devel i386 2.2.2-15.fc8 fedora 51 k compat-libstdc++-296 i386 2.96-139 fedora 91 k compat-libstdc++-33 i386 3.2.3-62 fedora 230 k compat-gcc-34-g77 i386 3.4.6-8 fedora 2.1 M compat-libf2c-34 i386 3.4.6-8 fedora 53 k

None of these has helped. At this point, in your opinion, would I be better off attempting to build the package on an FC6 VM and then porting it over? Or do you think the package I need is still out there, and I just need to be looking for different search terms?

I worked on a F8 machine for someone 2 weeks ago, and I couldn't remember what package I needed for that one either (I set up another F8 machine for someone a month or two back where I found the compat library - damn me for not making notes!). I ended up using one compiled on FC6 for the F8 machine without any adverse results. That'd be the route I went if I were in your shoes.

On Sep 29, 2008, at 03:23 PM, [EMAIL PROTECTED] wrote:

I have seen some people have been able to build the toaster on fedora Core
8. I realise it is not a supported distro but none the less it builds
"mostly" using --with=fdr60.
I have reached a point where the only package left to build is simscan but
I cant seem to get it working.

Has anyone built simscan on fc8? any tips ?

cat /mnt/qtp-sandbox/usr/src/qtp-upgrade/log/build-recent.log
Building simscan-toaster-1.3.1-1.3.6 ...
Installing /usr/src/qtp-upgrade/SRPMS/simscan- toaster-1.3.1-1.3.6.src.rpm
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.56134
+ 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=i686
-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=i686
-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.69990
+ 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=i686
-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=i686
-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=i686
-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.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'
+ 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'
+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux- gnu
--target=i686-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
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) none
checking whether the clamav user exists... yes
checking whether we can locate the clamdscan program... yes
checking whether we can locate the spamc program... yes
checking whether we can locate the qmail directory... yes
checking setting the work directory... done
checking setting the control directory... done
checking whether we can locate the qmail-queue program... yes
checking whether we can locate the ripmime program... yes
checking whether we can locate the spamassassin-path... yes
checking whether we can locate the clamav db path... yes
checking whether we can locate the sigtool binary... yes
checking enable the regex scanner... no
checking whether system has nproc ulimit... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

           Current settings
---------------------------------------
user                  = clamav
qmail directory       = /var/qmail
work directory        = /var/qmail/simscan
control directory     = /var/qmail/control
qmail queue program   = /var/qmail/bin/qmail-queue
clamdscan program     = /usr/bin/clamdscan
clamav scan           = ON
trophie scanning      = OFF
attachement scan      = ON
ripmime program       = /usr/bin/ripmime
custom smtp reject    = ON
drop message          = OFF
regex scanner         = OFF
quarantine processing = OFF
domain based checking = ON
add received header   = ON
spam scanning         = ON
spamc program         = /usr/bin/spamc
spamc arguments       =
spamc user            = OFF
authenticated users scanned = OFF
spam passthru         = OFF
spam hits             = 20
dspam scanning        = OFF

+ /usr/bin/make
/usr/bin/make  all-recursive
make[1]: Entering directory `/usr/src/redhat/BUILD/simscan-1.3.1'
Making all in cdb
make[2]: Entering directory `/usr/src/redhat/BUILD/simscan-1.3.1/ cdb' (
cat warn-auto.sh; \
        echo CC=\'`head -1 conf-cc`\'; \
        echo LD=\'`head -1 conf-ld`\'; \
        cat find-systype.sh; \
        ) | sh > systype
( cat warn-auto.sh; \
        echo 'main="$1"; shift'; \
        echo 'rm -f "$main"'; \
        echo 'ar cr "$main" ${1+"$@"}'; \
        case "`cat systype`" in \
        sunos-5.*) ;; \
        unix_sv*) ;; \
        irix64-*) ;; \
        irix-*) ;; \
        dgux-*) ;; \
        hp-ux-*) ;; \
        sco*) ;; \
        *) echo 'ranlib "$main"' ;; \
        esac \
        ) > makelib
chmod 755 makelib
( cat warn-auto.sh; \
        echo exec "`head -1 conf-cc`" '-c ${1+"$@"}' \
        ) > compile
chmod 755 compile
( cat warn-auto.sh; \
        echo 'main="$1"; shift'; \
        echo exec "`head -1 conf-ld`" \
        '-o "$main" "$main".o ${1+"$@"}' \
        ) > load
chmod 755 load
( ( ./compile tryulong32.c && ./load tryulong32 && \
        ./tryulong32 ) >/dev/null 2>&1 \
        && cat uint32.h2 || cat uint32.h1 ) > uint32.h
rm -f tryulong32.o tryulong32
./compile cdb.c
./compile cdb_hash.c
./compile cdb_make.c
./compile cdb_unpack.c
./compile cdb_seek.c
cdb_seek.c: In function 'cdb_seek':
cdb_seek.c:66: warning: incompatible implicit declaration of built-in
function 'printf'
cdb_seek.c:71: warning: incompatible implicit declaration of built-in
function 'printf'
cdb_seek.c:83: warning: incompatible implicit declaration of built-in
function 'printf'
cdb_seek.c:87: warning: incompatible implicit declaration of built-in
function 'printf'
cdb_seek.c:94: warning: incompatible implicit declaration of built-in
function 'printf'
cdb_seek.c:98: warning: incompatible implicit declaration of built-in
function 'printf'
cdb_seek.c:104: warning: incompatible implicit declaration of built-in
function 'printf'
./makelib cdb.a cdb.o cdb_hash.o cdb_make.o cdb_unpack.o cdb_seek.o
./compile strerr_sys.c
./compile buffer.c
./compile buffer_put.c
./compile buffer_2.c
./compile strerr_die.c
./compile buffer_get.c
./compile buffer_copy.c
./compile buffer_1.c
./compile buffer_0.c
./compile buffer_1s.c
./makelib buffer.a strerr_sys.o buffer.o buffer_put.o \
        buffer_2.o strerr_die.o buffer_get.o buffer_copy.o \
        buffer_1.o buffer_0.o buffer_1s.o
./compile error.c
./compile open_read.c
./compile open_trunc.c
./compile error_str.c
./compile seek_set.c
./compile seek_cur.c
./makelib unix.a error.o open_read.o open_trunc.o \
        error_str.o seek_set.o seek_cur.o
./compile byte_copy.c
./compile byte_cr.c
./compile str_len.c
./compile fmt_ulong.c
./compile uint32_unpack.c
./compile byte_diff.c
./compile uint32_pack.c
./compile scan_ulong.c
./makelib byte.a byte_copy.o byte_cr.o str_len.o \
        fmt_ulong.o uint32_unpack.o byte_diff.o uint32_pack.o \
        scan_ulong.o
./compile alloc.c
alloc.c:3: warning: conflicting types for built-in function 'malloc'
./makelib alloc.a alloc.o
make[2]: Leaving directory `/usr/src/redhat/BUILD/simscan-1.3.1/cdb'
make[2]: Entering directory `/usr/src/redhat/BUILD/simscan-1.3.1'
gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic
-fasynchronous-unwind-tables -Wall -c `test -f 'simscan.c' || echo
'./'`simscan.c
simscan.c: In function 'main':
simscan.c:802: warning: missing sentinel in function call
simscan.c:307: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
simscan.c:411: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
simscan.c:598: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
simscan.c:681: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
simscan.c:739: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
simscan.c: In function 'check_spam':
simscan.c:1376: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
simscan.c: In function 'check_remote_host':
simscan.c:2414: warning: pointer targets in passing argument 1 of
'strcasecmp' differ in signedness
simscan.c: In function 'per_domain_lookup':
simscan.c:1780: warning: 'val' may be used uninitialized in this function
gcc  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
-mtune=generic -fasynchronous-unwind-tables -Wall -o simscan simscan.o
cdb/cdb.a cdb/buffer.a cdb/unix.a cdb/byte.a cdb/alloc.a
gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic
-fasynchronous-unwind-tables -Wall -c `test -f 'simscanmk.c' || echo
'./'`simscanmk.c
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.69990 (%build)


RPM build errors:
   Bad exit status from /var/tmp/rpm-tmp.69990 (%build)


Any pointers would be appreaciated

Regards
Dean




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



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

Reply via email to