Issue 41640 - mozooo: building on MacOS X
Summary: mozooo: building on MacOS X
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: wind.li
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 18:05 UTC by pavel
Modified: 2005-08-19 06:28 UTC (History)
2 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Fix mozooo's Mozilla 1.7.5. build on MacOS X (864 bytes, patch)
2005-01-30 18:06 UTC, pavel
no flags Details | Diff
moz build on Mac OSX SRC680_m73 patch + break / problems (16.46 KB, text/plain)
2005-01-31 00:12 UTC, eric.bachard
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2005-01-30 18:05:35 UTC
Hi,

while building mozooo cws (1.7.5) on MacOS X, the build fails with
g++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall 
-Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual 
-Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long 
-fpascal-strings -no-cpp-precomp -fno-common -fshort-wchar -pipe  
-DNDEBUG -DTRIMMED -O  -DXTHREADS -I/opt/local/include/gtk-2.0 
-I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 
-I/opt/local/include/pango-1.0 -I/opt/local/include 
-I/opt/local/include/freetype2 -I/usr/X11R6/include 
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include   
-fPIC -arch ppc -o libgfx_gtk.dylib  nsPrintdGTK.o gtk2drawing.o 
nsDeviceContextGTK.o nsDeviceContextSpecFactoryG.o 
nsDeviceContextSpecG.o nsDrawingSurfaceGTK.o nsGfxFactoryGTK.o 
nsGraphicsStateGTK.o nsImageGTK.o nsGCCache.o 
nsRenderingContextGTK.o nsScreenGtk.o nsScreenManagerGtk.o 
nsPrintOptionsGTK.o nsFontMetricsUtils.o nsAntiAliasedGlyph.o 
nsFontFreeType.o nsFT2FontNode.o nsFT2FontCatalog.o 
nsX11AlphaBlend.o nsXFontAAScaledBitmap.o nsXFontNormal.o 
nsFontMetricsGTK.o nsGdkUtils.o nsRegionGTK2.o nsNativeThemeGTK.o  
nsFreeType.o     -Wl,-exported_symbols_list 
-Wl,../../../build/unix/gnu-ld-scripts/components-export-list 
-bundle -L../../../dist/bin -lxpcom -L../../../dist/bin 
-L/Volumes/Daten/OpenOffice/680_m58/moz/unxmacxp.pro/misc/build/mozilla/dist/lib 
-lplds4 -lplc4 -lnspr4 -lpthread  -lgkgfx -lgfxshared_s  
-L../../../dist/bin -lmozjs ../../../dist/lib/libunicharutil_s.a    
-L/opt/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
-lgdk_pixbuf-2.0 -ltiff -ljpeg -lpng12 -lz -lm -lpangoxft-1.0 
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 
-lintl -liconv   -lm    
ld: nsDeviceContextGTK.o illegal reference to symbol: _XGetOMValues 
defined in indirectly referenced dynamic library 
/usr/X11R6/lib/libX11.6.dylib
ld: warning multiple definitions of symbol _locale_charset
/opt/local/lib/libintl.dylib(localcharset.o) definition of 
_locale_charset
/opt/local/lib/libiconv.dylib(localcharset.o) definition of 
_locale_charset
make[4]: *** [libgfx_gtk.dylib] Error 1
make[3]: *** [libs] Error 2
make[2]: *** [libs] Error 2
make[1]: *** [tier_9] Error 2
make: *** [default] Error 2
dmake:  Error code 2, while making 
'./unxmacxp.pro/misc/build/so_built_ooo_mozab'
'---* tg_merge.mk *---'

(see Eric Hoch's report about this at
http://porting.openoffice.org/servlets/ReadMsg?list=dev&msgNo=14572).

The problem is missing -lX11 on the command line. It seems to be needed only on
Mac OS X.

The attached patch to mozoo's mozilla-1.7.5.patch fixes the problem. it is safe
because it is only for Darwin.
Comment 1 pavel 2005-01-30 18:06:08 UTC
set target, add Eric B. to CC: for verification.
Comment 2 pavel 2005-01-30 18:06:41 UTC
Created attachment 22012 [details]
Fix mozooo's Mozilla 1.7.5. build on MacOS X
Comment 3 eric.bachard 2005-01-31 00:11:42 UTC
hi,

I have tried to build mozilla stuff on Mac OSX for m73, and it doesn't work.
It's late, so I have attached 

- the error 
- my proposed patch (not sure it is helpfull here )
- the new error

Regards,
eric bachard
Comment 4 eric.bachard 2005-01-31 00:12:52 UTC
Created attachment 22019 [details]
moz build on Mac OSX SRC680_m73 patch + break / problems
Comment 5 wind.li 2005-01-31 04:55:41 UTC
Verified on linux i686 and solaris. This patch will not break them.
Comment 6 wind.li 2005-01-31 04:57:57 UTC
Can we simply ignore the strip operation to avoid the new errors?
Comment 7 pavel 2005-01-31 13:46:10 UTC
windly: I think so. We can ignore striping (at least on MacOS X). I'll look on
it later.

This could be marked as FIXED now, right?
Comment 8 wind.li 2005-01-31 13:57:09 UTC
set to fixed
Thanks pjanik
Comment 9 Frank Schönheit 2005-02-28 15:28:22 UTC
to me this looks like the patch made it into the CWS' CVS ..
Comment 10 maho.nakata 2005-03-01 13:10:16 UTC
i also confirmed the build.
thanks folks!
Comment 11 Martin Hollmichel 2005-08-19 06:28:56 UTC
close issue.