unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrew Beekhof (GMail) <beekhof@gmail.com>
Subject: Emacs CVS on OSX Tiger (10.4)
Date: Sun, 17 Apr 2005 17:37:29 +0200	[thread overview]
Message-ID: <2e7d32ec83326841b1db4843fcfbdfe5@gmail.com> (raw)

Hi All,

It appears that 10.4 has changed enough compared to 10.3.x to break 
Emacs.

Pre-compiled packages built for 10.3.x break during startup, so I tried 
compiling from source.

I ran into a couple of problems which I was able to work around, but 
without really knowing what I was doing, probably did so in the worst 
way possible.

Problem #1
macgui.c was trying to use emacs_mktime and failed during the link 
stage.
	I hunted the entire codebase and couldn't find this 
function/macro/other anywhere... am I missing something?
	In the end i commented out these lines:
./src/macgui.h-46-#undef mktime
./src/macgui.h:47:#define mktime emacs_mktime

Problem #2
sys/time.h (for reasons that are beyond me) now defines select() and a 
number of other bits and pieces that are also in sys/types.h.  Maybe 
thats not the whole cause, but to make a long story short, mac.c 
(specifically sys_select() and select_and_poll_event() ) doesn't 
compile.
	So I removed both functions and, well, it seems to work anyway....
	Here are the compiler errors:
<snip>
mac.c: In function 'select_and_poll_event':
mac.c:3877: error: request for member 'fds_bits' in something not a 
structure or union
mac.c: In function 'sys_select':
mac.c:3895: error: argument 'rfds' doesn't match prototype
/usr/include/sys/time.h:242: error: prototype declaration
mac.c:3895: error: argument 'wfds' doesn't match prototype
/usr/include/sys/time.h:242: error: prototype declaration
mac.c:3895: error: argument 'efds' doesn't match prototype
/usr/include/sys/time.h:242: error: prototype declaration
mac.c:3901: error: request for member 'fds_bits' in something not a 
structure or union
mac.c:3904: error: request for member 'fds_bits' in something not a 
structure or union
mac.c:3918: error: request for member 'fds_bits' in something not a 
structure or union
mac.c:3929: error: request for member 'fds_bits' in something not a 
structure or union
mac.c: In function 'mac_get_system_locale':
mac.c:4224: warning: pointer targets in passing argument 4 of 
'LocaleRefGetPartString' differ in signedness
mac.c:4226: warning: pointer targets in passing argument 1 of 
'build_string' differ in signedness
make: *** [mac.o] Error 1


If anyone has suggestions on how I should have fixed the above, I can 
have a go and report back with a patch.

Andrew

--
Andrew Beekhof

"If it weren't for my horse, I wouldn't have spent that year in 
college" - Unknown, courtesy of Lewis Black

             reply	other threads:[~2005-04-17 15:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-17 15:37 Andrew Beekhof [this message]
2005-04-22 20:36 ` Emacs CVS on OSX Tiger (10.4) John Owens
2005-04-24 18:25   ` Andrew Beekhof

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2e7d32ec83326841b1db4843fcfbdfe5@gmail.com \
    --to=beekhof@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).