View Issue Details

IDProjectCategoryView StatusLast Update
0017508ScribusBuild Systempublic2025-04-29 06:39
Reporterlandry Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version1.7.0 
Summary0017508: building on OpenBSD/i386/32-bits fails because "call to 'toPdf' is ambiguous"
Descriptioncf https://github.com/scribusproject/scribus/issues/196

the patch just ensures the right `toPdf` variant exists on OpenBSD:


-#if !defined(Q_OS_WIN) && (Q_PROCESSOR_WORDSIZE != 4)
+#if (!defined(Q_OS_WIN) && (Q_PROCESSOR_WORDSIZE != 4)) || defined(__OpenBSD__)
Additional Informationcurrently rebuilding with the attached patch, my initial patch dropped the #if and works on amd64 and i386
TagsNo tags attached.
PatchYes

Activities

landry

2025-04-28 06:44

reporter  

patch-scribus_pdfwriter_h (402 bytes)   
fix build on i386

https://github.com/scribusproject/scribus/issues/196

Index: scribus/pdfwriter.h
--- scribus/pdfwriter.h.orig
+++ scribus/pdfwriter.h
@@ -83,7 +83,7 @@ namespace Pdf
 	/**
 	 Cf. PDF32000-2008, 7.3.3
 	 */
-#if !defined(Q_OS_WIN) && (Q_PROCESSOR_WORDSIZE != 4)
+#if (!defined(Q_OS_WIN) && (Q_PROCESSOR_WORDSIZE != 4)) || defined(__OpenBSD__)
 	QByteArray toPdf(size_t v);
 #endif
 	
patch-scribus_pdfwriter_h (402 bytes)   

ale

2025-04-28 16:03

manager   ~0052482

are you sure that openbsd cannot be 64 bits?

landry

2025-04-29 06:39

reporter   ~0052484

OpenBSD/amd64 is 64 bits, OpenBSD/i386 is 32 bits.

The initial patch i tested/commited to our portstree in https://github.com/openbsd/ports/commit/abce6c2658f35d2049375a3b6543072997b18cdc is just removing completely the #if/#endif, so defining QByteArray toPdf(size_t v) in all cases, that fixed the build on OpenBSD/i386, and still built on OpenBSD/amd64.

and now that i've said that and relooked at my commit, i realize that the same change needs to be applied to scribus/pdfwriter.cpp and scribus/scxmlstreamwriter.h

Issue History

Date Modified Username Field Change
2025-04-28 06:44 landry New Issue
2025-04-28 06:44 landry File Added: patch-scribus_pdfwriter_h
2025-04-28 16:03 ale Note Added: 0052482
2025-04-29 06:39 landry Note Added: 0052484