Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild of MLT is failing with prepared SWIG 4.1.0 #820

Closed
jplesnik opened this issue Sep 15, 2022 · 0 comments
Closed

Rebuild of MLT is failing with prepared SWIG 4.1.0 #820

jplesnik opened this issue Sep 15, 2022 · 0 comments
Labels
Milestone

Comments

@jplesnik
Copy link

SWIG 4.1.0 is closed to final release and I trying to rebuild all its dependencies in Fedora 38(Rawhide).

I tried to rebuild MLT 7.8.0 with prepared SWIG 4.1.0 and I found that the build is failing with following error:

CMake Error at redhat-linux-build/src/swig/php/cmake_install.cmake:56 (file):
  file INSTALL cannot find
  "/builddir/build/BUILD/mlt-7.8.0/redhat-linux-build/src/swig/php/mlt.php":
  No such file or directory.
Call Stack (most recent call first):
  redhat-linux-build/src/swig/cmake_install.cmake:47 (include)
  redhat-linux-build/src/cmake_install.cmake:67 (include)
  redhat-linux-build/cmake_install.cmake:62 (include)

The complete build log is here.

The SWIG upstream look on it and they found that it is due to:

2021-05-04: olly
   [PHP] #1982 #1457 https://sourceforge.net/p/swig/bugs/1339/
   SWIG now only use PHP's C API to implement its wrappers, and no
   longer generates PHP code to define classes.  The wrappers should
   be almost entirely compatible with those generated before, but
   faster and without some previously hard-to-fix bugs.

   The main notable difference is SWIG no longer generates a .php
   wrapper at all by default (only if %pragma(php) code=... or
   %pragma(php) include=... are specified in the interface file).
   This also means you need to load the module via extension=...
   in php.ini, rather than letting the dl() in the generated
   .php wrapper load it (but dl() has only worked for command-line
   PHP for some years now).

   *** POTENTIAL INCOMPATIBILITY ***

So this file no longer exists and can't be deployed.

@ddennedy ddennedy added this to the v7.10.0 milestone Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants