[Bug 214475] audio/cmus: fails to build with ncurses from ports

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 13 14:05:18 UTC 2016


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

            Bug ID: 214475
           Summary: audio/cmus: fails to build with ncurses from ports
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: gor at clogic.com.ua
                CC: t at tobik.me
                CC: t at tobik.me
             Flags: maintainer-feedback?(t at tobik.me)

Created attachment 176954
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=176954&action=edit
build log

If ncurses from ports installed, cmus trying to linked against them but compile
failed.

1. Configure script detect that strndup function is supported by system.

2. Ncurses cflags:

-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600
-I/usr/local/include/ncurses/ncurses

passed to cmus build flags.

3. Redefine _POSIX_C_SOURCE as 200112 hiding strndup function in string.h

102 #if __POSIX_VISIBLE >= 200809
103 char    *strndup(const char *, size_t) __malloc_like;
104 size_t   strnlen(const char *, size_t) __pure;
105 #endif

4. Compile failed

error: implicitly declaring library function 'strndup' with type 'char *(const
char *, unsigned long)'

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list