Opened 13 years ago

Last modified 12 years ago

#31524 closed defect

openldap: Undefined symbols for architecture x86_64: _ldif_back_initialize _monitor_back_initialize _hdb_back_initialize _relay_back_initialize — at Version 1

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 (Ryan Carsten Schmidt))

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>

Change History (2)

Changed 13 years ago by wolfoppa@…

Attachment: main.log added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to landonf@…
Port: openldap added
Summary: Failed to install openldap.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.

Note: See TracTickets for help on using tickets.