Opened 8 years ago

Closed 8 years ago

#53491 closed defect (duplicate)

Port 2.4.0 does not build on PPC Tiger, Mac OS X 10.4.11, because LOCK_* are undefined In function ‘AdvFlockCmd’

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.4.0
Keywords: Cc: Peter_Dyballa@…
Port:

Description

/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.

Change History (2)

comment:1 Changed 8 years ago by kencu (Ken)

duplicate of 53421.

As per that ticket, the fix is already in place on github, but hasn't made it's way through to rsync yet. Try again tomorrow (that's what I'm planning to do).

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Component: portsbase
Port: port removed
Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.