Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2023 09:30:39 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ff1f6373307a - main - net/pecl-smbclient: Fix build with Clang 16 on i386
Message-ID:  <202308260930.37Q9Udbu089652@gitrepo.freebsd.org>

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

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

commit ff1f6373307affd657ab90b40701a5500783e484
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-08-26 09:27:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-08-26 09:27:27 +0000

    net/pecl-smbclient: Fix build with Clang 16 on i386
    
    /wrkdirs/usr/ports/net/pecl-smbclient/work-php80/smbclient-1.1.1/smb_streams.c:328:2: error: incompatible function pointer types initializing 'int (*)(php_stream *, zend_off_t, int, zend_off_t *)' (aka 'int (*)(struct _php_stream *, int, int, int *)') with an expression of type 'int (php_stream *, off_t, int, off_t *)' (aka 'int (struct _php_stream *, long long, int, long long *)') [-Wincompatible-function-pointer-types]
            php_smb_ops_seek,
            ^~~~~~~~~~~~~~~~
    1 error generated.
---
 net/pecl-smbclient/files/patch-smb_streams.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/net/pecl-smbclient/files/patch-smb_streams.c b/net/pecl-smbclient/files/patch-smb_streams.c
new file mode 100644
index 000000000000..29df0d7c1415
--- /dev/null
+++ b/net/pecl-smbclient/files/patch-smb_streams.c
@@ -0,0 +1,11 @@
+--- smb_streams.c.orig	2023-04-17 03:27:10 UTC
++++ smb_streams.c
+@@ -270,7 +270,7 @@ static int php_smb_ops_stat(php_stream *stream, php_st
+ 	return 0;
+ }
+ 
+-static int php_smb_ops_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC)
++static int php_smb_ops_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset TSRMLS_DC)
+ {
+ 	STREAM_DATA_FROM_STREAM();
+ 



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