egrep is not egrep.
Jun. 4th, 2008 09:22 pmOld-school industrial MP3s — obscure tapes and so forth. Before drum machines ruined everything. I particularly recommend Rising From The Red Sand: 1, 2, 3, 4, 5. A soundtrack for your life. Brainwashed Radio wins too.
Today, I discovered that Solaris 10 egrep is not quite the same as GNU egrep, and that this is important when developers assume all the world's a GNU.
When you run ./configure for sqlite, it tells you "checking for egrep... egrep", but make craps out with:
libtool: link: ranlib .libs/libsqlite3.a
egrep: syntax error
egrep: syntax error
libtool: link: ( cd ".libs" && rm -f "libsqlite3.la" && ln -s "../libsqlite3.la" "libsqlite3.la" )
./libtool --mode=link gcc -g -O2 -DOS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DHAVE_READLINE=1 -I/usr/local/include/readline \
-o sqlite3 ./src/shell.c libsqlite3.la \
-lcurses -lrt -rpath "/home/iplayrad/sqlite/lib"
libtool: link: gcc -g -O2 -DOS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DHAVE_READLINE=1 -I/usr/local/include/readline -o .libs/sqlite3 ./src/shell.c ./.libs/libsqlite3.so -lcurses -lrt -R/home/iplayrad/sqlite/lib
Undefined first referenced
symbol in file
write_history /var/tmp//ccXy2ReD.o
stifle_history /var/tmp//ccXy2ReD.o
read_history /var/tmp//ccXy2ReD.o /var/tmp//ccXy2ReD.o
add_history /var/tmp//ccXy2ReD.o
ld: fatal: Symbol referencing errors. No output written to .libs/sqlite3
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `sqlite3'
You get around this by running ./configure, then editing libtool to change EGREP="egrep" to EGREP="/usr/sfw/bin/gegrep", then running make. Owww.
Cross-platform, adj. Runs on Red Hat and SuSE.
(no subject)
Date: 2008-06-04 08:28 pm (UTC)(no subject)
Date: 2008-06-04 08:29 pm (UTC)The problem here is GNU-centrism from sqlite. I did report this as a build bug.
(no subject)
Date: 2008-06-04 08:35 pm (UTC)(I must prod the sol machines at work and find out what version we're on, I think it's mainly sol 8).
(no subject)
Date: 2008-06-04 08:37 pm (UTC)(no subject)
Date: 2008-06-05 08:23 am (UTC)(no subject)
Date: 2008-06-05 02:59 am (UTC)(no subject)
Date: 2008-06-04 08:32 pm (UTC)(no subject)
Date: 2008-06-04 08:38 pm (UTC)(no subject)
Date: 2008-06-04 08:42 pm (UTC)(no subject)
Date: 2008-06-04 08:49 pm (UTC)(no subject)
Date: 2008-06-04 08:57 pm (UTC)(no subject)
Date: 2008-06-05 12:27 am (UTC)(no subject)
Date: 2008-06-05 03:02 am (UTC)One dude is demanding a current gnome-terminal. Another wants w3m. And of course GNU ls is essential.
Mind you, we only deploy on Solaris. We have no Linux in production and probably won't for some years at the earliest. So not only do we find ourselves having to provide a GNU userland, we have to do it in such a way that the binaries produced do not have any dependencies on that, because we can't install it on production.
(Don't ask me why not, if I had my way we'd just bloody well install Blastwave everywhere and be done with it...)
(no subject)
Date: 2008-06-05 09:04 am (UTC)(Our devs occasionally complain about the age of the packages in Blastwave, but our production boxes are RHEL 4/Centos 4, so they're used to old stuff.)
(no subject)
Date: 2008-06-05 09:18 am (UTC)(no subject)
Date: 2008-06-05 05:11 am (UTC)ld: fatal: relocation error: file: xml.o section: .rel.eh_frame symbol: : symbol has been discarded with discarded section: .gnu.linkonce.t._ZN3xml3tagD0Ev
(no subject)
Date: 2008-06-05 09:02 am (UTC)(no subject)
Date: 2008-06-05 06:47 am (UTC)Honestly, in this day and age...
OK, this problem is not solaris fault but presumably the person writing Makefile.am should have been a little more careful in their checks. (I sympathise with them because automake etc is a damned mystery -- I wrestle with it regularly now and break something every time).
(no subject)
Date: 2008-06-05 09:05 am (UTC)(no subject)
Date: 2008-06-05 11:14 am (UTC)I've little sympathy with any OS where patching is actually significant pain and effort.
I can see your point but my experience with Solaris is inevitably bad -- the kit is pricey and it's just damned hard to keep it going.
(no subject)
Date: 2008-06-05 06:53 am (UTC)(no subject)
Date: 2008-06-05 09:01 am (UTC)That blog's a revelation. All the obscure industrial you'd only ever heard of. And the stuff is remarkably good for obscurities. Rising From The Red Sand is a revelation.
(no subject)
Date: 2008-06-05 07:40 pm (UTC)(no subject)
Date: 2008-06-05 07:58 pm (UTC)Come over with a hard drive and you can ransack my collection :-)
(no subject)
Date: 2008-06-05 08:02 pm (UTC)(no subject)
Date: 2008-06-05 08:03 pm (UTC)(no subject)
Date: 2008-06-05 08:16 pm (UTC)I'm doing precisely nothing all weekend so I'm certainly free. I can bring some music I reckon you'll like..
(no subject)
Date: 2008-06-05 11:24 pm (UTC)(no subject)
Date: 2008-06-07 11:28 am (UTC)(no subject)
Date: 2008-06-07 11:52 am (UTC)Pity we have no money for pub ...
(no subject)
Date: 2008-06-07 11:53 am (UTC)(no subject)
Date: 2008-06-07 11:57 am (UTC)(no subject)
Date: 2008-06-08 01:11 pm (UTC)I think I'm gonna have to cancel - sorry.