From parv@chvlva.adelphia.net  Wed Nov 23 01:57:03 2005
Return-Path: <parv@chvlva.adelphia.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7070A16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Nov 2005 01:57:03 +0000 (GMT)
	(envelope-from parv@chvlva.adelphia.net)
Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 00EE943D5F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Nov 2005 01:56:59 +0000 (GMT)
	(envelope-from parv@chvlva.adelphia.net)
Received: from default.chvlva.adelphia.net ([68.67.248.52])
          by mta10.adelphia.net
          (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP
          id <20051123015659.PUTE10822.mta10.adelphia.net@default.chvlva.adelphia.net>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Tue, 22 Nov 2005 20:56:59 -0500
Received: by default.chvlva.adelphia.net (Postfix, from userid 1000)
	id B27CCB541; Tue, 22 Nov 2005 20:57:13 -0500 (EST)
Message-Id: <20051123015713.B27CCB541@default.chvlva.adelphia.net>
Date: Tue, 22 Nov 2005 20:57:13 -0500 (EST)
From: parv@pair.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: lang/perl5.8 is installed stripped regardless of compiling  WITH_DEBUGGING
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         89443
>Category:       ports
>Synopsis:       lang/perl5.8 is installed stripped regardless of compiling  WITH_DEBUGGING
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tobez
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 23 02:00:19 GMT 2005
>Closed-Date:    Mon Feb 20 21:30:15 CET 2006
>Last-Modified:  Mon Feb 20 21:30:15 CET 2006
>Originator:     Parv
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD holestein.holy.cow 5.4-STABLE FreeBSD 5.4-STABLE #7: Sat Oct 29 02:13:59 EDT 2005 root@holestein.holy.cow:/work/obj/misc/src-5/sys/BOVINE-T42 i386

Perl version ...

  Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
    Platform:
      osname=freebsd, osvers=5.3-release-p16, archname=i386-freebsd-64int
      uname='freebsd holestein.holy.cow 5.3-release-p16 freebsd 5.3-release-p16 #5: thu jun 9 15:17:45 edt 2005 root@holestein.holy.cow:workobjmiscsrc-5.3sysbovine-t42 i386 '
      config_args='-sde -Dprefix=/misc/local -Darchlib=/misc/local/lib/perl5/5.8.7/mach -Dprivlib=/misc/local/lib/perl5/5.8.7 -Dman3dir=/misc/local/lib/perl5/5.8.7/perl/man/man3 -Dman1dir=/misc/local/man/man1 -Dsitearch=/misc/local/lib/perl5/site_perl/5.8.7/mach -Dsitelib=/misc/local/lib/perl5/site_perl/5.8.7 -Dscriptdir=/misc/local/bin -Dsiteman3dir=/misc/local/lib/perl5/5.8.7/man/man3 -Dsiteman1dir=/misc/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/misc/local/lib/perl5/5.8.7/BSDPAN" -Doptimize=-g -DDEBUGGING -Ud_dosuid -Di_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint'
      hint=recommended, useposix=true, d_sigaction=define
      usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
      useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
      use64bitint=define use64bitall=undef uselongdouble=undef
      usemymalloc=y, bincompat5005=undef
    Compiler:
      cc='cc', ccflags ='-DAPPLLIB_EXP="/misc/local/lib/perl5/5.8.7/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include',
      optimize='-g',
      cppflags='-DAPPLLIB_EXP="/misc/local/lib/perl5/5.8.7/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include'
      ccversion='', gccversion='3.4.2 [FreeBSD] 20040728', gccosandvers=''
      intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
      d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
      ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
      alignbytes=4, prototype=define
    Linker and Libraries:
      ld='cc', ldflags ='-pthread -Wl,-E -L/usr/local/lib'
      libpth=/usr/lib /usr/local/lib
      libs=-lgdbm -lm -lcrypt -lutil
      perllibs=-lm -lcrypt -lutil
      libc=, so=so, useshrplib=true, libperl=libperl.so
      gnulibc_version=''
    Dynamic Linking:
      dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -Wl,-R/misc/local/lib/perl5/5.8.7/mach/CORE'
      cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


  Characteristics of this binary (from libperl): 
    Compile-time options: DEBUGGING USE_64_BIT_INT USE_LARGE_FILES
    Locally applied patches:
	  defined-or
    Built under freebsd
    Compiled at Jun 29 2005 14:46:29
    @INC:
      /misc/local/lib/perl5/site_perl/5.8.7/mach
      /misc/local/lib/perl5/site_perl/5.8.7
      /misc/local/lib/perl5/site_perl/5.8.6
      /misc/local/lib/perl5/site_perl
      /misc/local/lib/perl5/5.8.7/BSDPAN
      /misc/local/lib/perl5/5.8.7/mach
      /misc/local/lib/perl5/5.8.7
      .

>Description:

I thought i have installed perl w/ debugging symbols but on a
unplanned gdb run it seems to have none ...

  file `realpath $(which perl)`
  /misc/local/bin/perl5.8.7: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.3.0, dynamically linked (uses shared libs), stripped


  gdb /misc/local/bin/perl5.8.7
  GNU gdb 6.1.1 [FreeBSD]
  Copyright 2004 Free Software Foundation, Inc.
  GDB is free software, covered by the GNU General Public License, and you are
  welcome to change it and/or distribute copies of it under certain conditions.
  Type "show copying" to see the conditions.
  There is absolutely no warranty for GDB.  Type "show warranty" for details.
  This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...


I have the build & install logs from (Jun 2005) if anybody wants to
see.  A few moments ago, i rebuilt perl (not installed) & it is indeed
not stripped ...

  file /work/ports/misc/ports-current/lang/perl5.8/work/perl-5.8.7/perl
  /work/ports/misc/ports-current/lang/perl5.8/work/perl-5.8.7/perl: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.4-CURRENT (rev 3), dynamically linked (uses shared libs), not stripped

  gdb /work/ports/misc/ports-current/lang/perl5.8/work/perl-5.8.7/perl
  GNU gdb 6.1.1 [FreeBSD]
  Copyright 2004 Free Software Foundation, Inc.
  GDB is free software, covered by the GNU General Public License, and you are
  welcome to change it and/or distribute copies of it under certain conditions.
  Type "show copying" to see the conditions.
  There is absolutely no warranty for GDB.  Type "show warranty" for details.
  This GDB was configured as "i386-marcel-freebsd"...


... seems like something in the install process screws up.  (I have
not verified the last statement this time as i am not looking forward
to update my perl modules.)


>How-To-Repeat:

  sh \
  && cd $PORTS/lang/perl5.8 \
  && make deinstall clean \
  && make install -DWITH_DEBUGGING \
  && file `realpath $(which perl)`

>Fix:

Install perl w/ debugging symbols.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->tobez 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Nov 23 02:03:15 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89443 

From: Anton Berezin <tobez@FreeBSD.org>
To: parv@pair.com
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/89443: lang/perl5.8 is installed stripped regardless of compiling WITH_DEBUGGING
Date: Wed, 23 Nov 2005 07:41:47 +0100

 On Tue, Nov 22, 2005 at 08:57:13PM -0500, parv@pair.com wrote:
 
 > I thought i have installed perl w/ debugging symbols but on a
 > unplanned gdb run it seems to have none ...
 
 > I have the build & install logs from (Jun 2005) if anybody wants to
 > see.  A few moments ago, i rebuilt perl (not installed) & it is indeed
 > not stripped ...
 
 > ... seems like something in the install process screws up.  (I have
 > not verified the last statement this time as i am not looking forward
 > to update my perl modules.)
 
 A workaround would be to specify STRIP="" while building and installing
 perl.
 
 \Anton.
 -- 
 An undefined problem has an infinite number of solutions.
 -- Robert A. Humphrey
State-Changed-From-To: open->closed 
State-Changed-By: tobez 
State-Changed-When: Mon Feb 20 21:29:48 CET 2006 
State-Changed-Why:  
A fix has been committed, thank you for your submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89443 
>Unformatted:
