Bug 1221709 - GCC 14: unixODBC package fails
Summary: GCC 14: unixODBC package fails
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michael Vetter
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 12:37 UTC by Michal Jireš
Modified: 2024-03-25 07:58 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Jireš 2024-03-19 12:37:56 UTC
Building unixODBC with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/unixODBC/standard/x86_64

Due to (exhaustive list of errors):

info.c: In function 'SQLStatistics':
info.c:1868:63: error: passing argument 6 of 'PG_SQLBindCol' from incompatible pointer type [-Wincompatible-pointer-types]
 1868 |                                 column_name, MAX_INFO_STRING, &column_name_len);
      |                                                               ^~~~~~~~~~~~~~~~
      |                                                               |
      |                                                               int *
In file included from statement.h:18,
                 from info.c:42:
bind.h:49:39: note: expected 'SQLLEN *' {aka 'long int *'} but argument is of type 'int *'
   49 |                               SQLLEN *pcbValue);
      |                               ~~~~~~~~^~~~~~~~
info.c:1925:54: error: passing argument 6 of 'PG_SQLBindCol' from incompatible pointer type [-Wincompatible-pointer-types]
 1925 |                         index_name, MAX_INFO_STRING, &index_name_len);
      |                                                      ^~~~~~~~~~~~~~~
      |                                                      |
      |                                                      SDWORD * {aka int *}
bind.h:49:39: note: expected 'SQLLEN *' {aka 'long int *'} but argument is of type 'SDWORD *' {aka 'int *'}
   49 |                               SQLLEN *pcbValue);
      |                               ~~~~~~~~^~~~~~~~
info.c:1934:44: error: passing argument 6 of 'PG_SQLBindCol' from incompatible pointer type [-Wincompatible-pointer-types]
 1934 |                         fields_vector, 16, &fields_vector_len);
      |                                            ^~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            SDWORD * {aka int *}
info.c: In function 'PG_SQLPrimaryKeys':
info.c:2220:51: error: passing argument 6 of 'PG_SQLBindCol' from incompatible pointer type [-Wincompatible-pointer-types]
 2220 |                         attname, MAX_INFO_STRING, &attname_len);
      |                                                   ^~~~~~~~~~~~
      |                                                   |
      |                                                   SDWORD * {aka int *}



See the meta bug#1220571 for more info.
Comment 1 Michael Vetter 2024-03-20 07:58:47 UTC
SR#1159779
Comment 2 OBSbugzilla Bot 2024-03-20 09:35:02 UTC
This is an autogenerated message for OBS integration:
This bug (1221709) was mentioned in
https://build.opensuse.org/request/show/1159779 Factory / unixODBC
Comment 3 Michael Vetter 2024-03-25 07:58:02 UTC
Done