Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16347 closed defect (fixed)

error while compiling postgresql82 (@8.2.9)

Reported by: maccheck@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: postgresql82 compile error Cc: mww@…, jyrkiwahlstedt
Port:

Description

I'm trying to upgrade my postgresql82 installation from @8.2.7_1+python to @8.2.9_0+python and get following error message. postgresql-server82 @8.2.9 installed withaout any issues...

--->  Building postgresql82
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql82/work/postgresql-8.2.9" && gnumake " returned error 2
Command output: gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C freespace SUBSYS.o
gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C ipc SUBSYS.o
gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C large_object SUBSYS.o
gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C lmgr SUBSYS.o
gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C page SUBSYS.o
gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C smgr SUBSYS.o
gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C tcop all
gnumake[3]: Nothing to be done for `all'.
gnumake -C utils all
gnumake -C adt SUBSYS.o
gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C cache SUBSYS.o
gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C error SUBSYS.o
gnumake[4]: `SUBSYS.o' is up to date.
gnumake -C fmgr SUBSYS.o
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include  -I/opt/local/include -DDLSUFFIX=\".so\"  -c -o dfmgr.o dfmgr.c
dfmgr.c:82: error: syntax error before '/' token
gnumake[4]: *** [dfmgr.o] Error 1
gnumake[3]: *** [fmgr-recursive] Error 2
gnumake[2]: *** [utils-recursive] Error 2
gnumake[1]: *** [all] Error 2
gnumake: *** [all] Error 2

Error: Unable to upgrade port: 1

Change History (9)

comment:1 Changed 16 years ago by jyrkiwahlstedt

Can you provide more information on this? I just did 'sudo port destroot postgresql82 +python', and it went fine (I'm on Intel 10.5.4, Xcode 3.1). BTW, you ought perhaps to upgrade postgresql82 port before postgresql82-server, just to ensure proper order, as the one is a dependency.

comment:2 Changed 16 years ago by maccheck@…

I'm on Intel, 10.5.4, Xcode 3.1 as well. As suggested I deinstalled postgresql82-server and postgresql82. When issuing 'sudo port destroot postgresql82 +python' I get the same error messages as mentioned earlier. Maybe it's a missing dependency? To compare it, here's the output from 'port installed':

The following ports are currently installed:
  apr @1.3.2_0+darwin_9 (active)
  apr-util @1.3.2_0 (active)
  autoconf @2.62_0 (active)
  automake @1.10.1_0 (active)
  bison @2.3_2 (active)
  bzip2 @1.0.5_1 (active)
  bzr @1.5_0 (active)
  curl @7.18.2_0+ssl (active)
  curl-ca-bundle @7.18.2_0 (active)
  cyrus-sasl2 @2.1.21_0+kerberos (active)
  db44 @4.4.20_1 (active)
  db46 @4.6.21_1 (active)
  expat @2.0.1_0 (active)
  freetype @2.3.7_1 (active)
  gawk @3.1.6_0 (active)
  gettext @0.17_3 (active)
  git-core @1.6.0_1+doc+svn (active)
  gmake @3.81_0 (active)
  gmp @4.2.2_2 (active)
  gperf @3.0.3_0 (active)
  gprolog @1.3.0_0 (active)
  help2man @1.36.4_1 (active)
  jpeg @6b_2 (active)
  latexdiff @0.5_0 (active)
  libiconv @1.12_0 (active)
  libmcrypt @2.5.8_0 (active)
  libtool @1.5.26_0 (active)
  libxml2 @2.6.32_1 (active)
  libxslt @1.1.23_1 (active)
  lighttpd @1.4.19_0 (active)
  m4 @1.4.11_0 (active)
  mercurial @1.0.1_1 (active)
  ncurses @5.6_0 (active)
  ncursesw @5.6_1 (active)
  neon @0.28.2_0 (active)
  openssh @5.0p1_1+darwin_9 (active)
  openssl @0.9.8h_0 (active)
  p5-compress-raw-zlib @2.012_0 (active)
  p5-compress-zlib @2.012_0 (active)
  p5-error @0.17015_0 (active)
  p5-html-parser @3.56_0 (active)
  p5-html-tagset @3.20_0 (active)
  p5-io-compress-base @2.012_0 (active)
  p5-io-compress-zlib @2.012_0 (active)
  p5-libwww-perl @5.814_0 (active)
  p5-locale-gettext @1.05_0 (active)
  p5-mime-base64 @3.07_0 (active)
  p5-scalar-list-utils @1.19_0 (active)
  p5-svn-simple @0.27_0 (active)
  p5-term-readkey @2.30_0 (active)
  p5-uri @1.35_1 (active)
  pcre @7.7_0 (active)
  perl5.8 @5.8.8_3+darwin_9 (active)
  pkgconfig @0.23_0 (active)
  popt @1.13_0 (active)
  py25-bz2 @2.5.2_0 (active)
  py25-crypto @2.0.1_0 (active)
  py25-curl @7.18.2_0 (active)
  py25-docutils @0.4_0 (active)
  py25-hashlib @2.5.2_0 (active)
  py25-mx-base @3.0.0_0 (active)
  py25-paramiko @1.7.4_0 (active)
  py25-socket-ssl @2.5.2_0 (active)
  py25-zlib @2.5.2_0 (active)
  python24 @2.4.5_3+darwin_9 (active)
  python25 @2.5.2_5+darwin_9 (active)
  readline @5.2.012_1 (active)
  rsync @3.0.3_2 (active)
  serf @0.2.0_0 (active)
  sqlite3 @3.6.1_0 (active)
  subversion @1.5.1_0+tools (active)
  subversion-perlbindings @1.5.1_0 (active)
  wget @1.11.4_0 (active)
  zlib @1.2.3_1 (active)

comment:3 Changed 16 years ago by blb@…

What does running the following say?

/usr/bin/gcc-4.0 --version

comment:4 Changed 16 years ago by maccheck@…

That's the result:

i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

comment:5 Changed 16 years ago by blb@…

Darn, there goes that theory...

It is hanging on a line that itself has no slash, but the symbol PG_MODULE_MAGIC_DATA there is defined with several lines, one of which does have a slash:

    PG_VERSION_NUM / 100, \

That define looks fine, however. When you retried installing, did you clean out the first attempt before your try with sudo port clean --work postgresql82?

comment:6 Changed 16 years ago by maccheck@…

Aaargh, 'port clean...' did it. I thought I cleaned it before, but unfortunately I didn't...

comment:7 Changed 16 years ago by jyrkiwahlstedt

Resolution: fixed
Status: newclosed

I suppose this may be closed, then?!

comment:8 Changed 16 years ago by maccheck@…

Yes, it can be closed. Thx

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.