cygwin compilation and binary problems

cygwin compilation and binary problems

Post by Le Wan » Sun, 12 Jan 2003 14:52:07



Hi all,

I've done quite well by XEmacs and cygwin in the past.  Usually "./configure
&& make && make install" works flawlessly (versions 21.4.4-5, IIRC).

I just installed the *whole* cygwin package (~ 1 GB), including the GNU Emacs
stuff a few days ago on a new laptop.  But then, I realized GNU Emacs only
works within XWindows or the text console, so I uninstalled it.  I've had a
bit of trouble compiling 21.4.10, and now 21.4.11, the latest error I've
gotten is:

  /src/xemacs-21.4.11/src/emacs.c:500: undefined reference to `_IsBadReadPtr'

I've also downloaded the default cygwin binaries, and dumped them into a
directory, but when I run XEmacs, I get this error message on the console:

  WARNING:
  Couldn't find an obvious default for the root of the XEamcs hierarchy
  [...]

I would prefer to build it myself, but if anyone can solve either problem I'd
appreciate it very much.

cheers.

--
Le

 
 
 

cygwin compilation and binary problems

Post by Adrian Aichne » Sun, 12 Jan 2003 17:27:18


Hi Le,

have you tried to install the cygwin version from
http://www.xemacs.org/Download/win32/setup.exe
yet?

Does this work for you?

Best regards,

Adrian

--
Adrian Aichner

 http://www.xemacs.org/

 
 
 

cygwin compilation and binary problems

Post by Le Wan » Sun, 12 Jan 2003 17:59:32



> Hi Le,

> have you tried to install the cygwin version from
> http://www.xemacs.org/Download/win32/setup.exe
> yet?

> Does this work for you?

Nope.  I still get the same warning...

I'm beginning to suspect that GNU Emacs has left something behind that causes
problems with Xemacs.  I'll try to reinstall cygwin w/o emacs.

--
Le

 
 
 

cygwin compilation and binary problems

Post by David Kastru » Sun, 12 Jan 2003 19:03:03



> Hi all,

> I've done quite well by XEmacs and cygwin in the past.  Usually
> "./configure && make && make install" works flawlessly (versions
> 21.4.4-5, IIRC).

> I just installed the *whole* cygwin package (~ 1 GB), including the
> GNU Emacs stuff a few days ago on a new laptop.  But then, I
> realized GNU Emacs only works within XWindows or the text console,

Since when?

Quote:> so I uninstalled it.

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
 
 
 

cygwin compilation and binary problems

Post by Le Wan » Mon, 13 Jan 2003 00:25:38



>> But then, I
>> realized GNU Emacs only works within XWindows or the text console,

> Since when?

I have no idea.  But I couldn't get it to open up a windows frame.  It opens
up in the text console if I don't set $DISPLAY, otherwise it open up in the
XFree session.  I don't want to use it in XFree, since it's not rootless.

--
Le

 
 
 

cygwin compilation and binary problems

Post by David Kastru » Mon, 13 Jan 2003 00:33:09




> >> But then, I
> >> realized GNU Emacs only works within XWindows or the text console,

> > Since when?

> I have no idea.  But I couldn't get it to open up a windows frame.
> It opens up in the text console if I don't set $DISPLAY, otherwise
> it open up in the XFree session.  I don't want to use it in XFree,
> since it's not rootless.

I suggest you get the native Windows version then, not the one for Cygwin.

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum

 
 
 

cygwin compilation and binary problems

Post by Le Wan » Mon, 13 Jan 2003 01:01:23




>> Hi Le,

>> have you tried to install the cygwin version from
>> http://www.xemacs.org/Download/win32/setup.exe
>> yet?

>> Does this work for you?

> Nope.  I still get the same warning...

> I'm beginning to suspect that GNU Emacs has left something behind that
> causes
> problems with Xemacs.  I'll try to reinstall cygwin w/o emacs.

No luck.  Can someone tell me how XEmacs determins the root of its hierarchy
in cygwin?  The binaries that I've downloaded always give the original error
message, and all the toolbar icons are missing in the XEmacs frame.

--
Le

 
 
 

cygwin compilation and binary problems

Post by Rick Ranki » Mon, 13 Jan 2003 01:28:52



Quote:> Hi all,

> I've done quite well by XEmacs and cygwin in the past.  Usually
"./configure
> && make && make install" works flawlessly (versions 21.4.4-5, IIRC).

> I just installed the *whole* cygwin package (~ 1 GB), including the GNU
Emacs
> stuff a few days ago on a new laptop.  But then, I realized GNU Emacs only
> works within XWindows or the text console, so I uninstalled it.  I've had
a
> bit of trouble compiling 21.4.10, and now 21.4.11, the latest error I've
> gotten is:

>   /src/xemacs-21.4.11/src/emacs.c:500: undefined reference to

`_IsBadReadPtr'

I posted a patch for this a few days ago to the xemacs-patches mailing list.
The patches are in CVS, but I'm not sure that the tar files have been
recreated. If you want to build from source, your best bet would be to
update from CVS using the tag windows-21-4. You could also manually apply
the patches from the mailing list archives at xemacs.org.

HTH,

Rick

 
 
 

cygwin compilation and binary problems

Post by Le Wan » Mon, 13 Jan 2003 02:03:39



> Hi all,

> I've done quite well by XEmacs and cygwin in the past.  Usually "./configure
> && make && make install" works flawlessly (versions 21.4.4-5, IIRC).

> I just installed the *whole* cygwin package (~ 1 GB), including the GNU
> Emacs
> stuff a few days ago on a new laptop.  But then, I realized GNU Emacs only
> works within XWindows or the text console, so I uninstalled it.  I've had a
> bit of trouble compiling 21.4.10, and now 21.4.11, the latest error I've
> gotten is:

>   /src/xemacs-21.4.11/src/emacs.c:500: undefined reference to
>   `_IsBadReadPtr'

When I tried to compile 21.4.9 and 21.4.10, I get the following error:

Loading /src/xemacs-21.4.9/lisp/loaddefs.elc...
Loading site-load...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name xemacs
.data and .bss reversed
no .bss section: No such file or directory
make[2]: [xemacs] Error 255 (ignored)
Testing for Lisp shadows ...
make[2]: Leaving directory `/src/xemacs-21.4.9/src'
make[1]: Leaving directory `/src/xemacs-21.4.9/src'
Building finder database ...
/src/xemacs-21.4.9/src/xemacs: permission denied
make: *** [lisp/finder-inf.el] Error 126

Has anyone seen this?

--
Le

 
 
 

cygwin compilation and binary problems

Post by Le Wan » Mon, 13 Jan 2003 08:10:02



> I posted a patch for this a few days ago to the xemacs-patches mailing list.
> The patches are in CVS, but I'm not sure that the tar files have been
> recreated. If you want to build from source, your best bet would be to
> update from CVS using the tag windows-21-4. You could also manually apply
> the patches from the mailing list archives at xemacs.org.

Thanks Rick.  The I got the CVS version like you suggested and got past that
error, but now this error is back:

cd ./lib-src && make all
Loading /src/xemacs-21.4.9/src/../lisp/update-elc.el...make[1]: Entering
directory `/src/xemacs-21.4.9/lib-src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/src/xemacs-21.4.9/lib-src'
cd ./src && make all
make[1]: Entering directory `/src/xemacs-21.4.9/src'
./temacs -nd -batch -l /src/xemacs-21.4.9/src/../lisp/update-elc.el

Loading very-early-lisp...
Loading find-paths.el...
Loading packages.el...
Loading setup-paths.el...
Loading dump-paths.el...
Loading /src/xemacs-21.4.9/lisp/dumped-lisp.el...
make[1]: Leaving directory `/src/xemacs-21.4.9/src'
Building finder database ...
/src/xemacs-21.4.9/src/xemacs: permission denied
make: *** [lisp/finder-inf.el] Error 126

So now I get this in versions 21.4.4,9,10, and 11.  I know for a fact 21.4.4
worked well before, so I guess this is a cygwin problem.

I guess I should give a bit more detail about my enrironment:

OS: Win 2k SP 2
Mem: 512
Filesystem: ntfs

Does anyone know of any permissions issues with Cygwin?  I have the sytstem
variable $CYGWIN set to "ntsec tty" if that helps.

--
Le

--
Le

 
 
 

cygwin compilation and binary problems

Post by Rick Ranki » Tue, 14 Jan 2003 01:49:10




> > I posted a patch for this a few days ago to the xemacs-patches mailing
list.
> > The patches are in CVS, but I'm not sure that the tar files have been
> > recreated. If you want to build from source, your best bet would be to
> > update from CVS using the tag windows-21-4. You could also manually
apply
> > the patches from the mailing list archives at xemacs.org.

> Thanks Rick.  The I got the CVS version like you suggested and got past
that
> error, but now this error is back:

> cd ./lib-src && make all
> Loading /src/xemacs-21.4.9/src/../lisp/update-elc.el...make[1]: Entering
> directory `/src/xemacs-21.4.9/lib-src'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/src/xemacs-21.4.9/lib-src'
> cd ./src && make all
> make[1]: Entering directory `/src/xemacs-21.4.9/src'
> ./temacs -nd -batch -l /src/xemacs-21.4.9/src/../lisp/update-elc.el

> Loading very-early-lisp...
> Loading find-paths.el...
> Loading packages.el...
> Loading setup-paths.el...
> Loading dump-paths.el...
> Loading /src/xemacs-21.4.9/lisp/dumped-lisp.el...
> make[1]: Leaving directory `/src/xemacs-21.4.9/src'
> Building finder database ...
> /src/xemacs-21.4.9/src/xemacs: permission denied
> make: *** [lisp/finder-inf.el] Error 126

No, it's not a cygwin problem. It's been a while since I've seen this, but
IIRC, this is because the old dumping scheme doesn't work correctly with
gcc-3.2. The same problem exists on Linux. If I'm right, you have two
options.

1. Use the portable dumper, i.e., add --pdump to your list of options to
configure.
2. Use Cygwin's setup to install (if you haven't) and use gcc-2 to build
XEmacs. The gcc-2 package is version 2.95.3 of gcc. The executable is named
gcc-2.exe so it doesn't conflict with the current release.

I use option 1.

HTH,

Rick

 
 
 

cygwin compilation and binary problems

Post by Le Wan » Tue, 14 Jan 2003 10:21:03






>> > I posted a patch for this a few days ago to the xemacs-patches mailing
> list.
>> > The patches are in CVS, but I'm not sure that the tar files have been
>> > recreated. If you want to build from source, your best bet would be to
>> > update from CVS using the tag windows-21-4. You could also manually
> apply
>> > the patches from the mailing list archives at xemacs.org.

>> Thanks Rick.  The I got the CVS version like you suggested and got past
> that
>> error, but now this error is back:

>> cd ./lib-src && make all
>> Loading /src/xemacs-21.4.9/src/../lisp/update-elc.el...make[1]: Entering
>> directory `/src/xemacs-21.4.9/lib-src'
>> make[1]: Nothing to be done for `all'.
>> make[1]: Leaving directory `/src/xemacs-21.4.9/lib-src'
>> cd ./src && make all
>> make[1]: Entering directory `/src/xemacs-21.4.9/src'
>> ./temacs -nd -batch -l /src/xemacs-21.4.9/src/../lisp/update-elc.el

>> Loading very-early-lisp...
>> Loading find-paths.el...
>> Loading packages.el...
>> Loading setup-paths.el...
>> Loading dump-paths.el...
>> Loading /src/xemacs-21.4.9/lisp/dumped-lisp.el...
>> make[1]: Leaving directory `/src/xemacs-21.4.9/src'
>> Building finder database ...
>> /src/xemacs-21.4.9/src/xemacs: permission denied
>> make: *** [lisp/finder-inf.el] Error 126

> No, it's not a cygwin problem. It's been a while since I've seen this, but
> IIRC, this is because the old dumping scheme doesn't work correctly with
> gcc-3.2. The same problem exists on Linux. If I'm right, you have two
> options.

> 1. Use the portable dumper, i.e., add --pdump to your list of options to
> configure.
> 2. Use Cygwin's setup to install (if you haven't) and use gcc-2 to build
> XEmacs. The gcc-2 package is version 2.95.3 of gcc. The executable is named
> gcc-2.exe so it doesn't conflict with the current release.

> I use option 1.

Perfect.  Option 1 works.  Many thanks, Rick.

--
Le

 
 
 

cygwin compilation and binary problems

Post by Roland Walte » Mon, 27 Jan 2003 04:16:26




> > I posted a patch for this a few days ago to the xemacs-patches mailing list.
> > The patches are in CVS, but I'm not sure that the tar files have been
> > recreated. If you want to build from source, your best bet would be to
> > update from CVS using the tag windows-21-4. You could also manually apply
> > the patches from the mailing list archives at xemacs.org.

> Thanks Rick.  The I got the CVS version like you suggested and got past that
> error, but now this error is back:

> cd ./lib-src && make all
> Loading /src/xemacs-21.4.9/src/../lisp/update-elc.el...make[1]: Entering
> directory `/src/xemacs-21.4.9/lib-src'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/src/xemacs-21.4.9/lib-src'
> cd ./src && make all
> make[1]: Entering directory `/src/xemacs-21.4.9/src'
> ./temacs -nd -batch -l /src/xemacs-21.4.9/src/../lisp/update-elc.el

> Loading very-early-lisp...
> Loading find-paths.el...
> Loading packages.el...
> Loading setup-paths.el...
> Loading dump-paths.el...
> Loading /src/xemacs-21.4.9/lisp/dumped-lisp.el...
> make[1]: Leaving directory `/src/xemacs-21.4.9/src'
> Building finder database ...
> /src/xemacs-21.4.9/src/xemacs: permission denied
> make: *** [lisp/finder-inf.el] Error 126

I got neary the same error when i compiled Xemacs 21.1.14 on cygwin.

The problem was the rights of the /src/xemacs-21.4.9/src/xemacs
executable.

It had only read and write flags and no executable flag, when i looked
at it with 'ls -l'. So I changed the rights with
'chmod u+x /src/xemacs-21.4.9/src/xemacs'
and started the build again with 'make'.

The executable was recreated but had the right flags now.

--