Subject: pkg/24852: graphics/compface doesn't build on linux with recent glibc
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <froz@icix.org>
List: netbsd-bugs
Date: 03/20/2004 00:24:01
>Number:         24852
>Category:       pkg
>Synopsis:       graphics/compface doesn't build on linux with recent glibc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 20 00:25:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Antonio Marques
>Release:        N/A
>Organization:
>Environment:
Linux 2.4.23
>Description:
The following errors occur while building:

gcc  -o compface cmain.o compface.o libcompface.a
cmain.o(.text+0x2c0): In function `main':
: undefined reference to `errno'
cmain.o(.text+0x37e): In function `main':
: undefined reference to `errno'
cmain.o(.text+0x500): In function `WriteBuf':
: undefined reference to `errno'
cmain.o(.text+0x6b2): In function `ReadBuf':
: undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [compface] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/graphics/compface
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/compface

>How-To-Repeat:
cd /usr/pkgsrc/graphics/compface
bmake
>Fix:
Add <errno.h> to compface.h.

patch-aa:

$NetBSD$

--- compface.h.orig	2000-11-22 13:38:39.000000000 +0000
+++ compface.h
@@ -17,6 +17,7 @@
 #define COMPFACE_H
 
 #include <setjmp.h>
+#include <errno.h>
 
 /* For all function declarations, if ANSI then use a prototype. */
>Release-Note:
>Audit-Trail:
>Unformatted: