libgda2 and firebird

Peter Czanik pczanik at fang.fa.gau.hu
Sun Nov 7 17:45:14 GMT 2004


Hello,
I did cvsup and tried to compile a new system from the ground up. I 
compiled gnome2-office, which has gnumeric, and this has the dependency 
of port databases/libgda2. Part of this port seems to be broken. When 
firebird is installed, it tries to support it automagically, but it does 
not compile:

"
...
 cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libgda\" 
-DVERSION=\"1.0.4\"
 -DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-2\" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRING_H=1 -DHAVE_MEMOR
Y_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 
-DGETTEXT_PACKAGE=\"libgda-2\" -DHAVE_LO
CALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 
-DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DHAVE_MYSQL=1 
-DHAVE_POSTGRES=1 -DHAVE_FIR
EBIRD=1 -DHAVE_LDAP=1 -DHAVE_POPT_H=1 -DHAVE_READLINE_READLINE_H=1 
-DHAVE_READLINE_HISTORY_H=1 -I. -I. -I../.. -I../.. -D_REENTRANT 
-I/usr/local/include/glib
-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/local/firebird/include -I/usr/local/include 
-O -pipe -Wall -W
missing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare 
-MT gda-firebird-provider.lo -MD -MP -MF .deps/gda-firebird-provider.Tpo 
-c gda-firebir
d-provider.c  -fPIC -DPIC -o .libs/gda-firebird-provider.o
gda-firebird-provider.c: In function 
`gda_firebird_provider_open_connection':
gda-firebird-provider.c:185: warning: assignment discards qualifiers 
from pointer target type
gda-firebird-provider.c:192: warning: assignment discards qualifiers 
from pointer target type
gda-firebird-provider.c:194: warning: assignment discards qualifiers 
from pointer target type
gda-firebird-provider.c:197: warning: assignment discards qualifiers 
from pointer target type
gda-firebird-provider.c:199: warning: assignment discards qualifiers 
from pointer target type
gda-firebird-provider.c:209: warning: implicit declaration of function 
`strlen'
gda-firebird-provider.c:209: warning: nested extern declaration of `strlen'
gda-firebird-provider.c: In function `run_sql':
gda-firebird-provider.c:345: warning: implicit declaration of function 
`gda_firebird_recordset_new'
gda-firebird-provider.c:345: warning: nested extern declaration of 
`gda_firebird_recordset_new'
gda-firebird-provider.c:345: warning: assignment makes pointer from 
integer without a cast
gda-firebird-provider.c: In function 
`gda_firebird_provider_execute_command':
gda-firebird-provider.c:372: warning: implicit declaration of function 
`gda_firebird_command_get_transaction'
gda-firebird-provider.c:372: warning: nested extern declaration of 
`gda_firebird_command_get_transaction'
gda-firebird-provider.c:372: warning: assignment makes pointer from 
integer without a cast
gda-firebird-provider.c:387: warning: enumeration value 
`GDA_COMMAND_TYPE_XML' not handled in switch
gda-firebird-provider.c:387: warning: enumeration value 
`GDA_COMMAND_TYPE_PROCEDURE' not handled in switch
gda-firebird-provider.c:387: warning: enumeration value 
`GDA_COMMAND_TYPE_TABLE' not handled in switch
gda-firebird-provider.c:387: warning: enumeration value 
`GDA_COMMAND_TYPE_SCHEMA' not handled in switch
gda-firebird-provider.c:387: warning: enumeration value 
`GDA_COMMAND_TYPE_INVALID' not handled in switch
gda-firebird-provider.c: At top level:
gda-firebird-provider.c:552: warning: no previous prototype for 
'gda_firebird_command_get_transaction'
gda-firebird-provider.c:552: error: conflicting types for 
'gda_firebird_command_get_transaction'
gda-firebird-provider.c:372: error: previous implicit declaration of 
'gda_firebird_command_get_transaction' was here
gmake[2]: *** [gda-firebird-provider.lo] Error 1
gmake[2]: Leaving directory 
`/usr/tmp/usr/ports/databases/libgda2/work/libgda-1.0.4/providers/firebird'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/tmp/usr/ports/databases/libgda2/work/libgda-1.0.4/providers'
gmake: *** [all-recursive] Error 1
*** Error code 2
"

The other half of the problem is, that the WITHOUT_FIREBIRD Makefile 
option does not work. The reason is pretty simple:

.if !defined(WITHOUT_FIREBIRD) && defined(WITH_FIREBIRD)
LIB_DEPENDS+=           gds.1:${PORTSDIR}/databases/firebird
CONFIGURE_ARGS+=        --with-firebird=${LOCALBASE}/firebird
PLIST_SUB+=             FIREBIRD:=""
.else
CONFIGURE_ARGS+=        --without-interbase
PLIST_SUB+=             FIREBIRD:="@comment "
.endif

It should read --without-firebird instead of --without-interbase in the 
else portion of firebird related options. Bye,
Peter



More information about the freebsd-ports mailing list