Bug 237490 - lang/erlang: Fails to link: undefined symbol: SQL*
Summary: lang/erlang: Fails to link: undefined symbol: SQL*
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Erlang FreeBSD Mailing List
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2019-04-23 12:01 UTC by tech-lists
Modified: 2019-08-08 15:28 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback? (erlang)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tech-lists 2019-04-23 12:01:59 UTC
Hello,

context: poudriere, 12-stable jail @r345762, ports@499712

Lots of errors like this:

[03:29:01] ld: error: undefined symbol: SQLAllocHandle
[03:29:01] >>> referenced by odbcserver.c
[03:29:01] >>>               ../priv/obj/amd64-portbld-freebsd12.0/odbcserver.o:(handle_db_request)
[03:29:01] 
[03:29:01] ld: error: undefined symbol: SQLSetEnvAttr
[03:29:01] >>> referenced by odbcserver.c
[03:29:01] >>>               ../priv/obj/amd64-portbld-freebsd12.0/odbcserver.o:(handle_db_request)
[03:29:01] 
[03:29:01] ld: error: undefined symbol: SQLAllocHandle
[03:29:01] >>> referenced by odbcserver.c
[03:29:01] >>>               ../priv/obj/amd64-portbld-freebsd12.0/odbcserver.o:(handle_db_request)
[03:29:01] 

eventually fails with:

[03:29:01] ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
[03:29:01] cc: error: linker command failed with exit code 1 (use -v to see invocation)
[03:29:01] gmake[5]: *** [amd64-portbld-freebsd12.0/Makefile:112: ../priv/bin/amd64-portbld-freebsd12.0/odbcserver] Error 1

full log at:
https://pkg.zyxst.net/data/12S-desktop-default/2019-04-23_07h45m00s/logs/errors/erlang-19.3.6.13_1,4.log
Comment 1 Bugzilla Automation freebsd_committer 2019-04-23 12:01:59 UTC
Maintainer informed via mail
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2019-04-23 12:09:45 UTC
Does the build still fail with the ODBC option disabled?
Comment 3 tech-lists 2019-04-23 12:23:21 UTC
(In reply to Kubilay Kocak from comment #2)
I'll test this shortly
Comment 4 tech-lists 2019-04-23 13:27:51 UTC
(In reply to Kubilay Kocak from comment #2)
It builds fine with that option disabled
Comment 5 gwright 2019-05-03 14:42:18 UTC
I've run across the same failure on the same amd64 box, under both 11.2 and now 12.0.
Comment 6 gwright 2019-05-03 14:48:57 UTC
If it helps, the failure I saw on 12.0/amd64 was during a clean reinstall of all ports.  After I upgraded to 12.0, I dumped a list of installed ports; deleted all of them; edited the list of ports to remove unneeded ones and installed the ports on a clean system.