Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#1471 closed defect (duplicate)

DP not following dependency information correctly (was: apr-util doesn't install db4's dependencies?)

Reported by: ken@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: danielluke (Daniel J. Luke)
Port:

Description

I get the following error when I try to install apr-util, which looks like a failure to install tcl. It looks like tcl isn't one of db4's dependencies, judging from the output of 'port deps db4'. However, when I do 'sudo port install db4', tcl gets installed first. What might be happening here?

[junior:~/src/darwinports] ken% sudo port install apr-util Password: ---> Configuring db4 Error: Target com.apple.configure returned: configure failure: shell command "cd "/Users/ken/src/ darwinports/dports/databases/db4/work/db-4.2.52/build_unix" && ../dist/configure --prefix=/ opt/local --enable-compat185 --enable-dump185 --enable-cxx --includedir=/opt/local/ include/db4 --program-transform-name=s,db,db4, --enable-tcl --with-tcl=/opt/local/lib" returned error 1 Command output: checking for strip... strip checking if cc static flag works... yes checking if cc supports -fno-rtti -fno-exceptions... yes checking for cc option to produce PIC... -fno-common checking if cc PIC flag -fno-common works... yes checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... darwin6.8 dyld checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... darwin6.8 dyld appending configuration tag "F77" to libtool checking SOSUFFIX from libtool... .dylib checking MODSUFFIX from libtool... .so checking JMODSUFFIX from libtool... .jnilib configure: error: /opt/local/lib directory doesn't contain tclConfig.sh

Error: The following dependencies failed to build: db4

Change History (7)

comment:1 Changed 20 years ago by danielluke (Daniel J. Luke)

tcl is one of db4's dependencies when installed on darwin6:

platform darwin 6 { depends_lib-append bin:tclsh8.4:tcl

configure.args-append --enable-tcl \ --with-tcl=${prefix}/lib }

I don't know why DP isn't installing it when db4 is being installed to satisfy the apr-util dependency.

comment:2 Changed 20 years ago by waqar@…

Owner: changed from darwinports-bugs@… to dluke@…

comment:3 Changed 20 years ago by danielluke (Daniel J. Luke)

Cc: dluke@… added
Owner: changed from dluke@… to darwinports-bugs@…

I've replicated this problem on my darwin 6 machine.

Summary:

port install apr-util will attempt to installd db4, but the db4 install won't attempt to install tcl (which it needs). port install db4 will install tcl as required.

This isn't a problem with the apr-util portfile, but looks like it might be a problem with darwinports dependency system.

I don't know enough tcl (yet) to track this one down, but I'll take a look at it if no one else gets to it before me.

comment:4 Changed 20 years ago by olegb@…

Owner: changed from darwinports-bugs@… to dluke@…

assigning to maintainer

comment:5 Changed 20 years ago by danielluke (Daniel J. Luke)

Owner: changed from dluke@… to darwinports-bugs@…
Summary: apr-util doesn't install db4's dependencies?DP not following dependency information correctly (was: apr-util doesn't install db4's dependencies?)

This isn't a bug with either the apr-util or db4 portfiles, it's a problem with darwinports' dependency engine.

comment:6 Changed 20 years ago by olegb@…

yes, the deps code, heh!

Daniel, is this bug _still_ present ? If yes, would you keep an eye with it and close it when the deps code works?

Thanks,

Ole (haunted by deps bugs himself)

comment:7 Changed 20 years ago by toby@…

Resolution: duplicate
Status: newclosed

* This bug has been marked as a duplicate of 1667 *

Note: See TracTickets for help on using tickets.