[MacPorts] #21898: db46 fails to build with i386 on Snow Leopard

MacPorts noreply at macports.org
Wed Oct 7 00:43:37 PDT 2009


#21898: db46 fails to build with i386 on Snow Leopard
-------------------------------+--------------------------------------------
 Reporter:  thomas@…           |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  Normal             |   Milestone:                                       
Component:  ports              |     Version:  1.8.1                                
 Keywords:                     |        Port:                                       
-------------------------------+--------------------------------------------
 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.

-- 
Ticket URL: <http://trac.macports.org/ticket/21898>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list