Home > Slackware > Slackware 12.0 Postgresql 8.3.7 and slony1-2.0.1 replication engine

Slackware 12.0 Postgresql 8.3.7 and slony1-2.0.1 replication engine

in short, i had like 5 hours spent in useless efforts to figure out why slony is not compiling at production box while at my desktop box the compile ran flawlessly
short solution:

root@darkwater:[Fri Mar 20 02:45:16]:[/opt/installs/slony/slony1-2.0.1]$ cat ../seik.slony1-2.0.1.sonf
#!/bin/sh
cd /opt/installs/slony/slony1-2.0.1
export LDFLAGS=-ldl
make clean
./configure  –with-pgconfigdir=/opt/pgsql/bin –prefix=/opt/slony2
sed -i ‘s/LDFLAGS += $(rpath)/LDFLAGS += $(rpath) -ldl/’ Makefile.global
#-with-docs
make -j3 install

for ppl willing to learn, the issue was in the missing -ldl flag first in the default slackware 12.0 LDFLAGS
i dont know what is the reason for this,
At Slackware 12.2.0 slony 2.0.1 compile ran without single issue….

anyway, i added a fix in the Makefile.global, so make now compiles the slony instance …
for ppl unaware of sed .. LEARN sed and awk  🙂

seikath

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: