Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.97k stars 11.34k forks source link

Postgresql 9.1.2 fails to install on Lion 10.7.3 #9799

Closed roderik closed 12 years ago

roderik commented 12 years ago

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
Sharpie commented 12 years ago

Here's the error:

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

The only thing that strikes me as odd is that Informix is a proprietary database system produced by IBM---definitely not something Postgres would compile by default.

Do you have any Informix components installed on your system?

roderik commented 12 years ago

Nope, stock osx lion, with these brew formula's installed


bash-completion faac        imagemagick jpegoptim   libogg      libvpx      memcached   ossp-uuid   pwgen       theora      xvid
cmake       git     jasper      lame        libtiff     little-cms  mysql       pidof       readline    wget        yasm
csshx       gnu-tar     jpeg        libevent    libvorbis   memcache-php    optipng     pkg-config  redis       x264
Sharpie commented 12 years ago

Nope, stock osx lion

Your OS X version is listed as 10.7.3, is this a pre-release?

roderik commented 12 years ago

as stated in the title. Latest released build 11D50. Error occurred also with an older build (don't have the exact build number)

Sharpie commented 12 years ago

Hmm... well it is building fine on 10.7.2 with XCode 4.2.1. I'm afraid nothing is jumping out at me without access to 10.7.3.

MikeMcQuaid commented 12 years ago

brew doctor output? Did you go through all the steps on the wiki?

roderik commented 12 years ago

Went through all the steps on the wiki. None of these doctor warnings apply to this formula, or so i believe

We couldn't detect gcc 4.2.x. Some formulae require this compiler.
NOTE: Versions of XCode newer than 4.2 don't include gcc 4.2.x.

Some "config" scripts were found in your path, but not in system or Homebrew folders.

`./configure` scripts often look for *-config scripts to determine if software packages
are installed, and what additional flags to use when compiling and linking.

Having additional scripts in your path can confuse software installed via Homebrew if
the config script overrides a system or Homebrew provided script of the same name.

/usr/local/php5/bin
    curl-config freetype-config icu-config libmcrypt-config libpng-config libpng12-config php-config xml2-config xslt-config
MikeMcQuaid commented 12 years ago

Please fix the non-gcc issues (even if just temporarily moving files out the way) and see if that fixes anything.

roderik commented 12 years ago

Damn, that fixed it. Guess they did have something to do with it. Thx

MikeMcQuaid commented 12 years ago

Please follow the instructions in future before filing issues and always post your brew doctor output. Thanks!