[Bug 294934] ports-mgmt/pkg_cleanup linking failure on 15-STABLE (-ldialog)

[email protected]
Newsgroups gmane.os.freebsd.devel.ports.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294934

--- Comment #7 from Yuichiro NAITO <[email protected]> ---
(In reply to jakub_lach from comment #6)

Excuse me. I'm curious what is blocking this issue from making progress.
The suggested patch works well for me, and I completely agree with the proposed
fix.

>  From what I see, it also works without explicit #include <cdialog/dialog.h>

No, it is required for the cdialog library. If I omit <cdialog/dialog.h>,
the build fails with many missing structures and symbols like this.

```
% make
===>  Building for pkg_cleanup-2.2
--- pkg_cleanup ---
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing 
-I/usr/local/include   pkg_cleanup.c -lncursesw -L/usr/local/li
b -lcdialog -o pkg_cleanup
pkg_cleanup.c:21:9: error: unknown type name 'DIALOG_LISTITEM'
   21 | typedef DIALOG_LISTITEM ListItem;
      |         ^
pkg_cleanup.c:34:14: error: member reference base type 'ListItem' (aka 'int')
is not a structure or union
   34 |                         if(menu[i].ITEM_DATA) {
      |                            ~~~~~~~^~~~~~~~~~
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.