Closed Bug 284763 Opened 20 years ago Closed 20 years ago

cannot build Freetype2 support

Categories

(Core Graveyard :: GFX, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 234035

People

(Reporter: mmokrejs, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050304 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050304 I use current cvs. I somewhat cannot compile freetype2 code on my gentoo linux box, using gcc-3.3.5 and 3.4.3. c++ -o nsFreeType.o -c -I../../../dist/include/system_wrappers -include ../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -I../.. -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/pref -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/gfx -I../../../dist/include -I/scratch/mozilla/dist/include/nspr -I/usr/include/freetype2 -fPIC -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -O0 -ggdb -fshort-wchar -pthread -pipe -DDEBUG -D_DEBUG -DDEBUG_root -DTRACING -g -fno-inline -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsFreeType.pp nsFreeType.cpp In file included from nsFreeType.h:55, from nsFreeType.cpp:48: ../../../dist/include/gfx/nsIFreeType2.h:53: error: `FTC_Image_Cache' has not been declared ../../../dist/include/gfx/nsIFreeType2.h:53: error: ISO C++ forbids declaration of `aImageCache' with no type ../../../dist/include/gfx/nsIFreeType2.h:92: error: `FTC_Image_Cache' has not been declared ../../../dist/include/gfx/nsIFreeType2.h:92: error: `FTC_Image_Desc' has not been declared ../../../dist/include/gfx/nsIFreeType2.h:92: error: ISO C++ forbids declaration of `cache' with no type ../../../dist/include/gfx/nsIFreeType2.h:92: error: ISO C++ forbids declaration of `desc' with no type ../../../dist/include/gfx/nsIFreeType2.h:104: error: `FTC_Image_Cache' has not been declared ../../../dist/include/gfx/nsIFreeType2.h:104: error: ISO C++ forbids declaration of `cache' with no type In file included from nsFreeType.cpp:48: nsFreeType.h:57: warning: 'FT_Face': visibility attribute ignored because it /usr/include/freetype2/freetype/freetype.h:387: warning: conflicts with previous declaration here nsFreeType.h:123: error: typedef `FTC_Image_Cache_Lookup_t' is initialized (use __typeof__ instead) nsFreeType.h:123: error: `FTC_Image_Cache' was not declared in this scope nsFreeType.h:123: error: `FTC_Image_Desc' was not declared in this scope nsFreeType.h:123: error: expected primary-expression before ',' token nsFreeType.h:123: error: expected primary-expression before ',' token nsFreeType.h:123: error: expected primary-expression before '*' token nsFreeType.h:123: error: expected primary-expression before ')' token nsFreeType.h:129: error: `FTC_Image_Cache' has not been declared nsFreeType.h:129: error: ISO C++ forbids declaration of `parameter' with no type nsFreeType.h:161: error: `FTC_Image_Cache' has not been declared nsFreeType.h:161: error: ISO C++ forbids declaration of `aImageCache' with no type nsFreeType.h:161: error: `FTC_Image_Cache' has not been declared nsFreeType.h:161: error: `FTC_Image_Desc' has not been declared nsFreeType.h:161: error: ISO C++ forbids declaration of `cache' with no type nsFreeType.h:161: error: ISO C++ forbids declaration of `desc' with no type nsFreeType.h:161: error: `FTC_Image_Cache' has not been declared nsFreeType.h:161: error: ISO C++ forbids declaration of `cache' with no type nsFreeType.h:232: error: `FTC_Image_Cache' does not name a type nsFreeType.h:232: error: extra semicolon nsFreeType.cpp:101: warning: invalid access to non-static data member `nsFreeType2::nsFT_Done_Face' of NULL object nsFreeType.cpp:101: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:102: warning: invalid access to non-static data member `nsFreeType2::nsFT_Done_FreeType' of NULL object nsFreeType.cpp:102: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:103: warning: invalid access to non-static data member `nsFreeType2::nsFT_Done_Glyph' of NULL object nsFreeType.cpp:103: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:104: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Char_Index' of NULL object nsFreeType.cpp:104: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:105: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Glyph' of NULL object nsFreeType.cpp:105: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:106: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Sfnt_Table' of NULL object nsFreeType.cpp:106: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:107: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_Get_CBox' of NULL object nsFreeType.cpp:107: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:108: warning: invalid access to non-static data member `nsFreeType2::nsFT_Init_FreeType' of NULL object nsFreeType.cpp:108: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:109: warning: invalid access to non-static data member `nsFreeType2::nsFT_Load_Glyph' of NULL object nsFreeType.cpp:109: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:110: warning: invalid access to non-static data member `nsFreeType2::nsFT_New_Face' of NULL object nsFreeType.cpp:110: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:111: warning: invalid access to non-static data member `nsFreeType2::nsFT_Outline_Decompose' of NULL object nsFreeType.cpp:111: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:112: warning: invalid access to non-static data member `nsFreeType2::nsFT_Set_Charmap' of NULL object nsFreeType.cpp:112: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:113: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Image_Cache_Lookup' of NULL object nsFreeType.cpp:113: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:114: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Manager_Lookup_Size' of NULL object nsFreeType.cpp:114: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:115: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Manager_Done' of NULL object nsFreeType.cpp:115: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:116: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Manager_New' of NULL object nsFreeType.cpp:116: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:117: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Image_Cache_New' of NULL object nsFreeType.cpp:117: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:119: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_Transform' of NULL object nsFreeType.cpp:119: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:120: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Kerning' of NULL object nsFreeType.cpp:120: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:121: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_Copy' of NULL object nsFreeType.cpp:121: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:122: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_To_Bitmap' of NULL object nsFreeType.cpp:122: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:124: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_First_Char' of NULL object nsFreeType.cpp:124: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:125: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Next_Char' of NULL object nsFreeType.cpp:125: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:285: error: `nsresult nsFreeType2::ImageCacheLookup' is not a static member of `class nsFreeType2' nsFreeType.cpp:285: error: `FTC_Image_Cache' was not declared in this scope nsFreeType.cpp:285: error: `FTC_Image_Desc' was not declared in this scope nsFreeType.cpp:285: error: `desc' was not declared in this scope nsFreeType.cpp:286: error: expected primary-expression before "glyphID" nsFreeType.cpp:286: error: expected primary-expression before '*' token nsFreeType.cpp:286: error: `glyph' was not declared in this scope nsFreeType.cpp:287: error: initializer expression list treated as compound expression nsFreeType.cpp:287: error: expected `,' or `;' before '{' token nsFreeType.cpp:323: error: `FTC_Image_Cache' has not been declared nsFreeType.cpp:324: error: ISO C++ forbids declaration of `cache' with no type nsFreeType.cpp:392: error: `nsresult nsFreeType2::GetImageCache' is not a static member of `class nsFreeType2' nsFreeType.cpp:392: error: `FTC_Image_Cache' was not declared in this scope nsFreeType.cpp:392: error: `aCache' was not declared in this scope nsFreeType.cpp:393: error: expected `,' or `;' before '{' token nsFreeType.cpp: In member function `void nsFreeType2::ClearGlobals()': nsFreeType.cpp:429: error: `mImageCache' undeclared (first use this function) nsFreeType.cpp:429: error: (Each undeclared identifier is reported only once for each function it appears in.) nsFreeType.cpp: In member function `PRBool nsFreeType2::InitLibrary()': nsFreeType.cpp:668: error: `mImageCache' undeclared (first use this function) gmake[4]: *** [nsFreeType.o] Error 1 gmake[4]: Leaving directory `/scratch/mozilla/gfx/src/freetype' MOZ_DEBUG_FLAGS="-O0 -ggdb" CFLAGS="-O0 -ggdb" CXXFLAGS="-O0 -ggdb" ./configure --enable-debug --disable-optimize --enable-debug-modules=all --enable-debugger-info-modules --enable-detect-webshell-leaks --enable-svg --enable-svg-renderer-libart --enable-image-decoders=all --with-qtdir=/usr/qt/3 --enable-application=suite I see the following in configure's output: checking for socket in -lsocket... no checking for XDrawLines in -lX11... yes checking for XextAddDisplay in -lXext... yes checking for XtFree in -lXt... yes checking for XineramaIsActive in -lXinerama... yes checking for X11/extensions/Xinerama.h... yes checking for XShmCreateImage in -lXext... yes checking for X11/extensions/XShm.h... yes checking for XieFloGeometry in -lXIE... no checking for X11/extensions/XIElib.h... no checking for freetype-config... /usr/bin/freetype-config checking for FreeType - version >= 6.1.0... yes checking for pthread_create in -lpthreads... no checking for pthread_create in -lpthread... yes checking whether gcc accepts -pthread... yes checking whether mmap() sees write()s... yes checking whether gcc needs -traditional... no ... checking for gnu_get_libc_version()... yes checking for iconv in -lc... yes checking for iconv()... yes checking for iconv() with const input... no checking for nl_langinfo and CODESET... yes checking for an implementation of va_copy()... yes checking for an implementation of __va_copy()... yes checking whether va_lists can be copied by value... yes checking for C++ exceptions flag... -fno-exceptions checking for gcc 3.0 ABI... yes checking for C++ "explicit" keyword... yes checking for C++ "typename" keyword... yes checking for modern C++ template specialization syntax support... yes checking whether partial template specialization works... yes checking whether operators must be re-defined for templates derived from templates... no checking whether we need to cast a derived template to pass as its base class... no checking whether the compiler can resolve const ambiguities for templates... yes checking whether the C++ "using" keyword can change access... yes checking whether the C++ "using" keyword resolves ambiguity... yes checking for "std::" namespace... yes checking whether standard template operator!=() is ambiguous... unambiguous checking for C++ reinterpret_cast... yes checking for C++ dynamic_cast to void*... yes checking whether C++ requires implementation of unused virtual methods... yes checking for trouble comparing to zero near std::operator!=()... no checking for LC_MESSAGES... yes checking for gtk-config... /usr/bin/gtk-config checking for GTK - version >= 1.2.0... yes checking for XpGetPrinterList in -lXp... yes ... checking for gcc -pipe support... yes checking whether compiler supports -Wno-long-long... yes checking whether C compiler supports -fprofile-generate... yes checking whether C++ compiler has -pedantic long long bug... no checking for correct temporary object destruction order... yes checking for correct overload resolution with const and templates... no checking for glib-config... /usr/bin/glib-config checking for GLIB - version >= 1.2.0... yes checking for libIDL-config... /usr/bin/libIDL-config checking for libIDL - version >= 0.6.3... yes checking for working alloca.h... yes checking for alloca... yes It is NOT caused by having freetype and freetype2 installed concurrently. aquarius mozilla # ls -la /usr/include/freetype total 248 drwxr-xr-x 2 root root 234 Dec 22 19:31 . drwxr-xr-x 298 root root 24576 Mar 2 14:40 .. -rw-r--r-- 1 root root 44044 Dec 22 19:31 freetype.h -rw-r--r-- 1 root root 5551 Dec 22 19:31 fterrid.h -rw-r--r-- 1 root root 30284 Dec 22 19:31 ftnameid.h -rw-r--r-- 1 root root 1710 Dec 22 19:31 ftxcmap.h -rw-r--r-- 1 root root 1576 Dec 22 19:31 ftxerr18.h -rw-r--r-- 1 root root 1614 Dec 22 19:31 ftxgasp.h -rw-r--r-- 1 root root 6322 Dec 22 19:31 ftxgdef.h -rw-r--r-- 1 root root 25892 Dec 22 19:31 ftxgpos.h -rw-r--r-- 1 root root 20595 Dec 22 19:31 ftxgsub.h -rw-r--r-- 1 root root 6199 Dec 22 19:31 ftxkern.h -rw-r--r-- 1 root root 8600 Dec 22 19:31 ftxopen.h -rw-r--r-- 1 root root 2161 Dec 22 19:31 ftxpost.h -rw-r--r-- 1 root root 23446 Dec 22 19:31 ftxsbit.h -rw-r--r-- 1 root root 3462 Dec 22 19:31 ftxwidth.h aquarius mozilla # ls -la /usr/include/freetype2 total 40 drwxr-xr-x 3 root root 21 Sep 17 14:45 . drwxr-xr-x 298 root root 24576 Mar 2 14:40 .. drwxr-xr-x 5 root root 660 Feb 27 20:01 freetype aquarius mozilla # ls -la /usr/include/freetype2/freetype/ total 872 drwxr-xr-x 5 root root 660 Feb 27 20:01 . drwxr-xr-x 3 root root 21 Sep 17 14:45 .. drwxr-xr-x 2 root root 136 Feb 27 20:01 cache drwxr-xr-x 2 root root 91 Feb 27 20:01 config -rw-r--r-- 1 root root 201002 Feb 27 20:01 freetype.h -rw-r--r-- 1 root root 4549 Feb 27 20:01 ftbbox.h -rw-r--r-- 1 root root 6245 Feb 27 20:01 ftbdf.h -rw-r--r-- 1 root root 51376 Feb 27 20:01 ftcache.h -rw-r--r-- 1 root root 4920 Feb 27 20:01 ftchapters.h -rw-r--r-- 1 root root 11355 Feb 27 20:01 fterrdef.h -rw-r--r-- 1 root root 9753 Feb 27 20:01 fterrors.h -rw-r--r-- 1 root root 35987 Feb 27 20:01 ftglyph.h -rw-r--r-- 1 root root 4258 Feb 27 20:01 ftgzip.h -rw-r--r-- 1 root root 77838 Feb 27 20:01 ftimage.h -rw-r--r-- 1 root root 9547 Feb 27 20:01 ftincrem.h -rw-r--r-- 1 root root 16530 Feb 27 20:01 ftlist.h -rw-r--r-- 1 root root 4242 Feb 27 20:01 ftlzw.h -rw-r--r-- 1 root root 9902 Feb 27 20:01 ftmac.h -rw-r--r-- 1 root root 22712 Feb 27 20:01 ftmm.h -rw-r--r-- 1 root root 18335 Feb 27 20:01 ftmodapi.h -rw-r--r-- 1 root root 7365 Feb 27 20:01 ftmoderr.h -r--r--r-- 1 root root 17767 Sep 17 14:22 ftmodule.h -rw-r--r-- 1 root root 28148 Feb 27 20:01 ftoutln.h -rw-r--r-- 1 root root 6267 Feb 27 20:01 ftpfr.h -rw-r--r-- 1 root root 10957 Feb 27 20:01 ftrender.h -rw-r--r-- 1 root root 9561 Feb 27 20:01 ftsizes.h -rw-r--r-- 1 root root 9783 Feb 27 20:01 ftsnames.h -rw-r--r-- 1 root root 18859 Feb 27 20:01 ftstroke.h -r--r--r-- 1 root root 3599 Sep 17 14:22 ftstroker.h -rw-r--r-- 1 root root 3197 Feb 27 20:01 ftsynth.h -rw-r--r-- 1 root root 5606 Feb 27 20:01 ftsysio.h -rw-r--r-- 1 root root 6320 Feb 27 20:01 ftsysmem.h -rw-r--r-- 1 root root 18152 Feb 27 20:01 ftsystem.h -rw-r--r-- 1 root root 19009 Feb 27 20:01 fttrigon.h -rw-r--r-- 1 root root 33056 Feb 27 20:01 fttypes.h -rw-r--r-- 1 root root 9654 Feb 27 20:01 ftwinfnt.h -rw-r--r-- 1 root root 3081 Feb 27 20:01 ftxf86.h drwxr-xr-x 3 root root 643 Feb 27 20:01 internal -rw-r--r-- 1 root root 14785 Feb 27 20:01 t1tables.h -rw-r--r-- 1 root root 51870 Feb 27 20:01 ttnameid.h -rw-r--r-- 1 root root 37347 Feb 27 20:01 tttables.h -rw-r--r-- 1 root root 3730 Feb 27 20:01 tttags.h -rw-r--r-- 1 root root 2228 Feb 27 20:01 ttunpat.h aquarius mozilla # emerge unmerge freetype media-libs/freetype selected: 1.3.1-r4 2.1.9-r1 protected: none omitted: none >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. >>> Waiting 5 seconds before starting... After uninstalling both and reinstalling freetype2 only, "make distclean", ./configure, I get still same compile error. I don't remember having problem with freetype2 & mozilla anytime recently. Is that a new bug in cvs? Reproducible: Always
Reporter: As a workaround use --disable-freetype2 in your .mozconfig or downgrade to Freetype 2.1.17. *** This bug has been marked as a duplicate of 234035 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.