mxcl/homebrew — Issue #9799: Postgresql 9.1.2 fails to install on Lion 10.7.3
Author: roderik
Created: 2012-01-26 18:34:06+00:00
State: open

Made sure i had the latest builds of lion and xcode (it failed with older builds as well) I have no clue on how to proceed, google is for once useless (or my google skills are not good enough :))

```
....
make -C compatlib install
/usr/bin/llvm-gcc -O3 -w -pipe -march=core2 -msse4 -I/usr/local/Cellar/ossp-uuid/1.6.2/include -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -Kthread -kthread -pthread -pthreads -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -I../include -I../../../../src/interfaces/ecpg/include -I../../../../src/interfaces/libpq -I../../../../src/include/utils -I../../../../src/include -I/usr/local/Cellar/readline/6.2.2/include -I/usr/include/libxml2 -I/usr/local/php5/include/libxml2 -DSO_MAJOR_VERSION=3 -c -o informix.o informix.c
make -C ../../../../src/interfaces/ecpg/ecpglib all
make -C ../../../../src/interfaces/ecpg/pgtypeslib all
make -C ../../../../src/interfaces/libpq all
make[5]: Nothing to be done for `all'.
awk '/^[^#]/ {printf "_%s\n",$1}' exports.txt >exports.list
/bin/sh ../../../../config/install-sh -c -d '/usr/local/Cellar/postgresql/9.1.2/lib'
make[6]: Nothing to be done for `all'.
make -C ../../../../src/interfaces/ecpg/pgtypeslib all
make[6]: Nothing to be done for `all'.
/usr/bin/llvm-gcc -O3 -w -pipe -march=core2 -msse4 -I/usr/local/Cellar/ossp-uuid/1.6.2/include -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -Kthread -kthread -pthread -pthreads -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -dynamiclib -install_name '/usr/local/Cellar/postgresql/9.1.2/lib/libecpg_compat.3.dylib' -compatibility_version 3 -current_version 3.3 -exported_symbols_list exports.list -multiply_defined suppress -o libecpg_compat.3.3.dylib informix.o -L../../../../src/port -L/usr/local/Cellar/readline/6.2.2/lib -L/usr/local/Cellar/ossp-uuid/1.6.2/lib -L/usr/local/php5/lib -Wl,-dead_strip_dylibs -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes -L../../../../src/interfaces/libpq -lpq -lm -lpthread
ar crs libecpg_compat.a informix.o
ranlib libecpg_compat.a
/bin/sh ../../../../config/install-sh -c -m 644 libecpg_compat.a '/usr/local/Cellar/postgresql/9.1.2/lib/libecpg_compat.a'
Undefined symbols for architecture x86_64:
"_ECPGget_var", referenced from:
_ECPG_informix_get_var in informix.o
"_ECPGset_var", referenced from:
_ECPG_informix_set_var in informix.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[4]: *** [libecpg_compat.3.3.dylib] Error 1
make[4]: *** Waiting for unfinished jobs....
cd '/usr/local/Cellar/postgresql/9.1.2/lib' && \
ranlib libecpg_compat.a
make[3]: *** [install-compatlib-recurse] Error 2
make[3]: *** Waiting for unfinished jobs....
/usr/bin/llvm-gcc -O3 -w -pipe -march=core2 -msse4 -I/usr/local/Cellar/ossp-uuid/1.6.2/include -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -Kthread -kthread -pthread -pthreads -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -DECPG_COMPILE -L../../../../src/port -L/usr/local/Cellar/readline/6.2.2/lib -L/usr/local/Cellar/ossp-uuid/1.6.2/lib -L/usr/local/php5/lib -Wl,-dead_strip_dylibs preproc.o type.o ecpg.o output.o parser.o keywords.o c_keywords.o ecpg_keywords.o kwlookup.o ../ecpglib/typename.o descriptor.o variable.o -lpgport -lxslt -lxml2 -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lm -luuid -lpthread -o ecpg
/bin/sh ../../../../config/install-sh -c ecpg '/usr/local/Cellar/postgresql/9.1.2/bin'
make[2]: *** [install-ecpg-recurse] Error 2
make[1]: *** [install-interfaces-recurse] Error 2
make: *** [install-world-src-recurse] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/postgresql.rb#L57
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 05d8886abce82d102682f1006a9bbf4f94f05424
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: quad-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.2
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.0 build 211
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -w -pipe -march=core2 -msse4 -I/usr/local/Cellar/ossp-uuid/1.6.2/include
CXXFLAGS: -O3 -w -pipe -march=core2 -msse4
CPPFLAGS: -I/usr/local/Cellar/readline/6.2.2/include -I/usr/include/libxml2
LDFLAGS: -L/usr/local/Cellar/readline/6.2.2/lib -L/usr/local/Cellar/ossp-uuid/1.6.2/lib
MAKEFLAGS: -j4
PKG_CONFIG_PATH: /usr/local/Cellar/readline/6.2.2/lib/pkgconfig
```