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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
44 + 28 = ?
Subscribe to this entry?

 
 [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-2020 The PHP Group
All rights reserved.
Last updated: Tue Dec 01 12:02:32 2020 UTC