Opened 13 years ago

Closed 12 years ago

#31524 closed defect (invalid)

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 (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
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>

Attachments (1)

main.log (68.8 KB) - added by wolfoppa@… 13 years ago.

Download all attachments as: .zip

Change History (4)

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.

comment:2 in reply to:  1 Changed 13 years 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 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.