New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #31524 (closed defect: invalid)

Opened 20 months ago

Last modified 12 months ago

openldap: Undefined symbols for architecture x86_64: _ldif_back_initialize _monitor_back_initialize _hdb_back_initialize _relay_back_initialize

Reported by: wolfoppa@… Owned by: landonf@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign@…
Port: openldap

Description (last modified by ryandesign@…) (diff)

When I make the develop environment to build Android source tree, I ran the below command. [I installed MacPort 2.0.3]

$POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnup

After that I got the below thing on my terminal.

$ POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg
Password:
--->  Computing dependencies for gmake
--->  Cleaning gmake
--->  Computing dependencies for libsdl
--->  Cleaning libsdl
--->  Computing dependencies for git-core
--->  Cleaning git-core
--->  Computing dependencies for gnupg
--->  Dependencies to be installed: openldap
--->  Building openldap
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install openldap
Log for openldap is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_openldap/openldap/main.log
Error: The following dependencies were not installed: openldap
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments

main.log (68.8 KB) - added by wolfoppa@… 20 months ago.

Change History

Changed 20 months ago by wolfoppa@…

comment:1 follow-up: ↓ 2 Changed 20 months ago by ryandesign@…

  • Cc ryandesign@… added
  • Owner changed from macports-tickets@… to landonf@…
  • Description modified (diff)
  • Port set to openldap
  • Summary changed from Failed to install openldap. to openldap: Undefined symbols for architecture x86_64: _ldif_back_initialize _monitor_back_initialize _hdb_back_initialize _relay_back_initialize

Please remember to use WikiFormatting, to fill in the Port field, and to Cc the maintainer of that port.

In the log I see:

Undefined symbols for architecture x86_64:
  "_ldif_back_initialize", referenced from:
      _slap_binfo in backends.o
  "_monitor_back_initialize", referenced from:
      _slap_binfo in backends.o
  "_hdb_back_initialize", referenced from:
      _slap_binfo in backends.o
  "_relay_back_initialize", referenced from:
      _slap_binfo in backends.o
ld: symbol(s) not found for architecture x86_64

I also see you're building with clang, which presumably means you have a pre-release of Xcode 4.2. Try building with llvm-gcc-4.2 instead:

sudo port clean openldap
sudo port install openldap configure.compiler=llvm-gcc-4.2

If that works we can fix the port to always do that.

comment:2 in reply to: ↑ 1 Changed 15 months ago by letatas@…

Replying to ryandesign@…:

Try building with llvm-gcc-4.2 instead:

sudo port clean openldap
sudo port install openldap configure.compiler=llvm-gcc-4.2

That doesn't help, unfortunately. However, I've found where the problem is. In fact the problem occurs with XCode 4.2 build 4C104 that installs clang 209.6... When you upgrade with XCode 4.2 build 4C199, it installs clang 211.10.1 and the problem is solved...

comment:3 Changed 12 months ago by jmr@…

  • Status changed from new to closed
  • Resolution set to invalid

OK, so this was a bug in a prerelease Xcode version.

Note: See TracTickets for help on using tickets.