New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21898 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

db46 fails to build with non-default build_arch

Reported by: thomas@… Owned by: blair@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: db46

Description

Generated output is the following:

--->  Attempting to fetch db-4.6.21.tar.gz from http://arn.se.distfiles.macports.org/db4/4.6.21_5
--->  Verifying checksum(s) for db46
--->  Extracting db46
--->  Applying patches to db46
--->  Configuring db46
--->  Building db46
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_db46/work/db-4.6.21/build_unix" && /usr/bin/make -j2 all " returned error 2
Command output: collect2: ld returned 1 exit status
make: *** [db_archive] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/gcc-4.2 -O2 -arch i386 -o .libs/db_checkpoint .libs/db_checkpoint.o .libs/util_log.o .libs/util_sig.o  -L/opt/local/lib ./.libs/libdb-4.6.dylib 
ld: warning: in ./.libs/libdb-4.6.dylib, file is not of required architecture
Undefined symbols:
  "___os_id", referenced from:
      ___db_util_logset in util_log.o
  "_db_env_create", referenced from:
      _main in db_checkpoint.o
  "___os_sleep", referenced from:
      _main in db_checkpoint.o
  "___db_ctime", referenced from:
      _main in db_checkpoint.o
      _main in db_checkpoint.o
      ___db_util_logset in util_log.o
  "___db_rpath", referenced from:
      _main in db_checkpoint.o
  "_db_version", referenced from:
      _version_check in db_checkpoint.o
      _main in db_checkpoint.o
  "___db_getlong", referenced from:
      _main in db_checkpoint.o
      _main in db_checkpoint.o
  "_db_strerror", referenced from:
      _main in db_checkpoint.o
      _main in db_checkpoint.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [db_checkpoint] Error 1

After adding configure.ldflags to the db46/Portfile, everything works fine.

Attachments

db46-Portfile.diff (400 bytes) - added by thomas@… 4 years ago.
Diff's direction went wrong
db46-archflags.diff (396 bytes) - added by jmr@… 4 years ago.
better patch

Change History

Changed 4 years ago by thomas@…

Diff's direction went wrong

comment:1 Changed 4 years ago by macsforever2000@…

  • Owner changed from macports-tickets@… to blair@…
  • Port set to db46

See also #20875.

Changed 4 years ago by jmr@…

better patch

comment:2 Changed 4 years ago by jmr@…

  • Summary changed from db46 fails to build with i386 on Snow Leopard to db46 fails to build with non-default build_arch

comment:3 Changed 4 years ago by jmr@…

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

r60244 (maintainer timeout)

Note: See TracTickets for help on using tickets.