Sqlite3 fails to build

Weissmann Markus mww at macports.org
Mon Oct 29 06:27:50 PDT 2007


On 29.10.2007, at 12:56, Takashi Yoshida wrote:

> I'm not sure what happened, but I did the following (after my first  
> attempt to install php5 via 'sudo port -v install php5 +apache2  
> +mysql5 +pear'):
>
> sudo port -v clean php5
> sudo port -v clean sqlite3
>
> sudo port -v install php5 +apache2 +mysql5 +pear
>
> And the sqlite3 built just fine. Now it's proceeding to download  
> httpd (apache2) and building it.
>
> How did the sqlite3 build fail the first time?
>

I honestly have no idea -- I'd need a full trace to understand what  
was going on. If this happens again, do a full "debug" build via  
'port -d ...', which will ouput lots of extra debugging code.


-Markus

> Begin forwarded message:
>
>> From: Takashi Yoshida <tyoshida at mac.com>
>> Date: October 29, 2007 7:51:24 PM SST
>> To: macports-users at delta.macosforge.org
>> Subject: Sqlite3 fails to build
>>
>> Hi all,
>>
>> I was installing PHP5 and Apache2 (sudo port -v install php5  
>> +apache2 +mysql5 +pear) on my new Mac OS X Leopard (10.5) and  
>> while building sqlite3, I encountered the following error:
>>
>> --->  Verifying checksum(s) for sqlite3
>> --->  Checksumming sqlite-3.5.1.tar.gz
>> --->  Extracting sqlite3
>> --->  Extracting sqlite-3.5.1.tar.gz
>> --->  Applying patches to sqlite3
>> --->  Applying /opt/local/var/macports/sources/rsync.macports.org/ 
>> release/ports/databases/sqlite3/files/patch-Makefile.in
>> patching file Makefile.in
>> --->  Configuring sqlite3
>> checking build system type... i386-apple-darwin9.0.0
>> checking host system type... i386-apple-darwin9.0.0
>> checking for gcc... gcc
>> checking for C compiler default output file name... a.out
>> checking whether the C compiler works... yes
>> checking whether we are cross compiling... no
>> checking for suffix of executables...
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ISO C89... none needed
>> checking for a sed that does not truncate output... /usr/bin/sed
>> checking for grep that handles long lines and -e... /usr/bin/grep
>> checking for egrep... /usr/bin/grep -E
>> checking for ld used by gcc... /usr/libexec/gcc/i686-apple- 
>> darwin9/4.0.1/ld
>> checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ 
>> ld) is GNU ld... no
>> checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option  
>> to reload object files... -r
>> checking for BSD-compatible nm... /usr/bin/nm -p
>> checking whether ln -s works... yes
>> checking how to recognise dependent libraries... pass_all
>> checking how to run the C preprocessor... gcc -E
>> checking for ANSI C header files... yes
>> checking for sys/types.h... yes
>> checking for sys/stat.h... yes
>> checking for stdlib.h... yes
>> checking for string.h... yes
>> checking for memory.h... yes
>> checking for strings.h... yes
>> checking for inttypes.h... yes
>> checking for stdint.h... yes
>> checking for unistd.h... yes
>> checking dlfcn.h usability... yes
>> checking dlfcn.h presence... yes
>> checking for dlfcn.h... yes
>> checking for g++... g++
>> checking whether we are using the GNU C++ compiler... yes
>> checking whether g++ accepts -g... yes
>> checking how to run the C++ preprocessor... g++ -E
>> checking for g77... no
>> checking for xlf... no
>> checking for f77... no
>> checking for frt... no
>> checking for pgf77... no
>> checking for cf77... no
>> checking for fort77... no
>> checking for fl32... no
>> checking for af77... no
>> checking for xlf90... no
>> checking for f90... no
>> checking for pgf90... no
>> checking for pghpf... no
>> checking for epcf90... no
>> checking for gfortran... no
>> checking for g95... no
>> checking for xlf95... no
>> checking for f95... no
>> checking for fort... no
>> checking for ifort... no
>> checking for ifc... no
>> checking for efc... no
>> checking for pgf95... no
>> checking for lf95... no
>> checking for ftn... no
>> checking whether we are using the GNU Fortran 77 compiler... no
>> checking whether  accepts -g... no
>> checking the maximum length of command line arguments... 196608
>> checking command to parse /usr/bin/nm -p output from gcc object... ok
>> checking for objdir... .libs
>> checking for ar... ar
>> checking for ranlib... ranlib
>> checking for strip... strip
>> checking for correct ltmain.sh version... yes
>> checking if gcc supports -fno-rtti -fno-exceptions... no
>> checking for gcc option to produce PIC... -fno-common
>> checking if gcc PIC flag -fno-common works... yes
>> checking if gcc static flag -static works... no
>> checking if gcc supports -c -o file.o... yes
>> checking whether the gcc linker (/usr/libexec/gcc/i686-apple- 
>> darwin9/4.0.1/ld) supports shared libraries... yes
>> checking dynamic linker characteristics... darwin9.0.0 dyld
>> checking how to hardcode library paths into programs... immediate
>> checking whether stripping libraries is possible... yes
>> 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/libexec/gcc/i686-apple- 
>> darwin9/4.0.1/ld
>> checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ 
>> ld) is GNU ld... no
>> checking whether the g++ linker (/usr/libexec/gcc/i686-apple- 
>> darwin9/4.0.1/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++ static flag -static works... no
>> checking if g++ supports -c -o file.o... yes
>> checking whether the g++ linker (/usr/libexec/gcc/i686-apple- 
>> darwin9/4.0.1/ld) supports shared libraries... yes
>> checking dynamic linker characteristics... darwin9.0.0 dyld
>> checking how to hardcode library paths into programs... immediate
>> appending configuration tag "F77" to libtool
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking for gawk... (cached) no
>> checking for mawk... (cached) no
>> checking for nawk... (cached) no
>> checking for awk... (cached) no
>> Version set to 3.5
>> Release set to 3.5.1
>> Version number set to 3005001
>> checking whether to support threadsafe operation... yes
>> checking for pthread_create in -lpthread... yes
>> checking whether to allow connections to be shared across  
>> threads... no
>> checking whether threads can override each others locks... no
>> checking whether to support shared library linked as release mode  
>> or not... no
>> checking whether to use an in-ram database for temporary tables... no
>> checking if executables have the .exe suffix... unknown
>> checking host system type... (cached) i386-apple-darwin9.0.0
>> checking for library containing fdatasync... no
>> checking for usleep... yes
>> checking for fdatasync... no
>> configure: creating ./config.status
>> config.status: creating Makefile
>> config.status: creating sqlite3.pc
>> --->  Building sqlite3 with target all
>> sed -e s/--VERS--/3.5.1/ ./src/sqlite.h.in | \
>> 	sed -e s/--VERSION-NUMBER--/3005001/ >sqlite3.h
>> gcc -O2 -o lemon ./tool/lemon.c
>> cp ./tool/lempar.c .
>> cp ./src/parse.y .
>> ./lemon  parse.y
>> mv parse.h parse.h.temp
>> f ./addopcodes.awk parse.h.temp >parse.h
>> /bin/sh: f: command not found
>> gnumake: [parse.c] Error 127 (ignored)
>> cat parse.h ./src/vdbe.c |  -f ./mkopcodeh.awk >opcodes.h
>> /bin/sh: -f: command not found
>> cat: stdout: Broken pipe
>> gnumake: *** [opcodes.h] Error 127
>> Error: Target org.macports.build returned: shell command " cd "/ 
>> opt/local/var/macports/build/ 
>> _opt_local_var_macports_sources_rsync.macports.org_release_ports_data 
>> bases_sqlite3/work/sqlite-3.5.1" && gnumake all " returned error 2
>> Command output: sed -e s/--VERS--/3.5.1/ ./src/sqlite.h.in | \
>> 	sed -e s/--VERSION-NUMBER--/3005001/ >sqlite3.h
>> gcc -O2 -o lemon ./tool/lemon.c
>> cp ./tool/lempar.c .
>> cp ./src/parse.y .
>> ./lemon  parse.y
>> mv parse.h parse.h.temp
>> f ./addopcodes.awk parse.h.temp >parse.h
>> /bin/sh: f: command not found
>> gnumake: [parse.c] Error 127 (ignored)
>> cat parse.h ./src/vdbe.c |  -f ./mkopcodeh.awk >opcodes.h
>> /bin/sh: -f: command not found
>> cat: stdout: Broken pipe
>> gnumake: *** [opcodes.h] Error 127
>>
>> Warning: the following items did not execute (for sqlite3):  
>> org.macports.activate org.macports.build org.macports.destroot  
>> org.macports.install
>> Error: The following dependencies failed to build: apache2 apr- 
>> util sqlite3 libmcrypt libxml2 libxslt mhash
>> Error: Status 1 encountered during processing.
>>
>> As I said, I'm using Mac OS X Leopard on MacBook Pro.
>> Can anyone help me out here?
>>
>> Thank you,
>>
>> --
>> Takashi Yoshida
>> tyoshida [at] mac [dot] com
>>
>>
>>
>> _______________________________________________
>> macports-users mailing list
>> macports-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo/macports-users
>
> --
> Takashi Yoshida
> tyoshida [at] mac [dot] com
>
>
>

---
Markus W. Weissmann
http://www.mweissmann.de/




More information about the macports-users mailing list