Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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)

main.log (273.7 KB) - added by e.greenwood2@… 12 years ago.
emacs main.log

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by e.greenwood2@…

Attachment: main.log added

emacs main.log

comment:1 in reply to:  description 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: newclosed

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.

Note: See TracTickets for help on using tickets.