Projects / compface / Comments

RSS Comments for compface

26 Nov 2003 05:44 rrt

Re: compface-1.4
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.)

26 Nov 2003 05:41 rrt

Re: compface-1.4
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.

24 Nov 2003 14:01 owencook

Re: compface-1.4

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

24 Nov 2003 13:59 owencook

Re: compface-1.4

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

24 Nov 2003 13:52 owencook

Re: compface-1.4

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

21 Nov 2003 01:53 bianco

Re: compface-1.4

> 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

21 Nov 2003 01:48 bianco

Re: compface-1.4

> 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

14 Nov 2003 13:55 owencook

compface-1.4
I have used this for some years, now I can't make
it. gcc-3.3 instead of 2.95.

FWIW


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'
cmain.o(.text+0x398):/mnt/hda9/builds/
compface-1.4/cmain.c:122: undefined reference to
`errno'
cmain.o(.text+0x47a): In function `WriteBuf':
/mnt/hda9/builds/compface-1.4/cmain.c:160:
undefined reference to `errno'
cmain.o(.text+0x5e1): In function `ReadBuf':
/mnt/hda9/builds/compface-1.4/cmain.c:183:
undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [compface] Error 1

Screenshot

Project Spotlight

QPwmc

A graphical pwmd client.

Screenshot

Project Spotlight

Super Grub2 Disk

A disk which can boot into an OS whose bootloader is broken.