Bug 210675 - www/node4: fails to build when dns/c-ares installed
Summary: www/node4: fails to build when dns/c-ares installed
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on: 210618
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-28 22:18 UTC by Paul
Modified: 2016-07-12 19:55 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul 2016-06-28 22:18:53 UTC
On current 10.3 system (FreeBSD othniel 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64)

when I had ftp/curl configured for 
        CARES          : on
        THREADED_RESOLVER: off

and dns/c-ares-1.11.0 installed

www/node4-4.4.5_2 failed to build:

>>>>>
  cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_GNU_SOURCE' '-DCARES_STATICLIB' '-DHAVE_CONFIG_H' -I/usr/local/include -I../deps/cares/include -I../deps/cares/src -I../deps/cares/config/freebsd  -pthread -Wall -Wextra -Wno-unused-parameter -m64 -g -pedantic -Wall -Wextra -Wno-unused-parameter --std=gnu89 -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer  -MMD -MF /usr/ports/www/node4/work/node-v4.4.5/out/Release/.deps//usr/ports/www/node4/work/node-v4.4.5/out/Release/obj.target/cares/deps/cares/src/ares_parse_txt_reply.o.d.raw  -O2 -pipe  -Wno-unused-private-field -Wno-nested-anon-types -Wno-unused-function -Wno-unused-const-variable -fstack-protector -fno-strict-aliasing -c -o /usr/ports/www/node4/work/node-v4.4.5/out/Release/obj.target/cares/deps/cares/src/ares_parse_txt_reply.o ../deps/cares/src/ares_parse_txt_reply.c
../deps/cares/src/ares_parse_txt_reply.c:153:25: error: no member named 'record_start' in
      'struct ares_txt_reply'
              txt_curr->record_start = strptr == aptr;
              ~~~~~~~~  ^
1 error generated.
gmake[3]: *** [deps/cares/cares.target.mk:147: /usr/ports/www/node4/work/node-v4.4.5/out/Release/obj.target/cares/deps/cares/src/ares_parse_txt_reply.o] Error 1
gmake[3]: Leaving directory '/usr/ports/www/node4/work/node-v4.4.5/out'
gmake[2]: *** [Makefile:45: node] Error 2
gmake[2]: Leaving directory '/usr/ports/www/node4/work/node-v4.4.5'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/node4
*** Error code 1

Stop.
<<<<<

After reconfig of ftp/curl to
        CARES          : off
        THREADED_RESOLVER: on

and rebuild; followed by removing dns-c-ares, node4-4.4.5_2 builds fine.

These were pointers:
  * https://trac.macports.org/ticket/49637
  * https://github.com/nodejs/node/issues/2637
Comment 1 Bradley T. Hughes freebsd_committer freebsd_triage 2016-06-29 07:22:43 UTC
This should be fixed by the patch in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210618. I'm waiting for a committer to pick it up.
Comment 2 Bradley T. Hughes freebsd_committer freebsd_triage 2016-06-29 07:22:54 UTC
Thanks for the report! :)
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2016-07-12 19:55:27 UTC
Should be fixed as suggested by maintainer