[Bug 225683] sysutils/sbase: Move PREFIX to avoid conflicts

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 13 07:50:42 UTC 2018


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

Tobias Kortkamp <tobik at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tobik at freebsd.org

--- Comment #1 from Tobias Kortkamp <tobik at freebsd.org> ---
How was this tested?  It fails to build.  You might have to remove
_XOPEN_SOURCE=700 from config.mk since it hides flock().

Also since you're using a custom prefix please set
MANDIRS=${PREFIX}/${PORTNAME}/man so that the man pages get gzipped properly
by the framework.

--- flock.o ---
flock.c:21:38: error: use of undeclared identifier 'LOCK_EX'
        int fd, status, savederrno, flags = LOCK_EX, nonblk = 0, oflag = 0;
                                            ^
flock.c:26:12: error: use of undeclared identifier 'LOCK_NB'
                nonblk = LOCK_NB;
                         ^
flock.c:32:11: error: use of undeclared identifier 'LOCK_SH'
                flags = LOCK_SH;
                        ^
flock.c:35:11: error: use of undeclared identifier 'LOCK_UN'
                flags = LOCK_UN;
                        ^
flock.c:38:11: error: use of undeclared identifier 'LOCK_EX'
                flags = LOCK_EX;
                        ^
flock.c:50:6: warning: implicit declaration of function 'flock' is invalid in
C99 [-Wimplicit-function-declaration]
        if (flock(fd, flags | nonblk)) {
            ^
1 warning and 6 errors generated.

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


More information about the freebsd-ports-bugs mailing list