New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21030 (new defect)

Opened 2 years ago

Last modified 15 months ago

postgresql84 8.4.0 +python variant fails to build with incompatible python in /Library/Frameworks

Reported by: chairos@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: jwa@…
Port: postgresql84

Description

jon@euterpe:~$ sudo port clean postgresql84
Password:
--->  Cleaning postgresql84
jon@euterpe:~$ sudo port install -d postgresql84 +python
--->  Computing dependencies for postgresql84
--->  Fetching postgresql84
--->  Verifying checksum(s) for postgresql84
--->  Extracting postgresql84
--->  Configuring postgresql84
--->  Building postgresql84
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_postgresql84/work/postgresql-8.4.0" && /usr/bin/gnumake -j2 " returned error 2
Command output:       _PLyDict_FromTuple in plpython.o
      _PLy_trigger_build_args in plpython.o
      _PLy_trigger_build_args in plpython.o
      _PLy_trigger_build_args in plpython.o
      _PLy_trigger_build_args in plpython.o
      _PLy_modify_tuple in plpython.o
      _PLy_trigger_handler in plpython.o
      _PLy_function_build_args in plpython.o
      _PLySequence_ToTuple in plpython.o
      _PLyMapping_ToTuple in plpython.o
      _PLyObject_ToTuple in plpython.o
      _PLy_function_handler in plpython.o
      _PLy_function_handler in plpython.o
      _PLy_output in plpython.o
      _PLy_spi_execute_fetch_result in plpython.o
      _PLy_spi_execute_plan in plpython.o
  "_PyMapping_Check", referenced from:
      _PLy_function_handler in plpython.o
  "_PyType_IsSubtype", referenced from:
      _PLy_modify_tuple in plpython.o
      _PLy_modify_tuple in plpython.o
      _PLy_trigger_handler in plpython.o
      _PLy_spi_prepare in plpython.o
      _PLy_spi_execute_plan in plpython.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
gnumake[3]: *** [plpython.so] Error 1
gnumake[2]: *** [all] Error 2
gnumake[1]: *** [all] Error 2
gnumake: *** [all] Error 2

Error: Status 1 encountered during processing.

Attachments

log.txt Download (384.4 KB) - added by chairos@… 2 years ago.
build log

Change History

  Changed 2 years ago by macsforever2000@…

  • cc mww@… removed
  • owner changed from macports-tickets@… to mww@…

follow-up: ↓ 3   Changed 2 years ago by toby@…

Please attach the output of sudo port -d install postgresql84 +python (after cleaning of course)

in reply to: ↑ 2 ; follow-up: ↓ 4   Changed 2 years ago by chairos@…

Replying to toby@…:

Please attach the output of sudo port -d install postgresql84 +python (after cleaning of course)

Um, I put that in the ticket. Did I not get it right?

in reply to: ↑ 3   Changed 2 years ago by chairos@…

Replying to chairos@…:

Replying to toby@…:

Please attach the output of sudo port -d install postgresql84 +python (after cleaning of course)

Um, I put that in the ticket. Did I not get it right?

Nevermind. Here you go.

Changed 2 years ago by chairos@…

build log

  Changed 2 years ago by toby@…

WTF @ /Library/Frameworks//Python.framework/Python

  Changed 2 years ago by chairos@…

What would really be awesome is if we could upgrade the port to use python26, not python25 (once python26 will build again, of course).

  Changed 2 years ago by chairos@…

Well, I made a local ports repo and added a python26 variant, now that python26 works. Got the same error, with /Library/Frameworks//Python.framework/Python action going on. Gonna just build without plpython for now, but that's really weird.

  Changed 2 years ago by vince@…

I've tried it, it works for me. There is an issue with the universal build, but I'll report it in a separate ticket.

-> port installed postgresql84
The following ports are currently installed:
  postgresql84 @8.4.1_0+python+universal (active)

I've python26 installed

  Changed 2 years ago by chairos@…

Still no luck here.

follow-up: ↓ 11   Changed 2 years ago by jan.fabry@…

I had this problem until I removed an old MacPython installation in /Library/Frameworks/Python.framework, which was ppc/i386, not i386/x86_64. I did apply the changes Vince proposed (#21358). It seems to work now.

in reply to: ↑ 10   Changed 2 years ago by vince@…

Replying to jan.fabry@…:

I had this problem until I removed an old MacPython installation in /Library/Frameworks/Python.framework, which was ppc/i386, not i386/x86_64. I did apply the changes Vince proposed (#21358). It seems to work now.

Since they seem to work and have not been integrated yet, I should maybe commit them?

  Changed 15 months ago by jmr@…

  • summary changed from postgresql84 8.4.0 +python variant fails to build on Snow Leopard to postgresql84 8.4.0 +python variant fails to build with incompatible python in /Library/Frameworks
Note: See TracTickets for help on using tickets.