php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79708 pecl-solr fails to compile for php 7.4 versions on FreeBSD
Submitted: 2020-06-17 21:02 UTC Modified: 2020-06-28 07:55 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: hagabard at gmail dot com Assigned: omars (profile)
Status: Verified Package: solr (PECL)
PHP Version: 7.4.7 OS: FreeBSD 11.3, Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hagabard at gmail dot com
New email:
PHP Version: OS:

 

 [2020-06-17 21:02 UTC] hagabard at gmail dot com
Description:
------------
The extension fails to compile with undefined type ulong

I added a typedef to line 56 of solr_types.h and now it compiles:

--- solr_types.h.dist	2020-06-17 13:51:19.855753000 -0700
+++ solr_types.h	2020-06-16 16:32:27.191956000 -0700
@@ -53,6 +53,7 @@
 #include <libxml/tree.h>
 
 typedef unsigned char solr_bool;
+typedef unsigned long   ulong;            /* Short for unsigned long */
 
 #include "solr_string.h"


 


Test script:
---------------
Extract source
cd /usr/local/src/pecl-solr
phpize
./configure
make
make install

Expected result:
----------------
I expect the extension to compile and install

Actual result:
--------------
Fails because there is no typedef for ulong

Patches

php74_pecl_solr_types_patch.diff (last revision 2020-06-17 21:02 UTC by hagabard at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-06-17 21:02 UTC] hagabard at gmail dot com
The following patch has been added/updated:

Patch Name: php74_pecl_solr_types_patch.diff
Revision:   1592427754
URL:        https://bugs.php.net/patch-display.php?bug=79708&patch=php74_pecl_solr_types_patch.diff&revision=1592427754
 [2020-06-18 11:59 UTC] cmb@php.net
-Status: Open +Status: Verified -Operating System: FreeBSD 11.3 +Operating System: FreeBSD 11.3, Windows
 [2020-06-18 11:59 UTC] cmb@php.net
That does affect Windows as well (and likely also macOS).
 [2020-06-28 07:51 UTC] omars@php.net
thanks
 [2020-06-28 07:55 UTC] omars@php.net
-Assigned To: +Assigned To: omars
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC