Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2012 12:07:35 GMT
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/164905: www/seamonkey fails to build with clang [fix]
Message-ID:  <201202081207.q18C7ZZv044038@red.freebsd.org>
Resent-Message-ID: <201202081210.q18CAA4v021346@freefall.freebsd.org>

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

>Number:         164905
>Category:       ports
>Synopsis:       www/seamonkey fails to build with clang [fix]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 08 12:10:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Volodymyr Kostyrko
>Release:        RELENG_9
>Organization:
None
>Environment:
FreeBSD green.tandem.local 9.0-STABLE FreeBSD 9.0-STABLE #0 r231194: Wed Feb  8 12:22:37 EET 2012     arcade@green.tandem.local:/usr/obj/usr/src/sys/MINIMAL_4BSD  amd64
>Description:
Doesn't build with clang:

clang++ -o gfxTextRunCache.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include ../../config/gcc_hidden.h -DIMPL
_THEBES -DWOFF_MOZILLA_CLIENT -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS
_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DSTATIC_EXPORTABLE_JS_API -DMOZ_SUITE=1 -DOSTYPE=\"FreeBSD9\" -DOSARCH=FreeBS
D -DEXCLUDE_SKIA_DEPENDENCIES -DOS_LINUX=1 -DOS_POSIX=1 -I../../ipc/chromium/src -I../../ipc/glue -I../../ipc/ipdl/_ipdlheaders 
 -I. -I. -I../../dist/include -I../../dist/include/nsprpub  -I/usr/local/include/nspr -I/tmp/ports/.amd_mnt/faz/host/usr/ports/w
ww/seamonkey/work/comm-release/mozilla/dist/include/nss      -fPIC -I/usr/local/include/cairo -I/usr/local/include -fno-rtti -Wa
ll -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic
-macros -Werror=return-type -O2 -pipe -march=native -O2 -fno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fshort-wchar 
-ffunction-sections -fdata-sections -pipe -DNDEBUG -DTRIMMED -O2 -fomit-frame-pointer -D_THREAD_SAFE -D_REENTRANT -I/usr/local/i
nclude/cairo -I/usr/local/include/glib-2.0 -I/usr/local/include/pixman-1 -I/usr/local/include -I/usr/local/include/freetype2 -I/
usr/local/include/libpng -I/usr/local/include/drm   -D_THREAD_SAFE -D_REENTRANT -I/usr/local/include/cairo -I/usr/local/include 
-I/usr/local/include/glib-2.0 -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libpng -I/usr/lo
cal/include/drm   -D_THREAD_SAFE -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include
/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-
unix-2.0/ -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr
/local/include/libpng -I/usr/local/include/drm -I/usr/local/include/gtk-unix-print-2.0   -D_REENTRANT -D_THREAD_SAFE -I/usr/loca
l/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/cairo
 -I/usr/local/include/pixman-1 -I/usr/local/include/libpng -I/usr/local/include/drm    -I/usr/local/include/cairo     -I/usr/loc
al/include -DMOZILLA_CLIENT -include ../../mozilla-config.h /tmp/ports/.amd_mnt/faz/host/usr/ports/www/seamonkey/work/comm-relea
se/mozilla/gfx/thebes/gfxTextRunCache.cpp
/tmp/ports/.amd_mnt/faz/host/usr/ports/www/seamonkey/work/comm-release/mozilla/gfx/thebes/gfxTeeSurface.cpp:67:1: error: 
      control reaches end of non-void function [-Werror,-Wreturn-type]
}
^
1 error generated.
>How-To-Repeat:

>Fix:
http://git.overlays.gentoo.org/gitweb/?p=user/sardemff7.git;a=commitdiff_plain;h=d3d99897dfff709c6b082357500e733652b6b8a1

 const gfxIntSize
 gfxTeeSurface::GetSize() const
 {
 #ifdef MOZ_TREE_CAIRO
     nsRefPtr<gfxASurface> master = Wrap(cairo_tee_surface_index(mSurface, 0));
     return master->GetSize();
+#else                                                                           
+    gfxIntSize a;                                                               
+    return a; 
 #endif
 }

Maybe this should be pushed upstream?

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



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