View Issue Details

IDProjectCategoryView StatusLast Update
0017508ScribusBuild Systempublic2025-04-28 16:03
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?

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