Re: Failed: phase compiling: freetype219-2.10.4-1 failed

Luigi Ernesto Zanotti <[email protected]>
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
On 10.14.6 freetype219 (2.12.1-1) builds smoothly, but it is'nt 
(2.12.2). why this difference?
                                             Luigi Zanotti

On 16/01/2023 07:29, Daniel Macks wrote:
> I pushed a new package-version (2.12.2), which has these commented-out lines in its PatchScript:
>
>         #mv src/base/ftmac{,_real}.c
>         #mv src/base/ftmac{_unimplemented,}.c
>
> If anyone has a platform where this package fails to build due to FS* or ATS* symbol errors, please try uncommenting them. If that fixes it, we can decide which platforms actually need to have this work-around activated. There are at worst only warnings (not errors)  up through 10.13.
>
> dan
>
> On 1/15/23, 11:35 PM, "Daniel Macks"<[email protected]>  wrote:
>
>      Work-in-progress:
>
>      https://github.com/dmacks/fink-distributions/commit/10505d1258b93b7090f41eba3d761a2fb51f571c
>
>      uncommenting the two `mv` commands in the "# Work-around..." section might solve it. I don't know what platforms actually need this, so I can't write the shell if/then to apply it for them.
>
>      dan
>
>      On 1/15/23, 5:58 PM, "Daniel Macks"<[email protected]>  wrote:
>
>          This ishttps://gitlab.freedesktop.org/freetype/freetype/-/issues/448
>
>          where some long-deprecated functions have now actually been removed. There is a newer upstream freetype219, but it has the same sitauation. I'm working on possible solutions/work-arounds.
>
>          dan
>
>          On 1/15/23, 5:16 PM, "Franchetti, Giuliano Dr."<[email protected]>  wrote:
>
>              these are the errors
>
>              .
>              .
>              .
>                          ^
>              libtool: compile:  gcc -pedantic -ansi -I/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/pcf -I/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/objs -I./builds/unix -I/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include -MD -I/opt/sw2/include -c -Wall -g -O2 -fvisibility=hidden -DFT_MACINTOSH -DHAVE_ANSI_OS_INLINE=1 -DHAVE_TYPE_RESOURCE_INDEX=1 -I/opt/sw2/include/libpng16 -I/opt/sw2/include "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" "-DFT_CONFIG_MODULES_H=<ftmodule.h>" "-DFT_CONFIG_OPTIONS_H=<ftoption.h>" -DFT2_BUILD_LIBRARY /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/pcf/pcf.c  -fno-common -DPIC -o /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/objs/.libs/pcf.o
>              libtool: compile:  gcc -pedantic -ansi -I/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/bdf -I/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/objs -I./builds/unix -I/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include -MD -I/opt/sw2/include -c -Wall -g -O2 -fvisibility=hidden -DFT_MACINTOSH -DHAVE_ANSI_OS_INLINE=1 -DHAVE_TYPE_RESOURCE_INDEX=1 -I/opt/sw2/include/libpng16 -I/opt/sw2/include "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" "-DFT_CONFIG_MODULES_H=<ftmodule.h>" "-DFT_CONFIG_OPTIONS_H=<ftoption.h>" -DFT2_BUILD_LIBRARY /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/bdf/bdf.c  -fno-common -DPIC -o /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/objs/.libs/bdf.o
>              libtool: compile:  gcc -pedantic -ansi -I/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/sfnt -I/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/objs -I./builds/unix -I/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include -MD -I/opt/sw2/include -c -Wall -g -O2 -fvisibility=hidden -DFT_MACINTOSH -DHAVE_ANSI_OS_INLINE=1 -DHAVE_TYPE_RESOURCE_INDEX=1 -I/opt/sw2/include/libpng16 -I/opt/sw2/include "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" "-DFT_CONFIG_MODULES_H=<ftmodule.h>" "-DFT_CONFIG_OPTIONS_H=<ftoption.h>" -DFT2_BUILD_LIBRARY /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/sfnt/sfnt.c  -fno-common -DPIC -o /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/objs/.libs/sfnt.o
>              In file included from /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/base/ftbase.c:30:
>              /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/base/ftmac.c:151:11: error: implicit declaration of function 'ATSFontGetFileReference' [-Werror,-Wimplicit-function-declaration]
>                  err = ATSFontGetFileReference( ats_font_id, ats_font_ref );
>                        ^
>              /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/base/ftmac.c:151:11: note: did you mean 'FT_ATSFontGetFileReference'?
>              /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/base/ftmac.c:143:3: note: 'FT_ATSFontGetFileReference' declared here
>                FT_ATSFontGetFileReference( ATSFontRef  ats_font_id,
>                ^
>              /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/base/ftmac.c:187:19: error: 'ATSFontFindFromName' is unavailable
>                  ats_font_id = ATSFontFindFromName( cf_fontName,
>                                ^
>              /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:811:1: note: 'ATSFontFindFromName' has been explicitly marked unavailable here
>              ATSFontFindFromName(
>              ^
>              In file included from /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/base/ftbase.c:30:
>              /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/base/ftmac.c:208:23: warning: 'FSCompareFSRefs' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
>                      if ( noErr != FSCompareFSRefs( ats_font_ref, &ref2 ) )
>                                    ^
>              /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:1850:15: note: 'FSCompareFSRefs' has been explicitly marked deprecated here
>              extern OSErr  FSCompareFSRefs(const FSRef *ref1, const FSRef *ref2)                     __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
>                            ^
>              .
>              .
>              .
>
>
>
>              > On 15. Jan 2023, at 23:09, Franchetti, Giuliano Dr.<[email protected]>  wrote:
>              >
>              > Hi,
>              >
>              > texlive, cernlib2006, emacs26 need freetype219 which does not compile.
>              > Below the error
>              >
>              > Giuliano
>              >
>              >
>              > .
>              > .
>              > .
>              > .
>              > /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftcalc.h:198:5: warning: 'long long' is an extension when C99 mode is not                                                     enabled [-Wlong-long]
>              > /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftcalc.h:198:5: warning:     long long  ret, tmp;
>              >    ^
>              > 'long long' is an extension when C99 mode is not enabled [-Wlong-long]
>              > /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftcalc.h:198:5: warning: 'long long' is an extension when C99 mode is not                                                     enabled [-Wlong-long]
>              > /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftcalc.h:201:13: warning: 'long long' is an extension when C99 mode is not                                                     enabled [-Wlong-long]/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftcalc.h:
>              > 201:13: warning:     ret  = (long long)a * b;'long long' is an extension when C99 mode is not enabled [-Wlong-long]
>              >
>              >            ^
>              >    ret  = (long long)a * b;
>              >            ^
>              > In file included from /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/sfnt/sfnt.c:21:
>              > In file included from /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/src/sfnt/pngshim.c:21:
>              > In file included from /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftstream.h:25:
>              > In file included from /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftobjs.h:37:
>              > /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftcalc.h:198:5: warning: 'long long' is an extension when C99 mode is not                                                     enabled [-Wlong-long]
>              >    long long  ret, tmp;
>              >    ^
>              > /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftcalc.h:198:5: warning: 'long long' is an extension when C99 mode is not enabled [-Wlong-long]
>              > /opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/include/freetype/internal/ftcalc.h:201:13: warning: 'long long' is an extension when C99 mode is not enabled [-Wlong-long]
>              >    ret  = (long long)a * b;
>              >            ^
>              > 40 warnings and 2 errors generated.
>              > make: *** [/opt/sw2/src/fink.build/freetype219-2.10.4-1/freetype-2.10.4/objs/ftbase.lo] Error 1
>              > make: *** Waiting for unfinished jobs....
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > 3 warnings generated.
>              > ### execution of /usr/bin/make failed, exit code 2
>              > ### execution of /tmp/fink.lnGPZ failed, exit code 2
>              > Removing runtime build-lock...
>              > Removing build-lock package...
>              > /opt/sw2/bin/dpkg-lockwait -r fink-buildlock-freetype219-2.10.4-1
>              > (Reading database ... 39225 files and directories currently installed.)
>              > Removing fink-buildlock-freetype219-2.10.4-1 (2023.01.15-23.02.32) ...
>              > Failed: phase compiling: freetype219-2.10.4-1 failed
>              >
>              > Before reporting any errors, please run "fink selfupdate" and try again.
>              > Also try using "fink configure" to set your maximum build jobs to 1 and
>              > attempt to build the package again.
>              > If you continue to have issues, please check to see if the FAQ on Fink's
>              > website solves the problem.  If not, ask on one (not both, please) of
>              > these mailing lists:
>              >
>              >        The Fink Users List<[email protected]>
>              >        The Fink Beginners List<[email protected]>.
>              >
>              > Please try to include the complete error message in your report.  This
>              > generally consists of a compiler line starting with e.g. "gcc" or "g++"
>              > followed by the actual error output from the compiler.
>              >
>              > Also include the following system information:
>              > Package manager version: 0.45.99.git
>              > Distribution version: selfupdate-rsync Sun Jan 15 20:14:36 2023, 13.0, x86_64
>              > Trees: local/main stable/main
>              > Xcode.app: 14.2
>              > Xcode command-line tools: 14.2.0.0.1.1668646533
>              > Max. Fink build jobs:  12
>              >
>              >
>              >
>              > _______________________________________________
>              > Fink-users mailing list
>              >[email protected]
>              > List archive:
>              >https://sourceforge.net/p/fink/mailman/fink-users/
>              > Subscription management:
>              >https://lists.sourceforge.net/lists/listinfo/fink-users
>
>
>
>              _______________________________________________
>              Fink-users mailing list
>              [email protected]
>              List archive:
>              https://sourceforge.net/p/fink/mailman/fink-users/
>              Subscription management:
>              https://lists.sourceforge.net/lists/listinfo/fink-users
>
>
>
>
>
>          _______________________________________________
>          Fink-users mailing list
>          [email protected]
>          List archive:
>          https://sourceforge.net/p/fink/mailman/fink-users/
>          Subscription management:
>          https://lists.sourceforge.net/lists/listinfo/fink-users
>
>
>
>
>
>      _______________________________________________
>      Fink-users mailing list
>      [email protected]
>      List archive:
>      https://sourceforge.net/p/fink/mailman/fink-users/
>      Subscription management:
>      https://lists.sourceforge.net/lists/listinfo/fink-users
>
>
>
>
>
> _______________________________________________
> Fink-users mailing list
> [email protected]
> List archive:
> https://sourceforge.net/p/fink/mailman/fink-users/
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-users

-- 
Prof. Luigi Ernesto Zanotti (retired)

Physics Department "G. Occhialini"
University of Milano Bicocca

Piazza della Scienza 3. 20126 Milano Italy
E-Mail:[email protected]

_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.