#35695 closed defect (invalid)
emacs @24.1 compilation error
Reported by: | e.greenwood2@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | drkp (Dan Ports) | |
Port: | emacs |
Description
My machine is running 10.6 with Xcode 4.0.2. Whenever I attempt to build emacs from source (for example, by choosing +gtk), the build fails with "shell command failed." An examination of the log shows compilation errors in dired.c.
:info:build dired.c: In function ‘directory_files_internal’: :info:build dired.c:227: error: ‘struct dirent’ has no member named ‘d_ino’ :info:build dired.c: In function ‘file_name_completion’: :info:build dired.c:525: error: ‘struct dirent’ has no member named ‘d_ino’ :info:build dired.c: In function ‘Ffile_attributes’: :info:build dired.c:973: warning: comparison is always true due to limited range of data type :info:build dired.c:973: warning: comparison is always true due to limited range of data type :info:build dired.c:977: warning: comparison is always true due to limited range of data type :info:build dired.c:977: warning: comparison is always true due to limited range of data type :info:build dired.c:1005: warning: comparison is always true due to limited range of data type :info:build dired.c:1005: warning: comparison is always true due to limited range of data type :info:build dired.c:1005: warning: comparison is always true due to limited range of data type :info:build dired.c:1005: warning: comparison is always true due to limited range of data type :info:build dired.c:1005: warning: comparison is always true due to limited range of data type :info:build dired.c:1005: warning: comparison is always true due to limited range of data type :info:build make[1]: *** [dired.o] Error 1
What could be causing this to occur? I see the same problem on my other machine running 10.7 with Xcode 4.4. I just upgraded that machine from 10.6, and have tried removing and reinstalling both Xcode and MacPorts. I can't find a similar ticket, but it seems strange that this would be effecting both of my machines but nobody else.
Attachments (1)
Change History (4)
Changed 12 years ago by e.greenwood2@…
comment:1 Changed 12 years ago by e.greenwood2@…
Whoops! A very poorly behaved installer decided to overwrite the header for /usr/include/dirent.h with it's own, obviously not containing a definition for dirent.d_ino, I restored my headers in /usr/local from the Xcode SDK, and things work correctly. Sorry for bothering everyone! Please close this ticket.
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | dports@… added |
---|---|
Port: | @24.1 removed |
Resolution: | → invalid |
Status: | new → closed |
When you said "/usr/local" above I hope you meant "/usr". It's not supported to install things in /usr/local while using MacPorts because this often interferes with things.
comment:3 Changed 12 years ago by e.greenwood2@…
Yes, you are correct, I meant /usr/include! Thanks.
emacs main.log