Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2014 10:46:36 +1000 (EST)
From:      Peter Ross <Peter.Ross@alumni.tu-berlin.de>
To:        ports@freebsd.org
Subject:   libdbi-drivers-0.9.0 compilation fails
Message-ID:  <alpine.DEB.2.02.1404101034100.11962@PetersBigBox>

next in thread | raw e-mail | index | archive | help
Hi all,

libdbi-drivers-0.9.0 fails to compile on FreeBSD-9-stable (Revision: 
258700, 28 Nov 2013)

See the full output below.

I see

libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include
-I/usr/local/include/dbi -I/usr/local/include/mysql -std=gnu99 -O2 -pipe
-fno-strict-aliasing -MT dbd_mysql.lo -MD -MP -MF .deps/dbd_mysql.Tpo -c
dbd_mysql.c  -fPIC -DPIC -o .libs/dbd_mysql.o
dbd_mysql.c:50:21: error: dbi/dbi.h: No such file or directory
dbd_mysql.c:51:25: error: dbi/dbi-dev.h: No such file or directory
dbd_mysql.c:52:21: error: dbi/dbd.h: No such file or directory

The files are there, created by libdbi-0.9.0_1

# pkg query %Fp libdbi-0.9.0_1 | grep include
/usr/local/include/dbi/dbd.h
/usr/local/include/dbi/dbi-dev.h
/usr/local/include/dbi/dbi.h

So it compiles if I change "-I/usr/local/include/dbi" by 
"-I/usr/local/include".

Regards
Peter

# make
===>  Building for libdbi-drivers-0.9.0
gmake  all-recursive
gmake[1]: Entering directory 
`/usr/ports/databases/libdbi-drivers/work/libdbi-drivers-0.9.0'
Making all in drivers
gmake[2]: Entering directory 
`/usr/ports/databases/libdbi-drivers/work/libdbi-drivers-0.9.0/drivers'
Making all in mysql
gmake[3]: Entering directory 
`/usr/ports/databases/libdbi-drivers/work/libdbi-drivers-0.9.0/drivers/mysql'
/bin/sh /usr/local/bin/libtool --tag=CC   --mode=compile cc 
-DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include 
-I/usr/local/include/dbi -I/usr/local/include/mysql    -std=gnu99 -O2 
-pipe -fno-strict-aliasing -MT dbd_mysql.lo -MD -MP -MF 
.deps/dbd_mysql.Tpo -c -o dbd_mysql.lo dbd_mysql.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include 
-I/usr/local/include/dbi -I/usr/local/include/mysql -std=gnu99 -O2 -pipe 
-fno-strict-aliasing -MT dbd_mysql.lo -MD -MP -MF .deps/dbd_mysql.Tpo -c 
dbd_mysql.c  -fPIC -DPIC -o .libs/dbd_mysql.o
dbd_mysql.c:50:21: error: dbi/dbi.h: No such file or directory
dbd_mysql.c:51:25: error: dbi/dbi-dev.h: No such file or directory
dbd_mysql.c:52:21: error: dbi/dbd.h: No such file or directory
dbd_mysql.c:57: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'driver_info'
dbd_mysql.c:112: error: expected ')' before '*' token
dbd_mysql.c:113: error: expected ')' before '*' token
dbd_mysql.c:117: warning: type defaults to 'int' in declaration of 
'dbi_info_t'
dbd_mysql.c:117: error: expected ';', ',' or ')' before '*' token
dbd_mysql.c:124: error: expected ')' before '*' token
dbd_mysql.c:145: error: expected ')' before '*' token
dbd_mysql.c:158: error: expected ')' before '*' token
dbd_mysql.c:248: error: expected ')' before '*' token
dbd_mysql.c:253: error: expected ')' before '*' token
dbd_mysql.c:268: error: expected ')' before '*' token
dbd_mysql.c:273: error: expected ')' before '*' token
dbd_mysql.c:284: error: expected ')' before '*' token
dbd_mysql.c:289: error: expected ')' before '*' token
dbd_mysql.c:437: error: expected ')' before '*' token
dbd_mysql.c:458: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
dbd_mysql.c:473: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
dbd_mysql.c:495: error: expected ')' before '*' token
dbd_mysql.c:506: error: expected ')' before '*' token
dbd_mysql.c:518: error: expected ')' before '*' token
dbd_mysql.c:537: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
dbd_mysql.c:575: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
dbd_mysql.c:597: error: expected ')' before '*' token
dbd_mysql.c:606: error: expected ')' before '*' token
dbd_mysql.c:615: error: expected ')' before '*' token
dbd_mysql.c:624: error: expected ')' before '*' token
dbd_mysql.c:643: error: expected ')' before '*' token
dbd_mysql.c:662: error: expected ')' before '*' token
dbd_mysql.c:681: error: expected ')' before '*' token
dbd_mysql.c:694: error: expected ')' before '*' token
dbd_mysql.c:707: error: expected ')' before '*' token
dbd_mysql.c:711: error: expected ')' before '*' token
dbd_mysql.c:715: error: expected ')' before '*' token
dbd_mysql.c: In function '_translate_mysql_type':
dbd_mysql.c:734: error: 'DBI_TYPE_INTEGER' undeclared (first use in this 
function)
dbd_mysql.c:734: error: (Each undeclared identifier is reported only once
dbd_mysql.c:734: error: for each function it appears in.)
dbd_mysql.c:735: error: 'DBI_INTEGER_SIZE1' undeclared (first use in this 
function)
dbd_mysql.c:738: error: 'DBI_INTEGER_UNSIGNED' undeclared (first use in 
this function)
dbd_mysql.c:741: error: 'DBI_INTEGER_SIZE2' undeclared (first use in this 
function)
dbd_mysql.c:745: error: 'DBI_INTEGER_SIZE3' undeclared (first use in this 
function)
dbd_mysql.c:749: error: 'DBI_INTEGER_SIZE4' undeclared (first use in this 
function)
dbd_mysql.c:757: error: 'DBI_INTEGER_SIZE8' undeclared (first use in this 
function)
dbd_mysql.c:761: error: 'DBI_TYPE_DECIMAL' undeclared (first use in this 
function)
dbd_mysql.c:762: error: 'DBI_DECIMAL_SIZE4' undeclared (first use in this 
function)
dbd_mysql.c:766: error: 'DBI_DECIMAL_SIZE8' undeclared (first use in this 
function)
dbd_mysql.c:770: error: 'DBI_TYPE_DATETIME' undeclared (first use in this 
function)
dbd_mysql.c:771: error: 'DBI_DATETIME_DATE' undeclared (first use in this 
function)
dbd_mysql.c:775: error: 'DBI_DATETIME_TIME' undeclared (first use in this 
function)
dbd_mysql.c:791: error: 'DBI_TYPE_BINARY' undeclared (first use in this 
function)
dbd_mysql.c:802: error: 'DBI_TYPE_STRING' undeclared (first use in this 
function)
dbd_mysql.c: At top level:
dbd_mysql.c:810: error: expected ')' before '*' token
dbd_mysql.c:827: error: expected ')' before '*' token
gmake[3]: *** [dbd_mysql.lo] Error 1
gmake[3]: Leaving directory 
`/usr/ports/databases/libdbi-drivers/work/libdbi-drivers-0.9.0/drivers/mysql'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/databases/libdbi-drivers/work/libdbi-drivers-0.9.0/drivers'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/databases/libdbi-drivers/work/libdbi-drivers-0.9.0'
gmake: *** [all] Error 2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure 
to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/databases/libdbi-drivers.
*** [build] Error code 1

Stop in /usr/ports/databases/libdbi-drivers.
#




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.DEB.2.02.1404101034100.11962>