Subject: lib/17511: new times() breaks mod-perl
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dive@endersgame.net>
List: netbsd-bugs
Date: 07/07/2002 22:39:48
>Number:         17511
>Category:       lib
>Synopsis:       libperl.so no longer works since times() change
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 07 15:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     dive
>Release:        NetBSD 1.6D
>Organization:
/~\ The ASCII                         Sean Davis
\ / Ribbon Campaign                    aka dive
 X  Against HTML
/ \ Email!                   http://endersgame.net/~dive/
>Environment:
perl-5.6.1nb7
System: NetBSD eros.endersgame.net 1.6D NetBSD 1.6D (EROS) #355: Sun Jul 7 15:18:54 EDT 2002 dive@eros.endersgame.net:/disk2/a/cvs/netbsd/current/src/sys/arch/i386/compile/EROS i386
Architecture: i386
Machine: i386
>Description:
mod-perl in apache stopped working after the times change, and test programs
linked against libperl.so fail to work:
<dive@eros(/usr/pkgsrc/lang/perl5)> % !gcc
gcc -static -I/disk2/e/pkg/lib/perl5/5.6.1/i386-netbsd/CORE
-L/disk2/e/pkg/lib/perl5/5.6.1/i386-netbsd/CORE -lperl -lcrypt -lm -o
/tmp/foo /tmp/foo.c
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
Exit 1
<dive@eros(/usr/pkgsrc/lang/perl5)> % gcc
-I/disk2/e/pkg/lib/perl5/5.6.1/i386-netbsd/CORE
-L/disk2/e/pkg/lib/perl5/5.6.1/i386-netbsd/CORE -lperl -lcrypt -lm -o
/tmp/foo /tmp/foo.c
/disk2/e/pkg/lib/perl5/5.6.1/i386-netbsd/CORE/libperl.so: warning: reference
to compatibility times(); include <sys/times.h> for correct reference
<dive@eros(/usr/pkgsrc/lang/perl5)> % /tmp/foo
Shared object "libperl.so" not found
Exit 1
<dive@eros(/usr/pkgsrc/lang/perl5)> % gcc -static
-I/disk2/e/pkg/lib/perl5/5.6.1/i386-netbsd/CORE
-L/disk2/e/pkg/lib/perl5/5.6.1/i386-netbsd/CORE -lperl -lcrypt -lm -o
/tmp/foo /tmp/foo.c
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
Exit 1
<dive@eros(/usr/pkgsrc/lang/perl5)> % ls -l
/disk2/e/pkg/lib/perl5/5.6.1/i386-netbsd/CORE/libperl.so
-r-xr-xr-x  1 root  wheel  849393 May 26 17:59
/disk2/e/pkg/lib/perl5/5.6.1/i386-netbsd/CORE/libperl.so

with mod_perl in apache, apache no longer even starts up since the times()
change. if i remove mod_perl from the apache configuration, it works just
fine. I think this is a problem with the perl pkg, needing to include
sys/times.h perhaps? so perhaps it needs to be addressed by the pkg
maintainer rather than lib-bug-people.
>How-To-Repeat:
try to run apache with mod-perl compiled in on a current system newer than
the times change
>Fix:
include the correct file in perl? i have not tried this yet...
>Release-Note:
>Audit-Trail:
>Unformatted: