[MacPorts] #53491: Port 2.4.0 does not build on PPC Tiger, Mac OS X 10.4.11, because LOCK_* are undefined In function ‘AdvFlockCmd’

MacPorts noreply at macports.org
Sat Feb 4 23:49:42 UTC 2017


#53491: Port 2.4.0 does not build on PPC Tiger, Mac OS X 10.4.11, because LOCK_*
are undefined In function ‘AdvFlockCmd’
-----------------------+-------------------
 Reporter:  ballapete  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.0
 Keywords:             |       Port:  port
-----------------------+-------------------
 {{{
 /usr/bin/cc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -std=c99 -Wextra
 -Wall -pedantic     -DHAVE_CONFIG_H
 -I/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/src
 -I/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/src
 -I.
 -I/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/vendor
 /vendor-destroot//opt/local/libexec/macports/include -fno-common adv-
 flock.c -o adv-flock.o
 adv-flock.c: In function ‘AdvFlockCmd’:
 adv-flock.c:139: error: ‘LOCK_SH’ undeclared (first use in this function)
 adv-flock.c:139: error: (Each undeclared identifier is reported only once
 adv-flock.c:139: error: for each function it appears in.)
 adv-flock.c:143: error: ‘LOCK_EX’ undeclared (first use in this function)
 adv-flock.c:147: error: ‘LOCK_UN’ undeclared (first use in this function)
 adv-flock.c:151: error: ‘LOCK_NB’ undeclared (first use in this function)
 adv-flock.c:154: warning: implicit declaration of function ‘flock’
 make[2]: *** [adv-flock.o] Error 1
 make[1]: *** [all] Error 1
 make: *** [all] Error 1
 Command failed: cd
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base
 && CC=/usr/bin/cc OBJC=/usr/bin/cc ./configure --prefix='/opt/local'
 --with-install-user='root' --with-install-group='admin' --with-directory-
 mode='0755' --enable-readline && make SELFUPDATING=1 && make install
 SELFUPDATING=1
 Exit code: 2
 }}}

 How can I avoid having to wait an hour or two because `port selfupdate` is
 trying to update itself first?

 On Leopard and Tiger only

 {{{
 /usr/include/php/ext/standard/flock_compat.h:#  define LOCK_SH 1
 /usr/include/php/ext/standard/flock_compat.h:#  define LOCK_EX 2
 /usr/include/php/ext/standard/flock_compat.h:#  define LOCK_NB 4
 /usr/include/php/ext/standard/flock_compat.h:#  define LOCK_UN 8
 }}}

 have the macros defined.

--
Ticket URL: <https://trac.macports.org/ticket/53491>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list