Closed Bug 89329 Opened 25 years ago Closed 25 years ago

Motif doesnt build on IRIX

Categories

(SeaMonkey :: Build Config, defect, P4)

SGI
IRIX
defect

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: johnv, Unassigned)

References

Details

Attachments

(5 files)

configure reports that it cant find -lXm , however the problem is /usr/lib is in the path before /usr/lib32, and as mozilla is only built as N32 this conflict causes the problem.
r=cls
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P4
Target Milestone: --- → mozilla0.9.3
Chris ... can we hold of on getting r/a= until I have built and tested. Could be a few more patches required.
From the type of errors I am getting (using MIPSpro atm) it would seem like the motif port is broken ... Here is the first set of errors ... and to get around these see below --- cc-1389 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsFontMetricsMotif.cpp, Line = 374 No suitable constructor exists to convert from "char [6]" to "nsString". aDC->GetLocalFontName("times", aFontFace, aliased); ^ cc-1389 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsFontMetricsMotif.cpp, Line = 377 No suitable constructor exists to convert from "char [10]" to "nsString". aDC->GetLocalFontName("helvetica", aFontFace, aliased); ^ cc-1389 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsFontMetricsMotif.cpp, Line = 380 No suitable constructor exists to convert from "char [7]" to "nsString". aDC->GetLocalFontName("script", aFontFace, aliased); // XXX ??? ^ cc-1389 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsFontMetricsMotif.cpp, Line = 383 No suitable constructor exists to convert from "char [10]" to "nsString". aDC->GetLocalFontName("helvetica", aFontFace, aliased); ^ --- Index: gfx/src/motif/nsFontMetricsMotif.cpp =================================================================== RCS file: /cvsroot/mozilla/gfx/src/motif/nsFontMetricsMotif.cpp,v retrieving revision 1.10 diff -u -r1.10 nsFontMetricsMotif.cpp --- gfx/src/motif/nsFontMetricsMotif.cpp 2000/10/28 22:13:50 1.10 +++ gfx/src/motif/nsFontMetricsMotif.cpp 2001/07/05 05:12:01 @@ -371,22 +371,22 @@ // XXX this need to check availability with the dc PRBool aliased; if (aGenericFamily.EqualsIgnoreCase("serif")) { - aDC->GetLocalFontName("times", aFontFace, aliased); + aDC->GetLocalFontName(nsString((PRUnichar *)"times"), aFontFace, aliased); } else if (aGenericFamily.EqualsIgnoreCase("sans-serif")) { - aDC->GetLocalFontName("helvetica", aFontFace, aliased); + aDC->GetLocalFontName(nsString((PRUnichar *)"helvetica"), aFontFace, aliased); } else if (aGenericFamily.EqualsIgnoreCase("cursive")) { - aDC->GetLocalFontName("script", aFontFace, aliased); // XXX ??? + aDC->GetLocalFontName(nsString((PRUnichar *)"script"), aFontFace, aliased); // XXX ??? } else if (aGenericFamily.EqualsIgnoreCase("fantasy")) { - aDC->GetLocalFontName("helvetica", aFontFace, aliased); + aDC->GetLocalFontName(nsString((PRUnichar *)"helvetica"), aFontFace, aliased); } else if (aGenericFamily.EqualsIgnoreCase("monospace")) { - aDC->GetLocalFontName("fixed", aFontFace, aliased); + aDC->GetLocalFontName(nsString((PRUnichar *)"fixed"), aFontFace, aliased); } else if (aGenericFamily.EqualsIgnoreCase("-moz-fixed")) { - aDC->GetLocalFontName("fixed", aFontFace, aliased); + aDC->GetLocalFontName(nsString((PRUnichar *)"fixed"), aFontFace, aliased); } else { aFontFace.Truncate(); --- However I then get more problems ... --- cc-1682 CC: WARNING File = ../../../../mozilla/gfx/src/motif/nsDeviceContextMotif.h, Line = 55 The overloaded virtual function "nsIDeviceContext::CreateRenderingContext" is only partially overridden in class "nsDeviceContextMotif". class nsDeviceContextMotif : public DeviceContextImpl ^ cc-1682 CC: WARNING File = ../../../../mozilla/gfx/src/motif/nsDeviceContextMotif.h, Line = 55 The overloaded virtual function "DeviceContextImpl::CreateRenderingContext" is only partially overridden in class "nsDeviceContextMotif". class nsDeviceContextMotif : public DeviceContextImpl ^ cc-1682 CC: WARNING File = ../../../../mozilla/gfx/src/motif/nsRenderingContextMotif.h, Line = 54 The overloaded virtual function "nsIRenderingContext::DrawImage" is only partially overridden in class "nsRenderingContextMotif". class nsRenderingContextMotif : public nsIRenderingContext ^ cc-1682 CC: WARNING File = ../../../../mozilla/gfx/src/motif/nsRenderingContextMotif.h, Line = 54 The overloaded virtual function "nsIRenderingContext::DrawTile" is only partially overridden in class "nsRenderingContextMotif". class nsRenderingContextMotif : public nsIRenderingContext ^ cc-1296 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp, Line = 106 An object of abstract class type "nsFontMetricsMotif" is not allowed. Pure virtual function "nsIFontMetrics::GetNormalLineHeight" has no overrider. Pure virtual function "nsIFontMetrics::GetEmHeight" has no overrider. Pure virtual function "nsIFontMetrics::GetEmAscent" has no overrider. Pure virtual function "nsIFontMetrics::GetEmDescent" has no overrider. Pure virtual function "nsIFontMetrics::GetMaxHeight" has no overrider. inst = (nsISupports *)new nsFontMetricsMotif(); ^ cc-1296 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp, Line = 106 An object of abstract class type "<null-type>" is not allowed. inst = (nsISupports *)new nsFontMetricsMotif(); ^ cc-1296 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp, Line = 109 An object of abstract class type "nsDeviceContextMotif" is not allowed. Pure virtual function "nsIDeviceContext::GetRect" has no overrider. inst = (nsISupports *)new nsDeviceContextMotif(); ^ cc-1296 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp, Line = 109 An object of abstract class type "<null-type>" is not allowed. inst = (nsISupports *)new nsDeviceContextMotif(); ^ cc-1296 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp, Line = 112 An object of abstract class type "nsRenderingContextMotif" is not allowed. Pure virtual function "nsIRenderingContext::DrawStdLine" has no overrider. Pure virtual function "nsIRenderingContext::RasterPolygon" has no overrider. Pure virtual function "nsIRenderingContext::FillStdPolygon" has no overrider. Pure virtual function "nsIRenderingContext::DrawPath" has no overrider. Pure virtual function "nsIRenderingContext::FillPath" has no overrider. Pure virtual function "nsIRenderingContext::DrawTile(nsIImage *, nscoord, nscoord, const nsRect &)" has no overrider. Pure virtual function "nsIRenderingContext::SetRightToLeftText" has no overrider. Pure virtual function "nsIRenderingContext::DrawImage(imgIContainer *, const nsRect *, const nsPoint *)" has no overrider. Pure virtual function "nsIRenderingContext::DrawScaledImage" has no overrider. Pure virtual function "nsIRenderingContext::DrawTile(imgIContainer *, nscoord, nscoord, const nsRect *)" has no overrider. Pure virtual function "nsIRenderingContext::DrawScaledTile" has no overrider. inst = (nsISupports *)new nsRenderingContextMotif(); ^ cc-1296 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp, Line = 112 An object of abstract class type "<null-type>" is not allowed. inst = (nsISupports *)new nsRenderingContextMotif(); ^ cc-1296 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp, Line = 115 An object of abstract class type "nsImageMotif" is not allowed. Pure virtual function "nsIImage::DrawToImage" has no overrider. inst = (nsISupports *)new nsImageMotif(); ^ cc-1296 CC: ERROR File = ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp, Line = 115 An object of abstract class type "<null-type>" is not allowed. inst = (nsISupports *)new nsImageMotif(); ^ 8 errors detected in the compilation of "../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp". gmake: *** [nsGfxFactoryMotif.o] Error 2 --- Now as exciting as this all looks ... I shall switch to gcc before I continue.
I thought that someone was working the port recently but apparently not. Anyway, ZuperDee filed a bug (bug 89330) to remove the port entirely since it has bitrotted quite a bit. It looks like the port missed several sets of scc's string changes and pavlov's libpr0n landing.
And just to be sure ... g++ agree's with MIPSpro. So sadly no Motif port today. --- g++ -o nsGfxFactoryMotif.o -c -DOSTYPE=\"IRIX6\" -DOSARCH=\"IRIX\" -DOJI - D_IMPL_NS_GFXNONXP -I../../../dist/include -I../../../dist/include - I/projects/sise/mozilla/devel/workpits/moz/latest_motif_gcc/workarea/dist/includ e/nspr -I../../../../mozilla/gfx/src/motif/. - I../../../../mozilla/gfx/src/motif/.. -fPIC -fno-rtti -fno-exceptions - Wall -pedantic -Wno-long-long -D_LANGUAGE_C_PLUS_PLUS -DNDEBUG -DTRIMMED - I/usr/include -DMOZILLA_CLIENT -include ../../../config-defs.h -Wp,- MD,.deps/nsGfxFactoryMotif.pp ../../../../mozilla/gfx/src/motif/nsGfxFactoryMoti f.cpp ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp: In method `nsresult nsGfxFactoryMotif::CreateInstance(nsISupports *, const nsIID &, void **)': ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp:106: cannot allocate an object of type `nsFontMetricsMotif' ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp:106: since the following virtual functions are abstract: ../../../dist/include/nsIFontMetrics.h:132: nsresult nsIFontMetrics::GetNormalLineHeight(nscoord &) ../../../dist/include/nsIFontMetrics.h:147: nsresult nsIFontMetrics::GetEmHeight(nscoord &) ../../../dist/include/nsIFontMetrics.h:152: nsresult nsIFontMetrics::GetEmAscent(nscoord &) ../../../dist/include/nsIFontMetrics.h:157: nsresult nsIFontMetrics::GetEmDescent(nscoord &) ../../../dist/include/nsIFontMetrics.h:163: nsresult nsIFontMetrics::GetMaxHeight(nscoord &) ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp:109: cannot allocate an object of type `nsDeviceContextMotif' ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp:109: since the following virtual functions are abstract: ../../../dist/include/nsIDeviceContext.h:372: nsresult nsIDeviceContext::GetRect(nsRect &) ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp:112: cannot allocate an object of type `nsRenderingContextMotif' ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp:112: since the following virtual functions are abstract: ../../../dist/include/nsIRenderingContext.h:321: nsresult nsIRenderingContext::DrawStdLine(int, int, int, int) ../../../dist/include/nsIRenderingContext.h:394: nsresult nsIRenderingContext::RasterPolygon(const nsPoint *, int) ../../../dist/include/nsIRenderingContext.h:401: nsresult nsIRenderingContext::FillStdPolygon(const nsPoint *, int) ../../../dist/include/nsIRenderingContext.h:702: nsresult nsIRenderingContext::DrawPath(nsPathPoint *, int) ../../../dist/include/nsIRenderingContext.h:711: nsresult nsIRenderingContext::FillPath(nsPathPoint *, int) ../../../dist/include/nsIRenderingContext.h:735: nsresult nsIRenderingContext::DrawTile(nsIImage *, int, int, const nsRect &) ../../../dist/include/nsIRenderingContext.h:773: nsresult nsIRenderingContext::SetRightToLeftText(int) ../../../dist/include/nsIRenderingContext.h:779: nsresult nsIRenderingContext::DrawImage(imgIContainer *, const nsRect *, const nsPoint *) ../../../dist/include/nsIRenderingContext.h:782: nsresult nsIRenderingContext::DrawScaledImage(imgIContainer *, const nsRect *, const nsRect *) ../../../dist/include/nsIRenderingContext.h:785: nsresult nsIRenderingContext::DrawTile(imgIContainer *, int, int, const nsRect *) ../../../dist/include/nsIRenderingContext.h:788: nsresult nsIRenderingContext::DrawScaledTile(imgIContainer *, int, int, int, int, const nsRect *) ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp:115: cannot allocate an object of type `nsImageMotif' ../../../../mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp:115: since the following virtual functions are abstract: ../../../dist/include/nsIImage.h:237: nsresult nsIImage::DrawToImage(nsIImage *, int, int, int, int) gmake[2]: *** [nsGfxFactoryMotif.o] Error 1 gmake[2]: Leaving directory `/projects/sise/mozilla/devel/workpits/moz/latest_motif_gcc/workarea/gfx/src/mot if' gmake[1]: *** [install] Error 2 gmake[1]: Leaving directory `/projects/sise/mozilla/devel/workpits/moz/latest_motif_gcc/workarea/gfx/src' gmake: *** [install] Error 2 ---
Blocks: 22266
I think motif is a lost cause at this point. Reassigning to the owner of the motif meta bug.
Assignee: cls → nobody
Status: ASSIGNED → NEW
Target Milestone: mozilla0.9.3 → ---
I have hacked gfx/src/motif and widget/src/motif to build in order to verify all necessary changes have been made to get the Motif build to run on IRIX. If these patchsets assist the Motif port then all the better, however I am not in a position to work further on the port. In any case attach 41233 & 41234 are the only IRIX specific changes for the Motif port.
Daniel, you mentioned in bug 89330 that you are willing to push in Motif changes. Could you please push in attach 41233 (r=cls) & 41234 (r=?) as I will be leaving Adacel at the end of the week, and would like to close of my bugs before I go.
Blocks: 73732
Motif port has now been removed (bug 89330). WONTFIX.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
verified.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: