So it is working or not ?

You have:

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




Please see about


To do this, go ahead and run the rpmbuild -- it'll error out tho...
Then go to /usr/src/redhat/BUILD/simscan-1.3.1 (I think that's still our current version) and edit simscanmk.c There are 2 lines that need to be changed -- both the same way. Lines 133 & 379 (I think). In each case, you need to add a value to the end of the open function call.
My lines look like:
if ( (fdout = open(CdbTmpFile, O_CREAT | O_TRUNC | O_WRONLY, 0x0644)) < 0) {
Others have suggested 0x0777 or others... I prefer MINIMAL settings.
(These numbers represent the UNIX file permissions -- if you don't understand them, consult "man chmod")

Regards
Lucian

Gregory Machin wrote:
This to a totally different issue everything compiles and intalls to
this point now .......
I did reply to Dan's comment on the mysql issue thanks ...


On Tue, Oct 21, 2008 at 9:44 AM, Lucian Cristian <[EMAIL PROTECTED]> wrote:
Dan McAllister already told you about this problem, pay attention ;)

Regards,
Lucian

Gregory Machin wrote:
Hi
Another missing library or something ....


./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=i386 -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=i386
-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=i386 -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.79064 (%build)


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

Everything compiles/installs up to simscan-toaster-1.3.1-1.3.6.src.rpm

How do I fix this one ..

running fc 8 i386

Thanks in advance for the help .

---------------------------------------------------------------------
    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]



---------------------------------------------------------------------
     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