Scribus Forums

Scribus => Installation and Setup => Linux => Topic started by: licheng on June 17, 2024, 04:57:43 AM

Title: [SOLVED] Scribus 1.6.2 was not able to compile on Debian 12
Post by: licheng on June 17, 2024, 04:57:43 AM
Scribus 1.6.2 compiled successfully on Fedora 40 and Ubuntu 22.04, but failed on Debian 12.

Scribus 1.6.1 compiled without any problem on Debian 12.

Any suggestion?

By the way, I'm just an end user, not a developer.
Title: Re: Scribus 1.6.2 was not able to compile on Debian 12
Post by: a.l.e on June 17, 2024, 09:34:53 AM
you will need to share the error message.

you can paste it in a text file and attach it to a post.
Title: Re: Scribus 1.6.2 was not able to compile on Debian 12
Post by: licheng on June 17, 2024, 03:03:36 PM
This is the screenshot of the error message.

(https://i.imgur.com/gKQkPiD.jpg)
Title: Re: Scribus 1.6.2 was not able to compile on Debian 12
Post by: a.l.e on June 18, 2024, 10:36:39 AM
sometimes, i wonder if people have lost the skill to copy paste text and only can do screenshots : - )

anyway, for the little that is visible in the screenshot, i would say that this is not a "typical" error due to missing dependencies.

i googled the error "against hidden symbol pkgcontext" and this is what i've found:

https://stackoverflow.com/questions/19768267/relocation-r-x86-64-32s-against-linking-error

since you're compiling a release version of scribus, instead of using a binary (packaged by your distribution or in the appimage), i wonder if you also have a self compiled python, with incompatible flags (as the stackoverflow answer hints).

another source for the issue, could be that you're mixing old and new compiled files, while having had an update of system installed libraries...
but you seem to use a "scribus-1.6.2" which seems to hint to a newly created directory.
Title: Re: Scribus 1.6.2 was not able to compile on Debian 12
Post by: jghali on June 18, 2024, 03:17:08 PM
I installed a Debian 12 virtual machines yesterday and managed to build Scribus 1.6.2 on it successfully. But Debian 12 comes with Python 11, not 12, so I also suspect a custom Python, presumably built without -fPIC option.
Title: Re: Scribus 1.6.2 was not able to compile on Debian 12
Post by: licheng on June 19, 2024, 04:44:05 AM
Thanks a.l.e and jghali, you're right.

I have a self compiled version of Python (3.12.3), everything works as expected when I remove it.

I'm a long time Scribus user, I use it to make photo books, postcards, posters and zines. I'm used to compiling Scribus myself just to make sure I can use Scribus no matter what OS I have.

(https://i.imgur.com/lGaIknp.jpeg)

Thank you for your great help.
Title: Re: Scribus 1.6.2 was not able to compile on Debian 12
Post by: licheng on June 20, 2024, 06:39:15 AM
I recompile Python 3.12.4 myself with the "-fPIC" option and install it on Debian 12, then recompile Scribus 1.16.2 and it works fine.

jghali, thanks for the tip, I really appreciate it.