View Issue Details

IDProjectCategoryView StatusLast Update
0017307ScribusBuild Systempublic2024-11-10 17:53
ReporterAntiz Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
PlatformLinuxOSArch LinuxOS VersionN/A
Summary0017307: Scribus 1.6.2 fails to build against poppler 24.11.0
DescriptionHi,

Scribus 1.6.2 fails to build against poppler 24.11.0 because it includes some headers that were removed on poppler side [1], resulting in the following type of error:

```
fatal error: poppler/ViewerPreferences.h: No such file or directory
```

We (Arch Linux) tried to apply some patches [2] [3] that supposedly fix the build with popper 24.11.0 but it didn't help.
For what it's worth, we also tried simply removing obsolete includes (e.g. in [4]), but it doesn't seem enough to fix the build (results in e.g.: `error: invalid use of incomplete type ‘class ViewerPreferences’`).

You can see how build instructions for Scribus in our related build script [5].

Full build logs are available at [6].

[1] https://gitlab.freedesktop.org/poppler/poppler/-/commit/4a7665d584b69bef03c787a28f5a1b7a6cb22c65
[2] https://github.com/scribusproject/scribus/commit/c9490423c8d4819ecb35af7b7f2cad581b5219da
[3] https://github.com/scribusproject/scribus/commit/16b660d4d2a7f4cb4cb7775f72ec026197278838
[4] https://github.com/scribusproject/scribus/blob/fd03f995090cff513a604b847dd63d5049cc14b8/scribus/plugins/import/pdf/importpdf.cpp#L25
[5] https://gitlab.archlinux.org/archlinux/packaging/packages/scribus/-/blob/main/PKGBUILD?ref_type=heads#L63
[6] https://gist.github.com/Antiz96/ab31379800057414d45fcddb7c5bbc8f
Steps To Reproduce1 - Build scribus 1.6.2 against poppler 24.11.0
2 - See error

--

Arch Linux specific instructions (to be executed from an Arch Linux environment)

1 - sudo pacman -S devtools # Install Arch packaging tooling
2 - pkgctl repo clone --protocol=https scribus # Clone our Scribus package GitLab repo
3 - cd scribus # `cd` into the cloned repo
4 - pkgctl build --staging # Build Scribus against our staging repository (which contains poppler 24.11.0)
5 - See error
Tagsbuild, fail, poppler
PatchNo

Relationships

duplicate of 0017308 closedjghali After poppler-update to 24.11 compilation stalls on importpdf (using revision 26402 ) 

Activities

Antiz

2024-11-08 11:48

reporter   ~0051541

Typo fixes:

"You can see -how +our build instructions for Scribus in our related build script [5]."

By the way, I remain available to share any additional information that could be needed or to test any patches :)

jghali

2024-11-10 17:50

administrator   ~0051556

Closing as duplicate of 0017308.

As mentionned in 0017308, the issue appears to be on poppler side due to incorrect removal of header of object exposed by public method of exported class.

Issue History

Date Modified Username Field Change
2024-11-08 11:43 Antiz New Issue
2024-11-08 11:43 Antiz Tag Attached: build
2024-11-08 11:43 Antiz Tag Attached: fail
2024-11-08 11:43 Antiz Tag Attached: poppler
2024-11-08 11:48 Antiz Note Added: 0051541
2024-11-10 17:47 jghali Project Infrastructure => Scribus
2024-11-10 17:50 jghali Assigned To => jghali
2024-11-10 17:50 jghali Status new => resolved
2024-11-10 17:50 jghali Resolution open => duplicate
2024-11-10 17:50 jghali Note Added: 0051556
2024-11-10 17:50 jghali Relationship added duplicate of 0017308
2024-11-10 17:50 jghali Status resolved => closed
2024-11-10 17:53 jghali Category General => Build System
2024-11-10 17:53 jghali Patch => No