Opened 3 years ago

Closed 3 years ago

#65155 closed defect (invalid)

texlive-bin fails to build for x86_64 on 10.6.8: SecKeychain.h errors

Reported by: barracuda156 Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: x86_64, snowleopard Cc:
Port: texlive-bin

Description

In file included from /System/Library/Frameworks/Security.framework/Headers/Security.h:57,
                 from /System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:14,
                 from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:79,
                 from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
                 from /opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-2022.62882-stripped/texk/web2c/xetexdir/XeTeXFontMgr_Mac.mm:44:
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:102:46: error: shift expression '(1853123693 << 8)' overflows [-fpermissive]
  102 |     kSecAuthenticationTypeNTLM             = AUTH_TYPE_FIX_ ('ntlm'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:102:46: error: enumerator value for 'kSecAuthenticationTypeNTLM' is not an integer constant
  102 |     kSecAuthenticationTypeNTLM             = AUTH_TYPE_FIX_ ('ntlm'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:103:46: error: shift expression '(1836281441 << 8)' overflows [-fpermissive]
  103 |     kSecAuthenticationTypeMSN              = AUTH_TYPE_FIX_ ('msna'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:103:46: error: enumerator value for 'kSecAuthenticationTypeMSN' is not an integer constant
  103 |     kSecAuthenticationTypeMSN              = AUTH_TYPE_FIX_ ('msna'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:104:46: error: shift expression '(1685086561 << 8)' overflows [-fpermissive]
  104 |     kSecAuthenticationTypeDPA              = AUTH_TYPE_FIX_ ('dpaa'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:104:46: error: enumerator value for 'kSecAuthenticationTypeDPA' is not an integer constant
  104 |     kSecAuthenticationTypeDPA              = AUTH_TYPE_FIX_ ('dpaa'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:105:46: error: shift expression '(1919967585 << 8)' overflows [-fpermissive]
  105 |     kSecAuthenticationTypeRPA              = AUTH_TYPE_FIX_ ('rpaa'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:105:46: error: enumerator value for 'kSecAuthenticationTypeRPA' is not an integer constant
  105 |     kSecAuthenticationTypeRPA              = AUTH_TYPE_FIX_ ('rpaa'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:106:46: error: shift expression '(1752462448 << 8)' overflows [-fpermissive]
  106 |     kSecAuthenticationTypeHTTPBasic        = AUTH_TYPE_FIX_ ('http'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:106:46: error: enumerator value for 'kSecAuthenticationTypeHTTPBasic' is not an integer constant
  106 |     kSecAuthenticationTypeHTTPBasic        = AUTH_TYPE_FIX_ ('http'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:107:46: error: shift expression '(1752462436 << 8)' overflows [-fpermissive]
  107 |     kSecAuthenticationTypeHTTPDigest       = AUTH_TYPE_FIX_ ('httd'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:107:46: error: enumerator value for 'kSecAuthenticationTypeHTTPDigest' is not an integer constant
  107 |     kSecAuthenticationTypeHTTPDigest       = AUTH_TYPE_FIX_ ('httd'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:108:46: error: shift expression '(1718579821 << 8)' overflows [-fpermissive]
  108 |     kSecAuthenticationTypeHTMLForm         = AUTH_TYPE_FIX_ ('form'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:108:46: error: enumerator value for 'kSecAuthenticationTypeHTMLForm' is not an integer constant
  108 |     kSecAuthenticationTypeHTMLForm         = AUTH_TYPE_FIX_ ('form'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:109:46: error: shift expression '(1684434036 << 8)' overflows [-fpermissive]
  109 |     kSecAuthenticationTypeDefault          = AUTH_TYPE_FIX_ ('dflt'),
      |                                              ^~~~~~~~~~~~~~
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:109:46: error: enumerator value for 'kSecAuthenticationTypeDefault' is not an integer constant
  109 |     kSecAuthenticationTypeDefault          = AUTH_TYPE_FIX_ ('dflt'),
      |                                              ^~~~~~~~~~~~~~
make[5]: *** [xetexdir/libxetex_a-XeTeXFontMgr_Mac.o] Error 1
make[5]: *** Waiting for unfinished jobs....
mv -f .deps/aleph-aleph0.Tpo .deps/aleph-aleph0.Po
make[5]: Leaving directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/build/texk/web2c'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/build/texk/web2c'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/build/texk/web2c'
make[2]: *** [recurse] Error 1
make[2]: Leaving directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/build/texk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/build/texk'
make: *** [all-recursive] Error 1

Attachments (2)

config.log (77.9 KB) - added by barracuda156 3 years ago.
main.log (3.0 MB) - added by barracuda156 3 years ago.

Change History (8)

Changed 3 years ago by barracuda156

Attachment: config.log added

Changed 3 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 3 years ago by kencu (Ken)

usually, adding the exact flag the error suggests fixes this:

-fpermissive

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Dan, be aware that this build has overridden the compiler selection. We can't currently build texlive-bin on the buildbot for 10.6 because poppler is failing, so it's not clear whether it would work with the default clang-11.

comment:3 in reply to:  1 Changed 3 years ago by barracuda156

Replying to kencu:

usually, adding the exact flag the error suggests fixes this:

-fpermissive

Indeed, it worked! Thank you.

macmini:bin svacchanda$ ./port -v installed texlive-bin
The following ports are currently installed:
  texlive-bin @2022.62882_0+x11 (active) requested_variants='' platform='darwin 10' archs='x86_64' date='2022-05-10T22:50:05+0800'

comment:4 in reply to:  2 Changed 3 years ago by barracuda156

Replying to jmroot:

Dan, be aware that this build has overridden the compiler selection. We can't currently build texlive-bin on the buildbot for 10.6 because poppler is failing, so it's not clear whether it would work with the default clang-11.

Why poppler fails by the way?

macmini:bin svacchanda$ ./port -v installed poppler
The following ports are currently installed:
  poppler @22.04.0_0+boost (active) requested_variants='' platform='darwin 10' archs='x86_64' date='2022-05-10T21:03:00+0800'

comment:5 Changed 3 years ago by barracuda156

Oddly enough, there is no issues on PPC, apparently. I wanted to try building it on 10A190 and discovered it is already built and installed.

comment:6 in reply to:  2 Changed 3 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: assignedclosed

Replying to jmroot:

Dan, be aware that this build has overridden the compiler selection. We can't currently build texlive-bin on the buildbot for 10.6 because poppler is failing, so it's not clear whether it would work with the default clang-11.

Turns out it builds fine. https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/103439

Note: See TracTickets for help on using tickets.