Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#65327 closed defect (fixed)

putty @0.77 fails to build on mavericks: "error: use of undeclared identifier 'AT_SYMLINK_NOFOLLOW'"

Reported by: tehcog (tehcog) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: putty

Description

Please see attached main.log

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_security_putty/putty/work/putty-0.77/unix/sftpserver.c:607:14: warning: implicit declaration of function 'fstatat' is invalid in C99 [-Wimplicit-function-declaration]
:info:build         if (!fstatat(dirfd(udh->dp), de->d_name, &st, AT_SYMLINK_NOFOLLOW)) {
:info:build              ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_security_putty/putty/work/putty-0.77/unix/sftpserver.c:607:55: error: use of undeclared identifier 'AT_SYMLINK_NOFOLLOW'
:info:build         if (!fstatat(dirfd(udh->dp), de->d_name, &st, AT_SYMLINK_NOFOLLOW)) {
:info:build                                                       ^
:info:build 1 warning and 1 error generated.
:info:build make[2]: *** [ssh/CMakeFiles/sshserver.dir/__/unix/sftpserver.c.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....

Attachments (1)

putty.main.log (625.5 KB) - added by tehcog (tehcog) 2 years ago.
main.log

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by tehcog (tehcog)

Attachment: putty.main.log added

main.log

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Strange that configure correctly finds this:

:info:configure -- Looking for fstatat - not found

and then the code goes ahead and uses that function anyway.

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Looks like they're using cmakedefine01 for the fstatat check, which will always define HAVE_FSTATAT to either 0 or 1. But then the code using fstatat is guarded with #if defined HAVE_FSTATAT, which will always be true.

comment:3 Changed 2 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 0440ca85030b26f73c886a63352537f6a56c5c10/macports-ports (master):

putty: fix build on older systems

Closes: #65327

comment:4 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Did this get reported to the developers of putty? If not, please do so.

Note: See TracTickets for help on using tickets.