Opened 13 years ago

Closed 13 years ago

#30997 closed defect (duplicate)

gdbm @1.9.1 configure error: cannot create a temporary directory

Reported by: jlg89 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: gdbm

Description (last modified by ryandesign (Ryan Carsten Schmidt))

locals-xserve:~ root# /opt/local/bin/port -v              
MacPorts 2.0.1

locals-xserve:~ root# /opt/local/bin/port installed gdbm
The following ports are currently installed:
  gdbm @1.8.3_3 (active)

locals-xserve:~ root# /opt/local/bin/port upgrade outdated
--->  Fetching archive for gdbm
--->  Attempting to fetch gdbm-1.9.1_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/gdbm
--->  Fetching gdbm
--->  Verifying checksum(s) for gdbm
--->  Extracting gdbm
--->  Configuring gdbm
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for gdbm is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_gdbm/gdbm/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

locals-xserve:~ root# tail -30  /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_gdbm/gdbm/main.log
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_gdbm/gdbm/work/gdbm-1.9.1" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info 
:info:configure checking for a BSD-compatible install... /usr/bin/install -c
:info:configure checking whether build environment is sane... yes
:info:configure checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
:info:configure checking for gawk... gawk
:info:configure checking whether make sets $(MAKE)... yes
:info:configure checking for gcc... /Developer/usr/bin/llvm-gcc-4.2
:info:configure checking for C compiler default output file name... a.out
:info:configure checking whether the C compiler works... yes
:info:configure checking whether we are cross compiling... no
:info:configure checking for suffix of executables... 
:info:configure checking for suffix of object files... o
:info:configure checking whether we are using the GNU C compiler... yes
:info:configure checking whether /Developer/usr/bin/llvm-gcc-4.2 accepts -g... yes
:info:configure checking for /Developer/usr/bin/llvm-gcc-4.2 option to accept ISO C89... none needed
:info:configure checking for style of include used by make... GNU
:info:configure checking dependency style of /Developer/usr/bin/llvm-gcc-4.2... gcc3
:info:configure checking how to run the C preprocessor... /Developer/usr/bin/llvm-gcc-4.2 -E
:info:configure checking for a BSD-compatible install... /usr/bin/install -c
:info:configure checking build system type... mkdir: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//cg3375-1230: Permission denied
:info:configure mkdir: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//cg-3375: Permission denied
:info:configure config.guess: cannot create a temporary directory in /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/
:info:configure configure: error: cannot guess build type; you must specify one
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_gdbm/gdbm/work/gdbm-1.9.1" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for gdbm): org.macports.install org.macports.configure org.macports.build org.macports.destroot
:notice:configure Log for gdbm is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_gdbm/gdbm/main.log

Change History (5)

comment:1 Changed 13 years ago by jlg89

This is under Mac OS X Server 10.7.1

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: gdbm added

Remember to use WikiFormatting please and to preview before submitting. And fill in the Port field.

comment:3 Changed 13 years ago by blb@…

Probably duplicate of #30749.

comment:4 Changed 13 years ago by jlg89

You're right! I looked at 30749, and tried "upgrade outdated" again using sudo instead of simply running it as root. The problem does not occur, everything works as it should. Very strange. Maybe a sandbox issue of some sort.

On this system, I also notice a bunch of those temp directories in /var/folders, which (I'm assuming) must have been left around after previous ports that were installed by root, without using sudo.

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.