|  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
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hagabard at gmail dot com
New email:
PHP Version: OS:


 [2020-06-17 21:02 UTC] hagabard at gmail dot com
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
make install

Expected result:
I expect the extension to compile and install

Actual result:
Fails because there is no typedef for ulong


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


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
 [2020-06-18 11:59 UTC]
-Status: Open +Status: Verified -Operating System: FreeBSD 11.3 +Operating System: FreeBSD 11.3, Windows
 [2020-06-18 11:59 UTC]
That does affect Windows as well (and likely also macOS).
 [2020-06-28 07:51 UTC]
 [2020-06-28 07:55 UTC]
-Assigned To: +Assigned To: omars
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 09:01:28 2024 UTC