Opened 15 years ago

Closed 15 years ago

#21898 closed defect (fixed)

db46 fails to build with non-default build_arch

Reported by: thomas@… Owned by: blair (Blair Zajac)
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 (2)

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

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by thomas@…

Attachment: db46-Portfile.diff added

Diff's direction went wrong

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to blair@…
Port: db46 added

See also #20875.

Changed 15 years ago by jmroot (Joshua Root)

Attachment: db46-archflags.diff added

better patch

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Summary: db46 fails to build with i386 on Snow Leoparddb46 fails to build with non-default build_arch

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

r60244 (maintainer timeout)

Note: See TracTickets for help on using tickets.