Skip to content

Instantly share code, notes, and snippets.

@theory
Created November 20, 2013 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theory/7567043 to your computer and use it in GitHub Desktop.
Save theory/7567043 to your computer and use it in GitHub Desktop.
$ /Library/Frameworks/Firebird.framework/Versions/A/Resources/bin/isql localhost:employee -User SYSDBA -password masterkey
Database: localhost:employee, User: SYSDBA
SQL> show version;
ISQL Version: UI-V2.5.2.26540 Firebird 2.5
Server version:
Firebird/Darwin/Intel64 (access method), version "UI-V2.5.2.26540 Firebird 2.5"
Firebird/Darwin/Intel64 (remote server), version "UI-V2.5.2.26540 Firebird 2.5/tcp (dwhee-ma-2944)/P12"
Firebird/Darwin/Intel64 (remote interface), version "UI-V2.5.2.26540 Firebird 2.5/tcp (dwhee-ma-2944)/P12"
on disk structure version 11.2
SQL> exit
CON> ;
$ perl -v
This is perl 5, version 18, subversion 1 (v5.18.1) built for darwin-thread-multi-2level
Copyright 1987-2013, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
$ cd ~/.cpan/build/DBD-Firebird-1.15-aKSrjl
$ perl Makefile.PL
Configuring DBD::Firebird (on darwin)
FIREBIRD_HOME : /Library/Frameworks/Firebird.framework/Resources
FIREBIRD_INCLUDE: /Library/Frameworks/Firebird.framework/Headers
FIREBIRD_LIB : /Library/Frameworks/Firebird.framework/Libraries
Client library : fbclient
Using DBI 1.63 (for perl 5.018001 on darwin-thread-multi-2level) installed in /usr/local/lib/perl5/site_perl/5.18.1/darwin-thread-multi-2level/auto/DBI/
libfbembed not found, building of DBD::FirebirdEmbed skipped.
Writing Makefile for DBD::Firebird
Writing MYMETA.yml and MYMETA.json
Please, set at least DBI_PASS (or ISC_PASSWORD), before 'make test'.
The default for DBI_USER is 'SYSDBA'.
$ make
Skip blib/lib/DBD/Firebird.pm (unchanged)
Skip blib/lib/DBD/Firebird/TableInfo/Firebird21.pm (unchanged)
Skip blib/lib/DBD/Firebird/TableInfo.pm (unchanged)
Skip blib/lib/DBD/Firebird/GetInfo.pm (unchanged)
Skip blib/lib/DBD/Firebird/TableInfo/Basic.pm (unchanged)
Skip blib/lib/DBD/Firebird/TypeInfo.pm (unchanged)
cc -c -I"/Library/Frameworks/Firebird.framework/Headers" -I"/usr/local/lib/perl5/site_perl/5.18.1/darwin-thread-multi-2level/auto/DBI" -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3 -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" "-I/usr/local/lib/perl5/5.18.1/darwin-thread-multi-2level/CORE" Firebird.c
Firebird.xs:1524:59: warning: format specifies type 'int' but the argument has type 'size_t'
(aka 'unsigned long') [-Wformat]
DPB_FILL_STRING_LEN(dpb, isc_dpb_user_name, user, user_len);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
./dbdimp.h:134:43: note: expanded from macro 'DPB_FILL_STRING_LEN'
croak("DPB string too long (%d)", len); \
^
Firebird.xs:1528:57: warning: format specifies type 'int' but the argument has type 'size_t'
(aka 'unsigned long') [-Wformat]
DPB_FILL_STRING_LEN(dpb, isc_dpb_password, pwd, pwd_len);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
./dbdimp.h:134:43: note: expanded from macro 'DPB_FILL_STRING_LEN'
croak("DPB string too long (%d)", len); \
^
2 warnings generated.
cc -c -I"/Library/Frameworks/Firebird.framework/Headers" -I"/usr/local/lib/perl5/site_perl/5.18.1/darwin-thread-multi-2level/auto/DBI" -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3 -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" "-I/usr/local/lib/perl5/5.18.1/darwin-thread-multi-2level/CORE" dbdimp.c
dbdimp.c:427:5: warning: format specifies type 'int' but the argument has type 'unsigned long'
[-Wformat]
DPB_FILL_STRING(dpb, isc_dpb_user_name, uid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./dbdimp.h:129:44: note: expanded from macro 'DPB_FILL_STRING'
DPB_FILL_STRING_LEN(dpb, code, string, strlen(string) )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
./dbdimp.h:134:43: note: expanded from macro 'DPB_FILL_STRING_LEN'
croak("DPB string too long (%d)", len); \
^
dbdimp.c:429:5: warning: format specifies type 'int' but the argument has type 'unsigned long'
[-Wformat]
DPB_FILL_STRING(dpb, isc_dpb_password, pwd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./dbdimp.h:129:44: note: expanded from macro 'DPB_FILL_STRING'
DPB_FILL_STRING_LEN(dpb, code, string, strlen(string) )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
./dbdimp.h:134:43: note: expanded from macro 'DPB_FILL_STRING_LEN'
croak("DPB string too long (%d)", len); \
^
dbdimp.c:450:9: warning: format specifies type 'int' but the argument has type 'unsigned long'
[-Wformat]
DPB_FILL_STRING(dpb, isc_dpb_lc_ctype, imp_dbh->ib_charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./dbdimp.h:129:44: note: expanded from macro 'DPB_FILL_STRING'
DPB_FILL_STRING_LEN(dpb, code, string, strlen(string) )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
./dbdimp.h:134:43: note: expanded from macro 'DPB_FILL_STRING_LEN'
croak("DPB string too long (%d)", len); \
^
dbdimp.c:455:9: warning: format specifies type 'int' but the argument has type 'unsigned long'
[-Wformat]
DPB_FILL_STRING(dpb, isc_dpb_sql_role_name, ib_role);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./dbdimp.h:129:44: note: expanded from macro 'DPB_FILL_STRING'
DPB_FILL_STRING_LEN(dpb, code, string, strlen(string) )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
./dbdimp.h:134:43: note: expanded from macro 'DPB_FILL_STRING_LEN'
croak("DPB string too long (%d)", len); \
^
dbdimp.c:1637:80: warning: comparison of constant -1 with expression of type 'unsigned short'
is always false [-Wtautological-constant-out-of-range-compare]
if (max_segment == -1L || total_length == -1L || blob_type == -1)
~~~~~~~~~ ^ ~~
dbdimp.c:1773:12: warning: implicit declaration of function 'dbd_st_finish_internal' is
invalid in C99 [-Wimplicit-function-declaration]
return dbd_st_finish_internal(sth, imp_sth, TRUE);
^
6 warnings generated.
Running Mkbootstrap for DBD::Firebird ()
chmod 644 Firebird.bs
rm -f blib/arch/auto/DBD/Firebird/Firebird.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector -framework Firebird Firebird.o dbdimp.o -o blib/arch/auto/DBD/Firebird/Firebird.bundle \
\
ld: framework not found Firebird
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [blib/arch/auto/DBD/Firebird/Firebird.bundle] Error 1
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment