[»]
Re: compface-1.4
by Bianco - Nov 21st 2003 01:53:50
> add "#include " at the top of cmain.c
> and uncmain.c
Oops:
add "#include <errno.h>" at the top of cmain.c
and uncmain.c
Bianco
[reply]
[top]
[»]
Re: compface-1.4
by owen - Nov 24th 2003 13:59:03
>
> % add "#include " at the top of cmain.c
> % and uncmain.c
>
>
>
> Oops:
> add "#include <errno.h>" at the
> top of cmain.c
> and uncmain.c
Oops
Didn't see this follow up
Sorry, it makes ok now
Apologies
Owen
[reply]
[top]
[»]
Re: compface-1.4
by owen - Nov 24th 2003 14:01:46
>
> % add "#include " at the top of cmain.c
> % and uncmain.c
>
>
>
> Oops:
> add "#include <errno.h>" at the
> top of cmain.c
> and uncmain.c
>
> Bianco
That fixed it, sorry about double posting, and sorry I
didn't read all the thread.
Thanks for your help
Owen
[reply]
[top]
[»]
Re: compface-1.4
by owen - Nov 24th 2003 13:52:10
>
> % I have used this for some years, now
> I
> % can't make
> % it. gcc-3.3 instead of 2.95.
> %
> [...]
> % gcc -o compface cmain.o compface.o
> % libcompface.a
> % cmain.o(.text+0x143): In function
> % `main':
> %
> /mnt/hda9/builds/compface-1.4/cmain.c:110:
> %
> % undefined reference to `errno'
> [...]
> % make: *** [compface] Error 1
> %
>
>
> Quick and dirty:
>
> add "#include " at the top of cmain.c
> and uncmain.c
>
> HTH
>
> Bianco
OK, well I added #include to both those files and
now it fails
[owen@localhost compface-1.4]$ make
gcc -c -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1 -g
-O2 cmain.c
cmain.c:17:9: #include expects "FILENAME" or
make: *** [cmain.o] Error 1
I might have to try going back to gcc-2.95.3 and see
if that "fixes" it
Anyway, thnks for your help
Owen
[reply]
[top]
[»]
Re: compface-1.4
by Reuben Thomas - Nov 26th 2003 05:41:01
The fix to compile on a modern system is simple: in cmain.c and uncmain.c,
replace the lines
extern int errno;
char *strerror();
char *strerrorwrap();
by
#include
#include
char *strerrorwrap();
It would be nice if whoever put this project up could take note and make a
new release, but the listed project author is the original program author,
and there's no email address attached.
[reply]
[top]
[»]
Re: compface-1.4
by Reuben Thomas - Nov 26th 2003 05:44:04
The fix to compile on a modern system is simple: in cmain.c and uncmain.c,
replace the lines
extern int errno;
char *strerror();
char *strerrorwrap();
by
#include <errno.h>
#include <string.h>
char *strerrorwrap();
It would be nice if whoever put this project up could take note and make a
new release, but the listed project author is the original program author,
and there's no email address attached.
(This is probably what earlier authors in this thread were trying to say,
but it seems that the posts here are always displayed as HTML formatted
mode, even if you tried to enter raw text, which previewed correctly; this
causes include file names to disappear, for example.)
[reply]
[top]