Skip to content

php8{1-3}Extensions.phalcon: fix compilation with gcc 14 - #375869

Merged
drupol merged 1 commit into
NixOS:masterfrom
piotrkwiecinski:php-phalcon-gcc-14
Jan 22, 2025
Merged

drupol merged 1 commit into
NixOS:masterfrom
piotrkwiecinski:php-phalcon-gcc-14

Conversation

@piotrkwiecinski

Copy link
Copy Markdown
Contributor

https://hydra.nixos.org/build/285460555/nixlog/2

Relevant part:

/build/source/build/phalcon/phalcon.zep.c: In function 'php_zephir_init_globals':
/build/source/build/phalcon/phalcon.zep.c:207311:57: error: assignment to 'zend_string *' {aka 'struct _zend_string *'} from incompatible pointer type 'char *' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;]
207311 |         phalcon_globals->orm.resultset_prefetch_records = ZSTR_VAL(zend_string_init(ZEND_STRL("0"), 0));
       |                                                         ^

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added 6.topic: php PHP is a general-purpose scripting language geared towards web development. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 22, 2025
@piotrkwiecinski

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 375869


x86_64-linux

⏩ 1 package marked as broken and skipped:
  • php84Extensions.phalcon
✅ 3 packages built:
  • php81Extensions.phalcon
  • php82Extensions.phalcon
  • php83Extensions.phalcon

@piotrkwiecinski
piotrkwiecinski marked this pull request as ready for review January 22, 2025 16:57
@nix-owners
nix-owners Bot requested a review from globin January 22, 2025 16:59
@drupol
drupol merged commit d2b0771 into NixOS:master Jan 22, 2025
@piotrkwiecinski
piotrkwiecinski deleted the php-phalcon-gcc-14 branch January 22, 2025 20:01
@Sigmanificient Sigmanificient mentioned this pull request Mar 8, 2025
27 of 28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: php PHP is a general-purpose scripting language geared towards web development. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants