Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2016 14:05:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 214475] audio/cmus: fails to build with ncurses from ports
Message-ID:  <bug-214475-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214475

            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@FreeBSD.org
          Reporter: gor@clogic.com.ua
                CC: t@tobik.me
                CC: t@tobik.me
             Flags: maintainer-feedback?(t@tobik.me)

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

If ncurses from ports installed, cmus trying to linked against them but com=
pile
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=3D200112L -D_XOPEN_SOURCE=3D=
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 >=3D 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 *(co=
nst
char *, unsigned long)'

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214475-13>