Subject: port-i386/2704: libc _regerror multiply defined with libcompat
To: None <gnats-bugs@NetBSD.ORG>
From: None <>
List: netbsd-bugs
Date: 08/17/1996 23:24:46
>Number:         2704
>Category:       port-i386
>Synopsis:       multiple defines between libc and libcompat
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 18 02:35:01 1996
>Originator:     Tim Rightnour
Tim Rightnour    -
>Release:        1.1
System: NetBSD 1.1 NetBSD 1.1 (GARBLED_3) #2: Sat Aug 17 14:30:21 PDT 1996 i386

When linking -lcompat in a piece of code that uses _regerror you get a
multiple define error and the compiler errors out.

making all in ./guide/libguide...
making all in ./guide...
rm -f xvnews
gcc -o xvnews -m486 -O2      -L/usr/X11R6/lib getdate.o main.o server.o textsw_regexp.o xv_articles.o xv_err.o 	 xv_getauthor.o xv_init.o xv_init_newsrc.o xv_newsrc.o 	 xv_parse_newsrc.o xv_post.o xv_props.o xv_regex.o xv_search.o 	 xv_sort.o xv_stuff.o x
vnews_stubs.o xvnews_ui.o xv_drag.o xv_kill.o -Lguide -lguidexv -Lguide/libguide -lguide -L/usr/X11R6/lib -lxview -lolgx -lX11   -lcompat -lgnumalloc  
/usr/lib/libcompat.a(regerror.o): Definition of symbol `_regerror' (multiply defined)
/usr/lib/libcompat.a(regex.o): Definition of symbol `_regerror' (multiply defined)
/usr/lib/ Definition of symbol `_regerror' (multiply defined)
*** Error code 1


download xvnews-3.2.x from /contrib/apllications
add -lcompat to the list of necc. libs (you will find it will
not compile without it) attemt to build.

ya got me.