Bug 229805

Summary: www/lynx incomplete definition of type 'struct term' and other compile errors
Product: Ports & Packages Reporter: Rob Belics <robbelics>
Component: Individual Port(s)Assignee: Alex Kozlov <ak>
Status: Closed FIXED    
Severity: Affects Only Me CC: ak, fernape, jharris
Priority: --- Flags: bugzilla: maintainer-feedback? (jharris)
Version: Latest   
Hardware: amd64   
OS: Any   

Description Rob Belics 2018-07-16 14:14:29 UTC
When reinstalling lynx:

/usr/local/bin/clang60 -DHAVE_CONFIG_H   -DLOCALEDIR=\"/usr/local/share/locale\"  -I.  -I..  -Ichrtrans  -I./chrtrans  -I..  -I../src  -I.././WWW/Library/Implementation     -DLIBICONV_PLUG -I/usr/local/include  -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/usr/local/include/ncurses/ncursesw -I/usr/local/include/ncurses -O2 -pipe -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -c LYStrings.c
LYStrings.c:1011:14: error: incomplete definition of type 'struct term'
        if (cur_term->type.Strings[code] != 0) {
            ~~~~~~~~^
/usr/local/include/ncurses/term.h:710:16: note: forward declaration of 'struct term'
typedef struct term TERMINAL;
               ^
LYStrings.c:1012:33: error: incomplete definition of type 'struct term'
            LYStrNCpy(*result, cur_term->type.Strings[code], (final - *result));
                               ~~~~~~~~^
./LYStrings.h:44:44: note: expanded from macro 'LYStrNCpy'
#define LYStrNCpy(dst,src,n) LYstrncpy(dst,src,(int)(n))
                                           ^~~
/usr/local/include/ncurses/term.h:710:16: note: forward declaration of 'struct term'
typedef struct term TERMINAL;
               ^
2 errors generated.
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/www/lynx/work/lynx2-8-8/src
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/www/lynx/work/lynx2-8-8
*** Error code 1

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

Stop.
make: stopped in /usr/ports/www/lynx

===>>> make build failed for www/lynx
===>>> Aborting update
Comment 1 Rob Belics 2018-07-16 14:15:27 UTC
FreeBSD 11.2-RELEASE
Comment 2 Fernando ApesteguĂ­a freebsd_committer freebsd_triage 2018-07-30 16:20:13 UTC
(In reply to Rob Belics from comment #1)
Hi Rob,

It builds fine for me in 10.4, 11.1 (both amd64 and i386) and in -CURRENT i386.

Can you still reproduce the issue? You say "reinstalling". Did you do a "make clean" first?

Cheers.
Comment 3 jharris 2018-08-25 20:11:47 UTC
Please try to duplicate this with the newest version of lynx once this PR is committed and closed, and you've updated your ports tree:

  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230568

Thanks.
Comment 4 Rob Belics 2018-08-26 12:29:32 UTC
(In reply to jharris from comment #3)
Yes. This fixes the issue. Thank you.