[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile pbs ...



bash-2.05$ tar xzf firestorm-0.5.2.tar.gz
bash-2.05$ cd firestorm-0.5.2
bash-2.05$ patch -p0 < ~/firestorm052-getopt.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: configure.in
|===================================================================
|RCS file: /home/scara/cvsroot/firestorm/configure.in,v
|retrieving revision 1.48
|diff -u -r1.48 configure.in
|--- configure.in       7 Feb 2003 20:28:35 -0000       1.48
|+++ configure.in       15 Feb 2003 11:02:11 -0000
--------------------------
Patching file configure.in using Plan A...
Hunk #1 failed at 31.
Hunk #2 failed at 40.
2 out of 2 hunks failed--saving rejects to configure.in.rej
Hmm...  The next patch looks like a unified diff to me...

1) AC_CHECK_HEADERS([sys/uio.h])

2) AC_CHECK_FUNCS([tzset sigaction])

CHECK THIS ...



The text leading up to this was:
--------------------------
|Index: src/firecat.c
|===================================================================
|RCS file: /home/scara/cvsroot/firestorm/src/firecat.c,v
|retrieving revision 1.61
|diff -u -r1.61 firecat.c
|--- src/firecat.c      7 Feb 2003 21:37:39 -0000       1.61
|+++ src/firecat.c      15 Feb 2003 11:05:08 -0000
--------------------------
Patching file src/firecat.c using Plan A...
Hunk #1 succeeded at 3 with fuzz 2.
Hunk #2 succeeded at 120 with fuzz 2 (offset 83 lines).
Hunk #3 succeeded at 46 with fuzz 2 (offset -1 lines).
Hunk #4 failed at 257.
1 out of 4 hunks failed--saving rejects to src/firecat.c.rej
Hmm...  The next patch looks like a unified diff to me...


4) very different ...



The text leading up to this was:
--------------------------
|Index: src/stormwall.c
|===================================================================
|RCS file: /home/scara/cvsroot/firestorm/src/stormwall.c,v
|retrieving revision 1.26
|diff -u -r1.26 stormwall.c
|--- src/stormwall.c    15 Jan 2003 11:28:39 -0000      1.26
|+++ src/stormwall.c    15 Feb 2003 11:06:32 -0000
--------------------------
Patching file src/stormwall.c using Plan A...
Hunk #1 succeeded at 6.
Hunk #2 succeeded at 172.
done
bash-2.05$ ./configure
bash-2.05$ make
...


Regards.






Gianni Tedesco wrote:

> On Tue, 2003-02-18 at 16:53, rmkml wrote:
> > source='elog_write.c' object='elog_write.o' libtool=no
> > depfile='.deps/elog_write.Po' tmpdepfile='.deps/elog_write.TPo'  depmode=gcc
> > /usr/local/bin/bash ../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../include
> > -DPLUGIN_DIR=\"/usr/lib/firestorm\"   -I../include     -g -O2 -Wall -pipe -c
> > `test -f 'elog_write.c' || echo './'`elog_write.c
> > elog_write.c: In function `spool_rotate':
> > elog_write.c:157: warning: long unsigned int format, ino_t arg (arg 5)
> > elog_write.c: In function `spool_do_packet':
> > elog_write.c:331: warning: assignment from incompatible pointer type
> > This pb don't stop the compilation ...
>
> Yeah, that shouldn't matter.
>
> > B) (after your patch)
> > ...
> > source='firecat.c' object='firecat.o' libtool=no  depfile='.deps/firecat.Po'
> > tmpdepfile='.deps/firecat.TPo'  depmode=gcc /usr/local/bin/bash ../depcomp
> > gcc -DHAVE_CONFIG_H -I. -I. -I../include
> > -DPLUGIN_DIR=\"/usr/lib/firestorm\"   -I../include     -g -O2 -Wall -pipe -c
> > `test -f 'firecat.c' || echo './'`firecat.c
> > firecat.c: In function `main':
> > firecat.c:180: warning: implicit declaration of function `getopt_long'
> > firecat.c:181: `opts' undeclared (first use in this function)
> > firecat.c:181: (Each undeclared identifier is reported only once
> > firecat.c:181: for each function it appears in.)
> > *** Error code 1
> > And this error ends the compilation ...
>
> Very wierd, you sure the patch applied OK? 'opts' should not appear
> anywhere in that file unless HAVE_GETOPT_LONG is defined, could you look
> in the source code and confirm this is the case?
>
> --
> // Gianni Tedesco (gianni at scaramanga dot co dot uk)
> lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
> 8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D
>
>   ------------------------------------------------------------------------
>                        Name: signature.asc
>    signature.asc       Type: application/pgp-signature
>                 Description: This is a digitally signed message part