You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Zoltan Klinger <zo...@gmail.com> on 2008/10/20 05:28:32 UTC

Build couchdb from trunk fails

Hi there,
I'm trying to build couchdb from the trunk but make fails with error:

Making all in src/couchdb
make[2]: Entering directory
`/home/edmiston/zoltan/couchdb_trunk/couchdb02/src/couchdb'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../..   -L/usr/local/lib -L/opt/local/lib
 -I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
-I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/include
-I/usr/include -I/usr/include/js -I/usr/include/mozjs -I/usr/local/include
-I/opt/local/include -I/usr/local/include/js -I/opt/local/include/js
-DXP_UNIX   -I/usr/include -L/usr/lib -g -O2 -MT
couch_erl_driver_la-couch_erl_driver.lo -MD -MP -MF
.deps/couch_erl_driver_la-couch_erl_driver.Tpo -c -o
couch_erl_driver_la-couch_erl_driver.lo `test -f 'couch_erl_driver.c' ||
echo './'`couch_erl_driver.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../.. -L/usr/local/lib -L/opt/local/lib
-I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
-I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/include
-I/usr/include -I/usr/include/js -I/usr/include/mozjs -I/usr/local/include
-I/opt/local/include -I/usr/local/include/js -I/opt/local/include/js
-DXP_UNIX -I/usr/include -L/usr/lib -g -O2 -MT
couch_erl_driver_la-couch_erl_driver.lo -MD -MP -MF
.deps/couch_erl_driver_la-couch_erl_driver.Tpo -c couch_erl_driver.c  -fPIC
-DPIC -o .libs/couch_erl_driver_la-couch_erl_driver.o
couch_erl_driver.c:156: warning: initialization from incompatible pointer
type
couch_erl_driver.c:163: error: 'ERL_DRV_EXTENDED_MARKER' undeclared here
(not in a function)
couch_erl_driver.c:163: warning: excess elements in struct initializer
couch_erl_driver.c:163: warning: (near initialization for
'couch_driver_entry')
couch_erl_driver.c:164: error: 'ERL_DRV_EXTENDED_MAJOR_VERSION' undeclared
here (not in a function)
couch_erl_driver.c:164: warning: excess elements in struct initializer
couch_erl_driver.c:164: warning: (near initialization for
'couch_driver_entry')
couch_erl_driver.c:165: error: 'ERL_DRV_EXTENDED_MINOR_VERSION' undeclared
here (not in a function)
couch_erl_driver.c:165: warning: excess elements in struct initializer
couch_erl_driver.c:165: warning: (near initialization for
'couch_driver_entry')
couch_erl_driver.c:166: error: 'ERL_DRV_FLAG_USE_PORT_LOCKING' undeclared
here (not in a function)
couch_erl_driver.c:166: warning: excess elements in struct initializer
couch_erl_driver.c:166: warning: (near initialization for
'couch_driver_entry')
couch_erl_driver.c:167: warning: excess elements in struct initializer
couch_erl_driver.c:167: warning: (near initialization for
'couch_driver_entry')
couch_erl_driver.c:168: warning: excess elements in struct initializer
couch_erl_driver.c:168: warning: (near initialization for
'couch_driver_entry')
make[2]: *** [couch_erl_driver_la-couch_erl_driver.lo] Error 1
make[2]: Leaving directory
`/home/edmiston/zoltan/couchdb_trunk/couchdb02/src/couchdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/edmiston/zoltan/couchdb_trunk/couchdb02'
make: *** [all] Error 2

Just a summary of what I've done:
svn co http://svn.apache.org/repos/asf/incubator/couchdb/trunk couchdb02
cd couchdb02
./bootstrap
./configure
make

Both ./bootstrap and ./configure runs successfully and  I am also able to
build couchdb from apache-couchdb-0.8.1-incubating.tar.gz.

Thanks for your help.
Cheers,
Zoltan

Re: Build couchdb from trunk fails

Posted by Jan Lehnardt <ja...@apache.org>.
Hi,

Try upgrading your Erlang installation to 5.6.5. This appears to
be an error with Erlang versions that ship with some Debian release.

Cheers
Jan
--
On 20 Oct 2008, at 05:28, Zoltan Klinger wrote:

> Hi there,
> I'm trying to build couchdb from the trunk but make fails with error:
>
> Making all in src/couchdb
> make[2]: Entering directory
> `/home/edmiston/zoltan/couchdb_trunk/couchdb02/src/couchdb'
> /bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H - 
> I.
> -I../..   -L/usr/local/lib -L/opt/local/lib
> -I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
> -I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/ 
> include
> -I/usr/include -I/usr/include/js -I/usr/include/mozjs -I/usr/local/ 
> include
> -I/opt/local/include -I/usr/local/include/js -I/opt/local/include/js
> -DXP_UNIX   -I/usr/include -L/usr/lib -g -O2 -MT
> couch_erl_driver_la-couch_erl_driver.lo -MD -MP -MF
> .deps/couch_erl_driver_la-couch_erl_driver.Tpo -c -o
> couch_erl_driver_la-couch_erl_driver.lo `test -f  
> 'couch_erl_driver.c' ||
> echo './'`couch_erl_driver.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I../.. -L/usr/local/lib -L/opt/local/lib
> -I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
> -I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/ 
> include
> -I/usr/include -I/usr/include/js -I/usr/include/mozjs -I/usr/local/ 
> include
> -I/opt/local/include -I/usr/local/include/js -I/opt/local/include/js
> -DXP_UNIX -I/usr/include -L/usr/lib -g -O2 -MT
> couch_erl_driver_la-couch_erl_driver.lo -MD -MP -MF
> .deps/couch_erl_driver_la-couch_erl_driver.Tpo -c  
> couch_erl_driver.c  -fPIC
> -DPIC -o .libs/couch_erl_driver_la-couch_erl_driver.o
> couch_erl_driver.c:156: warning: initialization from incompatible  
> pointer
> type
> couch_erl_driver.c:163: error: 'ERL_DRV_EXTENDED_MARKER' undeclared  
> here
> (not in a function)
> couch_erl_driver.c:163: warning: excess elements in struct initializer
> couch_erl_driver.c:163: warning: (near initialization for
> 'couch_driver_entry')
> couch_erl_driver.c:164: error: 'ERL_DRV_EXTENDED_MAJOR_VERSION'  
> undeclared
> here (not in a function)
> couch_erl_driver.c:164: warning: excess elements in struct initializer
> couch_erl_driver.c:164: warning: (near initialization for
> 'couch_driver_entry')
> couch_erl_driver.c:165: error: 'ERL_DRV_EXTENDED_MINOR_VERSION'  
> undeclared
> here (not in a function)
> couch_erl_driver.c:165: warning: excess elements in struct initializer
> couch_erl_driver.c:165: warning: (near initialization for
> 'couch_driver_entry')
> couch_erl_driver.c:166: error: 'ERL_DRV_FLAG_USE_PORT_LOCKING'  
> undeclared
> here (not in a function)
> couch_erl_driver.c:166: warning: excess elements in struct initializer
> couch_erl_driver.c:166: warning: (near initialization for
> 'couch_driver_entry')
> couch_erl_driver.c:167: warning: excess elements in struct initializer
> couch_erl_driver.c:167: warning: (near initialization for
> 'couch_driver_entry')
> couch_erl_driver.c:168: warning: excess elements in struct initializer
> couch_erl_driver.c:168: warning: (near initialization for
> 'couch_driver_entry')
> make[2]: *** [couch_erl_driver_la-couch_erl_driver.lo] Error 1
> make[2]: Leaving directory
> `/home/edmiston/zoltan/couchdb_trunk/couchdb02/src/couchdb'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/edmiston/zoltan/couchdb_trunk/ 
> couchdb02'
> make: *** [all] Error 2
>
> Just a summary of what I've done:
> svn co http://svn.apache.org/repos/asf/incubator/couchdb/trunk  
> couchdb02
> cd couchdb02
> ./bootstrap
> ./configure
> make
>
> Both ./bootstrap and ./configure runs successfully and  I am also  
> able to
> build couchdb from apache-couchdb-0.8.1-incubating.tar.gz.
>
> Thanks for your help.
> Cheers,
> Zoltan