Opened 4 years ago

Closed 4 years ago

#61460 closed defect (fixed)

unixODBC @2.3.7_1: error: implicit declaration of function 'extract_diag_error_w' is invalid in C99

Reported by: Tatsh (Andrew Udvare) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: catalina bigsur Cc:
Port: unixODBC

Description

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/string.h:82:2
8: note: passing argument to parameter '__s' here
size_t   strlen(const char *__s);
                            ^
SQLBrowseConnect.c:498:17: error: implicit declaration of function 'extract_diag_error_w' is invalid in C99 [-Werror,-Wimpli
cit-function-declaration]
                extract_diag_error_w( SQL_HANDLE_DBC,
                ^
SQLBrowseConnect.c:507:17: error: implicit declaration of function 'extract_sql_error_w' is invalid in C99 [-Werror,-Wimplic
it-function-declaration]
                extract_sql_error_w( SQL_NULL_HENV,
                ^
SQLBrowseConnect.c:517:17: error: implicit declaration of function 'extract_diag_error' is invalid in C99 [-Werror,-Wimplici
t-function-declaration]
                extract_diag_error( SQL_HANDLE_DBC,
                ^
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I../include -I/opt/local/include -isysroot/Applications/Xcode.ap
p/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -I/opt/local/include -pipe -Os -isysroot/Applic
ations/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -arch x86_64 -pthread -MT SQLFre
eEnv.lo -MD -MP -MF .deps/SQLFreeEnv.Tpo -c SQLFreeEnv.c -o SQLFreeEnv.o >/dev/null 2>&1
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I../include -I/opt/local/include -isysroot/Applications/Xcode.ap
p/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -I/opt/local/include -pipe -Os -isysroot/Applic
ations/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -arch x86_64 -pthread -MT SQLFre
eConnect.lo -MD -MP -MF .deps/SQLFreeConnect.Tpo -c SQLFreeConnect.c -o SQLFreeConnect.o >/dev/null 2>&1
SQLBrowseConnect.c:526:17: error: implicit declaration of function 'extract_sql_error' is invalid in C99 [-Werror,-Wimplicit
-function-declaration]
                extract_sql_error( SQL_NULL_HENV,
                ^
SQLBrowseConnect.c:545:17: error: implicit declaration of function 'extract_diag_error' is invalid in C99 [-Werror,-Wimplici
t-function-declaration]
                extract_diag_error( SQL_HANDLE_DBC,
                ^
SQLBrowseConnect.c:554:17: error: implicit declaration of function 'extract_sql_error' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                extract_sql_error( SQL_NULL_HENV,
                ^
SQLBrowseConnect.c:564:17: error: implicit declaration of function 'extract_diag_error_w' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                extract_diag_error_w( SQL_HANDLE_DBC,
                ^
SQLBrowseConnect.c:573:17: error: implicit declaration of function 'extract_sql_error_w' is invalid in C99 [-Werror,-Wimplic
it-function-declaration]
                extract_sql_error_w( SQL_NULL_HENV,
                ^
2 warnings and 8 errors generated.

Attachments (1)

main.log (326.9 KB) - added by Tatsh (Andrew Udvare) 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by Tatsh (Andrew Udvare)

Attachment: main.log added

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: catalina bigsur added
Summary: unixODBC @2.3.7_1 fails to build on Big SurunixODBC @2.3.7_1: error: implicit declaration of function 'extract_diag_error_w' is invalid in C99

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 2b2e30a3411be37edf3504ec6cfa6f945c14f930/macports-ports (master):

unixODBC: Update to 2.3.9

Closes: #61460

Note: See TracTickets for help on using tickets.