[m-users.] Building the ODBC library fails
Volker Wysk
post at volker-wysk.de
Sat Jan 15 03:56:13 AEDT 2022
Hi!
I've downloaded the latest ROTD source distribution and tried to build the
ODBC library. I'm using the stable release 20.06.1:
desktop /usr/local/src/mercury-srcdist-rotd-2022-01-13/extras/odbc $ mmc --
make libodbc.depend
desktop /usr/local/src/mercury-srcdist-rotd-2022-01-13/extras/odbc $ mmc --
make libodbc
Making Mercury/int3s/odbc.int3
Making Mercury/ints/odbc.int
Making Mercury/cs/odbc.c
odbc.m:101: In predicate `transaction'/7:
odbc.m:101: warning: unresolved polymorphism.
odbc.m:101: The variable with an unbound type was:
odbc.m:101: V_40: exception.exception_result(T)
odbc.m:101: The unbound type variable will be implicitly bound to the
builtin
odbc.m:101: type `void'.
For more information, recompile with `-E'.
Making Mercury/os/odbc.o
In file included from Mercury/cs/odbc.c:40:
./odbc.mh:163:8: error: unknown type name ‘SQLHENV’
./odbc.mh:168:8: error: unknown type name ‘SQLHDBC’
./odbc.mh:173:8: error: unknown type name ‘SQLRETURN’
./odbc.mh:182:44: error: unknown type name ‘SQLHDBC’
./odbc.mh:187:1: warning: parameter names (without types) in function
declaration
./odbc.mh:238:9: error: unknown type name ‘SWORD’
./odbc.mh:242:9: error: unknown type name ‘SWORD’
./odbc.mh:247:9: error: unknown type name ‘SDWORD’
./odbc.mh:259:9: error: unknown type name ‘SQLHSTMT’
./odbc.mh:272:8: error: unknown type name ‘SQLRETURN’
./odbc.mh:276:23: error: unknown type name ‘SWORD’
./odbc.mh:276:39: error: unknown type name ‘UDWORD’
./odbc.mh:276:56: error: unknown type name ‘SWORD’
./odbc.mh:277:5: error: unknown type name ‘SWORD’
... error log truncated, see `odbc.err' for the complete log.
** Error making `Mercury/os/odbc.o'.
It's the same with the "extras/odbc" in the 20.06.1 source distribution.
It works for "odbc_test" with "mmake depend ; mmake odbc_test". But "mmake"
results in:
desktop /usr/local/src/mercury/extras/odbc $ LANG=C mmake
/tmp/mmake.92SAYH:895: warning: undefined variable
'MMAKE_USE_SUBDIRS_EXPLICIT'
/tmp/mmake.92SAYH:919: warning: undefined variable
'MMAKE_USE_SUBDIRS_EXPLICIT'
make: Nothing to be done for 'default_target'.
It's the same for "mmake libodbc".
Cheers,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20220114/0f8c1c29/attachment.sig>
More information about the users
mailing list