Re: [code] Compiling TextAdept in CentOS

From: Gert Meulyzer <>
Date: Wed, 11 Dec 2013 08:16:58 +0100

Hi Mitchell,

This is my version of wget (the default version installed on CentOS 6.5 afaik)

GNU Wget 1.12 built on linux-gnu.

+digest +ipv6 +nls +ntlm +opie +md5/openssl +https -gnutls +openssl

    /etc/wgetrc (system)
Locale: /usr/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
    -DLOCALEDIR="/usr/share/locale" -I. -I../lib -O2 -g -pipe -Wall
    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
    --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing
Link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
    -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
    -fno-strict-aliasing -Wl,-z,relro -L/usr/lib6464 -lssl -lcrypto
    -ldl -lz /usr/lib64/ /usr/lib64/ -ldl -lrt
    ftp-opie.o openssl.o http-ntlm.o gen-md5.o ../lib/libgnu.a

Copyright © 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Nikšić &lt;;.
Currently maintained by Micah Cowan &lt;;.
Please send bug reports and questions to &lt;;.

I've tinkered a little with the Makefile and came up with a patch that makes it work on CentOS.
Not sure how useful or how clean this is, but here you go:

--- textadept-dcefcbb61eeb/src/Makefile 2013-11-11 15:11:06.000000000 +0100
+++ Makefile 2013-12-11 08:08:18.467385477 +0100
@@ -413,6 +413,7 @@
 # External dependencies.
 scintilla_tgz = scintilla334.tgz?download
+scintilla_tgz_file = scintilla334.tgz
 scinterm_zip =
 scintillua_zip =
 lua_tgz = lua-5.2.2.tar.gz
@@ -431,9 +432,9 @@
 gtkosx_zip =
 bombay_zip =
-$(scintilla_tgz): ; wget "$@"
+$(scintilla_tgz): ; wget "$@" -O $(scintilla_tgz_file)
 scintilla: scintilla.patch | $(scintilla_tgz)
- mkdir $@ &amp;&amp; tar xzf $| -C $@ &amp;&amp; mv $@/*/* $@
+ mkdir $@ &amp;&amp; tar xzf $(scintilla_tgz_file) -C $@ &amp;&amp; mv $@/*/* $@
     patch -d $@ -N -p1 &lt; $&lt;
 $(scinterm_zip): ; wget "" -O $@
 scintilla/term: | $(scinterm_zip) ; mkdir $@ &amp;&amp; unzip -d $@ $| &amp;&amp; mv $@/*/* $@
@@ -445,7 +446,7 @@
 LexLPeg.cxx: | ../lexers ; ln -s $|/$@ $@
 $(lua_tgz): ; wget "$@"
 $(lpeg_tgz): ; wget "$@"
-$(lfs_zip): ; wget "$@"
+$(lfs_zip): ; wget "$@" -O $@
 lua: lua.patch | $(lua_tgz)
     mkdir $@ &amp;&amp; tar xzf $| -C $@ &amp;&amp; mv $@/*/* $@
     patch -d $@ -N -p1 &lt; $&lt;



---- On Tue, 10 Dec 2013 16:35:59 +0100 Mitchell &lt;; wrote ----

Hi Gert,
On Tue, 10 Dec 2013, Gert Meulyzer wrote:
&gt; Hi again,
&gt; So I dove into the Makefile to see what could be going wrong and found the steps where the downloads failed.
&gt; There are some patch lines in there, so I executed those as well and tried to make again. (One for scintilla and one for lua.)
&gt; This time it worked, TextAdept compiled and then started without complaints.
&gt; I still don't know why it went wrong, but at least I have a working editor now.
&gt; Could it be that CentOS just has very old versions of gcc/make etc and that those don't work properly with the TextAdept make file?
I'm glad you got it working, but sorry that you had to spend so much of
your time manually fixing things. I think it boils down to your version of
"wget". For some reason it doesn't download files using the same name
convention as later versions do. I have limited experience with wget. What
version do you have? Perhaps I can fix some things, but I'm not very
confident... :(

You are subscribed to 
To change subscription settings, send an e-mail to 
To unsubscribe, send an e-mail to 
You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 11 Dec 2013 - 02:16:58 EST

This archive was generated by hypermail 2.2.0 : Wed 11 Dec 2013 - 06:50:00 EST