Opened 12 years ago

Closed 12 years ago

#35856 closed defect (fixed)

geomview build fails

Reported by: bcbarnes@… Owned by: raphael-st (Raphael Straub)
Priority: Normal Milestone:
Component: ports Version:
Keywords: mountainlion Cc:
Port: geomview

Description (last modified by raphael-st (Raphael Straub))

OS X 10.8.1 with Xcode 4.4.1 and latest command line tools, etc. geomview 1.9.4 rev 4 build fails, here's a log of the error:

make[5]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_geomview/geomview/work/geomview-1.9.4/src/bin/animate'
/usr/bin/clang -DHAVE_CONFIG_H -I. -I../../.. -I/opt/local  -I../../../include   -I/opt/local/include  -pipe -O2 -arch x86_64 -MT glob.o -MD -MP -MF .deps/glob.Tpo -c -o glob.o glob.c
glob.c:262:12: error: no member named 'dd_fd' in 'DIR'
        if (fstat(dirfd(dirp), &stb) < 0)

                  ^~~~~~~~~~~
glob.c:45:31: note: expanded from macro 'dirfd'

#define dirfd(dirp)  ((dirp)->dd_fd)

                      ~~~~~~  ^

(some unrelated warnings)

2 warnings and 1 error generated.
make[5]: *** [glob.o] Error 1



Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.1.0
Thread model: posix

Change History (3)

comment:1 Changed 12 years ago by raphael-st (Raphael Straub)

Cc: raphael@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to raphael@…
Status: newassigned
Version: 2.1.2

comment:2 Changed 12 years ago by raphael-st (Raphael Straub)

Keywords: mountainlion added

comment:3 Changed 12 years ago by raphael-st (Raphael Straub)

Resolution: fixed
Status: assignedclosed

Fixed by preventing the use of a wrong macro in glob.c in r97114.

Note: See TracTickets for help on using tickets.