Bug 187902 - Error compile databases/libdbi-drivers #346970
Summary: Error compile databases/libdbi-drivers #346970
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-24 16:20 UTC by Mitch
Modified: 2014-07-20 16:37 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mitch 2014-03-24 16:20:00 UTC
Error when I want compil libdbi-drivers:
===>  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.
*** Error code 1

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

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

Fix: 

In the Makefile:
#17                 --with-dbi-incdir=${LOCALBASE}/include/dbi

To fix:
#17                --with-dbi-incdir=${LOCALBASE}/include/
How-To-Repeat: root@WebBSD:/usr/ports/databases/libdbi-drivers# make install
Comment 1 Marco Steinbach 2014-06-07 19:48:45 UTC
Same behaviour here on ports r356936, regardless if I set MAKE_JOBS_UNSAFE=yes or not.

FreeBSD x2.c0c0.intra 9.3-PRERELEASE FreeBSD 9.3-PRERELEASE #0 r266605: Sat May 24 13:51:18 CEST 2014     root@x2.c0c0.intra:/usr/obj/usr/src/sys/GENERIC  i386

It's a lab setting, so I can try out patches / advise at will.
Comment 2 Marco Steinbach 2014-06-07 19:55:03 UTC
I didn't notice the proposed fix the original reporter stated after the build log.

With the fix of changing the include-dir in the Makefile applied, the port builds and installs without errors.

Thanks to the original reporter for this.
Comment 3 John Marino freebsd_committer freebsd_triage 2014-07-20 16:37:49 UTC
it's building fine now:
http://portsmon.freebsd.org/portoverview.py?category=databases&portname=libdbi-drivers&wildcard=

closing PR