supabase / pg_net

A PostgreSQL extension that enables asynchronous (non-blocking) HTTP/HTTPS requests with SQL
https://supabase.github.io/pg_net
Apache License 2.0
213 stars 16 forks source link

Fail to compile with the latest libcurl 7.76.1 #127

Closed Vonng closed 4 months ago

Vonng commented 6 months ago

Bug report

Describe the bug

Build failed with the latest libcurl on EL9 (RockyLinux 9.3)

src/worker.c: In function ‘worker_main’:
src/worker.c:351:57: error: call to ‘_curl_easy_getinfo_err_long’ declared with attribute warning: curl_easy_getinfo expects a pointer to long for this info [-Werror=attribute-warning]
  351 |                                                         curl_easy_getinfo(eh, CURLINFO_RESPONSE_CODE, &http_status_code);
$ rpm -q libcurl-devel
libcurl-devel-7.76.1-26.el9_3.2.0.1.x86_64

To Reproduce

Expected behavior

The compile could pass if you change the int to long: https://github.com/supabase/pg_net/blob/master/src/worker.c#L349

Screenshots

If applicable, add screenshots to help explain your problem.

System information

Additional context

Add any other context about the problem here.