Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2010 10:07:34 GMT
From:      kenorb <kenorb@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/152043: WITH_DEBUG doesn't work when compiling Firefox
Message-ID:  <201011081007.oA8A7Yis058828@www.freebsd.org>
Resent-Message-ID: <201011081010.oA8AAAY4024560@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152043
>Category:       ports
>Synopsis:       WITH_DEBUG doesn't work when compiling Firefox
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 08 10:10:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     kenorb
>Release:        FreeBSD 8.1-STABLE
>Organization:
>Environment:
FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #3: Wed Nov  3 14:36:47 GMT 2010     root@kenorb:/usr/obj/usr/src/sys/BRO  amd64

>Description:
I want to compile Firefox with debug symbols.
Makefile doesn't contain special WITH_DEBUG variable.

Here is some instruction:
http://developer.mozilla.org/en/Building_Firefox_with_Debug_Symbols

But anyway ports Makefile should contain WITH_DEBUG to strict to ports standards.
>How-To-Repeat:
cd /usr/ports/www/firefox
make WITH_DEBUG=1

>Fix:
Workaround:
setenv MOZ_DEBUG_SYMBOLS 1 || export MOZ_DEBUG_SYMBOLS=1
setenv CFLAGS "-gdwarf-2" || export CFLAGS="-gdwarf-2"
setenv CXXFLAGS "-gdwarf-2" || export CXXFLAGS="-gdwarf-2"
cd /usr/ports/www/firefox && make
cd `make -V WRKSRC`/browser/app
setenv LD_LIBRARY_PATH $PWD || export LD_LIBRARY_PATH=$PWD
gdb ./firefox-bin

Fix in Makefile?
.if defined(WITH_DEBUG)
WITH_LOGGING=           yes
CONFIGURE_ENV+=         WITH_DEBUG=yes
CONFIGURE_ENV+=         MOZ_DEBUG_SYMBOLS=1 
CONFIGURE_ENV+=         CFLAGS="-gdwarf-2"
CONFIGURE_ENV+=         CXXFLAGS="-gdwarf-2"
.endif # defined(WITH_DEBUG)


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011081007.oA8A7Yis058828>