Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#21965 closed defect (worksforme)

"build db46" fails

Reported by: borschel@… Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: db46

Description (last modified by mf2k (Frank Schima))

see below debug output. the makefile configuration appears to be faulty. It generates a nonsense include path option for gcc ("-I ../dist/.." instead of "-I ."), which is why the file db.h can't be found.

benno@8h2kyc1:~> port -d build db46
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/db46
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/db46
DEBUG: OS Platform: darwin
DEBUG: OS Version: 9.8.0
DEBUG: Mac OS X Version: 10.5
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: Going to use alternate build prefix: /Users/benno/.macports
DEBUG: workpath = /Users/benno/.macports/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/work
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port db46.
DEBUG: Requested variant i386 is not provided by port db46.
DEBUG: Requested variant macosx is not provided by port db46.
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
DEBUG: Privilege de-escalation not attempted as not running as root.
--->  Computing dependencies for db46
DEBUG: Executing org.macports.main (db46)
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.fetch (db46)
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.checksum (db46)
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.extract (db46)
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.patch (db46)
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.configure (db46)
MacPorts running without privileges. You may be unable to complete certain actions (eg install).
DEBUG: Privilege de-escalation not attempted as not running as root.
--->  Building db46
DEBUG: Executing org.macports.build (db46)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/Users/benno/.macports/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 -j1 all'
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -c -O2 -arch i386  -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers ../dist/../db_dump185/db_dump185.c
 /usr/bin/gcc-4.0 -c -O2 -arch i386 -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers ../dist/../db_dump185/db_dump185.c  -fno-common -DPIC -o .libs/db_dump185.o
../dist/../db_dump185/db_dump185.c:23:16: error: db.h: No such file or directory
../dist/../db_dump185/db_dump185.c:87: error: syntax error before 'DBT'
../dist/../db_dump185/db_dump185.c:87: warning: no semicolon at end of struct or union
../dist/../db_dump185/db_dump185.c:95: error: syntax error before '}' token

Change History (6)

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

Description: modified (diff)
Port: db46 added

comment:2 Changed 11 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to blair@…

comment:3 in reply to:  1 Changed 11 years ago by borschel@…

Replying to macsforever2000@…:

found reason for the problem in missing file "/usr/include/db.h". restoring "/usr/include/db.h" solved the problem.

comment:4 Changed 11 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed

Glad you got it working. Thanks for the update.

comment:5 Changed 11 years ago by blair (Blair Zajac)

If you have anything in /usr/local, you should really do the following to ensure you have a good build:

sudo mv /usr/local /usr/local.save
sudo port -v -f uninstall db46
sudo port -v install db46
sudo mv /usr/local.save /usr/local

comment:6 Changed 11 years ago by borschel@…

thanks

Note: See TracTickets for help on using tickets.