Subject: graphics/compface fails to build on linux
To: None <tech-pkg@netbsd.org>
From: Antonio Marques <froz@icix.org>
List: tech-pkg
Date: 02/15/2004 12:39:58
This is a multi-part message in MIME format.

--Multipart_Sun__15_Feb_2004_12_39_58_+0000_082a7600
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Building of graphics/compface fails on Linux with the following errors:

===> Building for compface-1.4
gcc -c   -I/usr/pkg/include -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_STRERROR=1  -O2 -I/usr/pkg/include cmain.c
gcc -c   -I/usr/pkg/include -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_STRERROR=1  -O2 -I/usr/pkg/include compface.c
gcc -c   -I/usr/pkg/include -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_STRERROR=1  -O2 -I/usr/pkg/include arith.c
gcc -c   -I/usr/pkg/include -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_STRERROR=1  -O2 -I/usr/pkg/include file.c
gcc -c   -I/usr/pkg/include -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_STRERROR=1  -O2 -I/usr/pkg/include compress.c
gcc -c   -I/usr/pkg/include -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_STRERROR=1  -O2 -I/usr/pkg/include gen.c
gcc -c   -I/usr/pkg/include -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_STRERROR=1  -O2 -I/usr/pkg/include uncompface.c
ar rc libcompface.a arith.o file.o compress.o gen.o uncompface.o
ranlib libcompface.a
gcc -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o compface cmain.o compface.o libcompface
.a
cmain.o(.text+0x2c2): In function `main':
: undefined reference to `errno'
cmain.o(.text+0x3be): In function `WriteBuf':
: undefined reference to `errno'
cmain.o(.text+0x524): In function `ReadBuf':
: undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [compface] Error 1
*** Error code 2

Adding an "#include <errno.h>" seems to fix the problem.



 

--Multipart_Sun__15_Feb_2004_12_39_58_+0000_082a7600
Content-Type: text/plain;
 name="patch-aa"
Content-Disposition: attachment;
 filename="patch-aa"
Content-Transfer-Encoding: base64

JE5ldEJTRCQKCi0tLSBjb21wZmFjZS5oLm9yaWcJMjAwMC0xMS0yMiAxMzozODozOS4wMDAwMDAw
MDAgKzAwMDAKKysrIGNvbXBmYWNlLmgKQEAgLTE3LDYgKzE3LDcgQEAKICNkZWZpbmUgQ09NUEZB
Q0VfSAogCiAjaW5jbHVkZSA8c2V0am1wLmg+CisjaW5jbHVkZSA8ZXJybm8uaD4KIAogLyogRm9y
IGFsbCBmdW5jdGlvbiBkZWNsYXJhdGlvbnMsIGlmIEFOU0kgdGhlbiB1c2UgYSBwcm90b3R5cGUu
ICovCiAK

--Multipart_Sun__15_Feb_2004_12_39_58_+0000_082a7600--