reddragdiva: (stress relief)
[personal profile] reddragdiva

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-07 11:53 am (UTC)
From: [identity profile] secretlondon.livejournal.com
i don't really wanna pub the day before work anyway. I'm not (yet) good enough at Monday mornings for that..

(no subject)

Date: 2008-06-08 01:11 pm (UTC)
From: [identity profile] secretlondon.livejournal.com
I haven't started on the job application (for this job permanently) which needs to be done for tomorrow :(

I think I'm gonna have to cancel - sorry.

March 2022

S M T W T F S
  12 345
6789101112
13141516171819
20212223242526
2728293031  

Page Summary

Style Credit

Expand Cut Tags

No cut tags