Wednesday, October 5, 2011

Building gcc 2.95.3 on a modern x86_64 system

General build instructions:

http://www.linuxfromscratch.org/blfs/view/5.1/general/gcc2.html

Then, follow instructions as generally outlined in:
http://www.trevorpounds.com/blog/?p=111

With a few modifications:

tar xzf glibc-2.10.1.tar.gz
mkdir -p gcc-2.95.3/glibc-workaround/include/bits
cp glibc-2.10.1/bits/stdio-lock.h gcc-2.95.3/glibc-workaround/include/bits
cp glibc-2.10.1/nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h gcc-2.95.3/glibc-workaround/include/bits
sed -i -n '1h;1!H;${;g;s/\(__pthread_slist_t __list;\n[ \t]*}\)/\1 __gcc_295_workaround__/g;p;}' gcc-2.95.3/glibc-workaround/include/bits/pthreadtypes.h
tar xzf gcc-2.95.3.tar.gz
cd gcc-2.95.3
patch -p0 < gcc-v2.95.x.debian.x86_64.diff
mkdir ../gcc-2.95.3-objdir
cd ../gcc-2.95.3-objdir
CFLAGS=-D_FORTIFY_SOURCE=0 ../gcc-2.95.3/configure --prefix=/opt/x86_64/gcc/gcc-2.95.3 --enable-languages=c,c++ --enable-threads=posix --enable-shared --host i386-pc-linux-gnu
make
make install

L=`find /opt/x86_64/gcc/gcc-2.95.3/lib -name "*libstdc++*.so" -type f` &&
IL=`basename $L`

for i in /opt/x86_64/gcc/gcc-2.95.3/lib/*.so*; do mv -f $i /usr/lib;
ln -sf /usr/lib/`basename $i` /opt/x86_64/gcc/gcc-2.95.3/lib; done

ln -sf $IL /usr/lib/libstdc++-libc6.1-1.so.2 &&
ln -sf $IL /usr/lib/libstdc++-libc6.2-2.so.3 &&
ln -sf $IL /usr/lib/libstdc++-libc6.3-2.so.3

Tuesday, May 24, 2011

Introduction to Algorithms

This web page details teaching modules related to basic algorithms that are under development at the ANU. Modules are written in LaTeX and published in three formats: MathML, Post Script (PS), and the Portable Document Format (PDF). You will need to configure your browser correctly to view the MathML versions of the documents (see"Note on MathML").

http://cs.anu.edu.au/~Alistair.Rendell/Teaching/apac_comp3600/

Wednesday, April 27, 2011

Friday, April 8, 2011

OpenOffice - Styles and Formatting Window Not Dockable

You can dock the toolbars and floating windows in OpenOffice.org.

Usually you can take any window, drag it toward the side of your work area (or any of the four sides, technically) and when the gray dotted outline appears, release your mouse. (Then to undock, click and hold down on the blank gray area between the icons at the top, and drag back toward the middle.)

However, this doesn't always work. The docking process, that is. The gray line doesn't always show up.

Here's a key combination to dock the Styles and Formatting window that always (to my knowledge) works.

Click on the title bar of the undocked window so that it's selected. Then press Ctrl Shift F10

Press that key combo and the Styles and Formatting window docks immediately. Then as described above, drag the gray area between the icons back toward the middle of the work area to undock.

And -- here's the beautiful thing -- IT WORKS WITH THE SLIDE PANE IN OPENOFFICE.ORG IMPRESS, TOO!!! And that thing is really tricky to dock.

Install kq on Ubuntu 10.10

Download KQ from SourceForge
http://sourceforge.net/projects/kqlives/files/KQ/20060508/KQ-src-20060509.tar.gz/download

apt-get install libaldmb1-dev libdumb1-dev liblua50-dev liballegro4.2-dev

./configure
make
make install

Tuesday, April 13, 2010

Postgres Project To Go NoSQL

TheFuzzy writes "Apparently the PostgreSQL project is caving in to recent trends and going NoSQL next year. This will leave SQLite as the only open source database still supporting SQL."

Isn't that nice