[MacPorts] #62571: libiodbc @3.52.14_2: drvconn.c:501:7: error: use of undeclared identifier 'liburl'

MacPorts noreply at macports.org
Sat Mar 27 15:46:05 UTC 2021


#62571: libiodbc @3.52.14_2: drvconn.c:501:7: error: use of undeclared identifier
'liburl'
--------------------+----------------------
 Reporter:  kencu   |      Owner:  nerdling
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  libiodbc
--------------------+----------------------
 Catalina build fails, at least, with a number of errors in
 {{{drvconn.c}}}:
 {{{
 In file included from drvconn.c:78:
 In file included from ./gui.h:75:
 ../include/iodbc.h:151:11: warning: 'SYS_ODBC_INI' macro redefined
 [-Wmacro-redefined]
 #       define SYS_ODBC_INI "/etc/odbc.ini"
                ^
 ../include/config.h:152:9: note: previous definition is here
 #define SYS_ODBC_INI "/opt/local/etc/odbc.ini"
         ^
 In file included from drvconn.c:78:
 In file included from ./gui.h:75:
 ../include/iodbc.h:163:13: warning: 'SYS_ODBCINST_INI' macro redefined
 [-Wmacro-redefined]
 #    define SYS_ODBCINST_INI    "/etc/odbcinst.ini"
             ^
 ../include/config.h:149:9: note: previous definition is here
 #define SYS_ODBCINST_INI "/opt/local/etc/odbcinst.ini"
         ^
 drvconn.c:501:7: error: use of undeclared identifier 'liburl'
     { CALL_DRVCONN_DIALBOXW (_szdriver_u8, 'A'); }
       ^
 drvconn.c:102:10: note: expanded from macro 'CALL_DRVCONN_DIALBOXW'
          liburl = CFURLCreateFromFileSystemRepresentation (NULL,
 (UInt8*)_path_u8, strlen(_path_u8), FALSE); \
          ^
 drvconn.c:501:7: error: implicit declaration of function
 'CFURLCreateFromFileSystemRepresentation' is invalid in C99 [-Werror
 ,-Wimplicit-function-declaration]
 drvconn.c:102:19: note: expanded from macro 'CALL_DRVCONN_DIALBOXW'
          liburl = CFURLCreateFromFileSystemRepresentation (NULL,
 (UInt8*)_path_u8, strlen(_path_u8), FALSE); \

 ... and more
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62571>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list