View Issue Details

IDProjectCategoryView StatusLast Update
0000790Pgpool-IIBugpublic2023-05-22 11:47
Reporterleimaohui Assigned Tot-ishii  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Product Version4.4.1 
Target Version4.4.3Fixed in Version4.4.3 
Summary0000790: compile error with musl
DescriptionThe following error occurs when build pgpool-II with musl libc (git://git.musl-libc.org/musl).
-----------------------------------------------------------------------------------------
 read.c: In function 'read_until_ready_for_query':
 read.c:53:24: error: storage size of 'timeoutval' isn't known
    53 | struct timeval timeoutval;
       | ^~~~~~~~~~
 read.c:54:9: error: unknown type name 'fd_set'
    54 | fd_set readmask;
       | ^~~~~~

The following patch can fix this bug. But I'm not sure if I should paste my patch here:
-----------------------------------------------------------------------------------------
 src/tools/pgproto/read.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tools/pgproto/read.c b/src/tools/pgproto/read.c
index c7fb548..4efe641 100644
--- a/src/tools/pgproto/read.c
+++ b/src/tools/pgproto/read.c
@@ -19,6 +19,7 @@
 #include "../../include/config.h"
 #include "pgproto/pgproto.h"
 #include <unistd.h>
+#include <sys/select.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
--
2.34.1
TagsNo tags attached.

Activities

t-ishii

2023-03-22 21:00

developer   ~0004306

Thanks for the patch. I have applied your patch to all supported branches.

Issue History

Date Modified Username Field Change
2023-03-22 17:32 leimaohui New Issue
2023-03-22 20:49 t-ishii Assigned To => t-ishii
2023-03-22 20:49 t-ishii Status new => assigned
2023-03-22 21:00 t-ishii Note Added: 0004306
2023-05-22 11:47 administrator Status assigned => closed
2023-05-22 11:47 administrator Fixed in Version => 4.4.3
2023-05-22 11:47 administrator Target Version => 4.4.3