Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2024 12:01:26 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0d369b8db5b7 - main - science/orthanc: fix build on 32-bits
Message-ID:  <202408041201.474C1QZS013192@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d369b8db5b784b91280fb42cd41dbc4a8fcecbc

commit 0d369b8db5b784b91280fb42cd41dbc4a8fcecbc
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-08-01 22:03:58 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-08-04 12:00:46 +0000

    science/orthanc: fix build on 32-bits
    
    /wrkdirs/usr/ports/science/orthanc/work/Orthanc-1.12.3/OrthancFramework/Sources/Images/JpegWriter.cpp:199:5: error: no matching function for call to 'jpeg_mem_dest'
      199 |     jpeg_mem_dest(&cinfo, &data, &size);
          |     ^~~~~~~~~~~~~
    /usr/local/include/jpeglib.h:974:14: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned int *') to 'unsigned long *' for 3rd argument
      974 | EXTERN(void) jpeg_mem_dest(j_compress_ptr cinfo, unsigned char **outbuffer,
          |              ^
      975 |                            unsigned long *outsize);
          |                            ~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
---
 .../patch-OrthancFramework_Sources_Images_JpegWriter.cpp      | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/science/orthanc/files/patch-OrthancFramework_Sources_Images_JpegWriter.cpp b/science/orthanc/files/patch-OrthancFramework_Sources_Images_JpegWriter.cpp
new file mode 100644
index 000000000000..83ca26cff878
--- /dev/null
+++ b/science/orthanc/files/patch-OrthancFramework_Sources_Images_JpegWriter.cpp
@@ -0,0 +1,11 @@
+--- OrthancFramework/Sources/Images/JpegWriter.cpp.orig	2024-08-01 21:59:25 UTC
++++ OrthancFramework/Sources/Images/JpegWriter.cpp
+@@ -177,7 +177,7 @@ namespace Orthanc
+     Internals::JpegErrorManager jerr;
+ 
+     unsigned char* data = NULL;
+-    size_t size;
++    unsigned long size;
+ 
+     if (setjmp(jerr.GetJumpBuffer())) 
+     {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408041201.474C1QZS013192>