Thread Windows strawberry Perl cpan DBD::DB2 (13 answers)
Opened by Kirsche at 2012-04-19 10:52

Kirsche
 2012-04-25 22:04
#157853 #157853
User since
2011-08-05
10 Artikel
BenutzerIn
[default_avatar]
Hallo GwenDragon, vielen Dank für den Hinweis. Ich habe herausgefunden, dass zwar die Variable DB2_HOME gesetzt, im DB2-Client aber das Application-Development-Tool nicht installiert war. Bei einem neuen Versuch erhalte ich neue Fehler:
dbdimp.o:dbdimp.c:(.text+0x5657): undefined reference to `SQLBindFileToParam@32'

dbdimp.o:dbdimp.c:(.text+0x6892): undefined reference to `SQLGetLength@20'
dbdimp.o:dbdimp.c:(.text+0x6a2a): undefined reference to `SQLGetSubString@40'

Ich habe wohl Tomaten auf den Augen, aber auch hierzu finde ich keine mir verständliche Erklärung...

Kompletter output:

more (12.4kb):
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
---------------------------------------------- 
Welcome to Strawberry Perl Portable Edition!
* URL - http://www.strawberryperl.com/
* see README.portable.TXT for more info
----------------------------------------------
Perl executable: C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe
Perl version : 5.10.1

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Daten\StrawberryPerl510Portable>db2level
DB21085I Instanz "DB2" verwendet "32" Bit und DB2-Codefreigabe "SQL09074" mit
Aktualitõts-ID "08050107".
Informationstoken: "DB2 v9.7.400.501", "s110330", "IP23237" und FixPak "4".
Produkt ist in "C:\Programme\IBM\SQLLIB" mit DB2-Kopienamen "DB2CONPEV974"
installiert.



C:\Daten\StrawberryPerl510Portable>set DB2_HOME=C:\Programme\IBM\SQLLIB

C:\Daten\StrawberryPerl510Portable>set SHELL=

C:\Daten\StrawberryPerl510Portable>cpan DBD::DB2
CPAN: LWP::UserAgent loaded ok (v5.834)
CPAN: Time::HiRes loaded ok (v1.9721)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/01mailrc.txt.gz

Proxy authentication needed!
(Note: to permanently configure username and password run
o conf proxy_user your_username
o conf proxy_pass your_password
)
Username: ddl1sr
CPAN: Term::ReadKey loaded ok (v2.30.01)
Password:

CPAN: YAML loaded ok (v0.71)
CPAN: CPAN::SQLite loaded ok (v0.199)
Fetching with LWP:
http://cpan.strawberryperl.com/modules/02packages.details.txt.gz
Fetching with LWP:
http://cpan.strawberryperl.com/modules/03modlist.data.gz
Database was generated on Wed, 18 Apr 2012 15:00:14 GMT
Updating database file ...

Gathering information from index files ...
Obtaining current state of database ...
Populating database tables ...
Done!
Running install for module 'DBD::DB2'
Running make for I/IB/IBMTORDB2/DBD-DB2-1.84.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Compress::Zlib loaded ok (v2.027)
Checksum for C:\Daten\StrawberryPerl510Portable\cpan\sources\authors\id\I\IB\IBM
TORDB2\DBD-DB2-1.84.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.60)
CPAN: File::Temp loaded ok (v0.22)

CPAN.pm: Going to build I/IB/IBMTORDB2/DBD-DB2-1.84.tar.gz



Configuring DBD::DB2...
Remember to actually read the README and CAVEATS files!

Using DB2 in "C:/Programme/IBM/SQLLIB"
System: perl5.010001 DBI1.616 Win32 strawberryperl 5.10.1.2 #1 Wed Apr 28 11:51:
06 2010 i386 MSWin32-x86-multi-thread dl_win32.xs
Compiler: gcc -s -O2 -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPE
RL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READF
IX
Includes: -I"C:/Programme/IBM/SQLLIB/include" -I"C:\Daten\StrawberryPerl510Port
able\perl\site\lib/auto/DBI" -I"C:\Daten\StrawberryPerl510Portable\perl\lib/auto
/DBI" -I"C:\Daten\StrawberryPerl510Portable\perl\vendor\lib/auto/DBI" -I"C:\Date
n\StrawberryPerl510Portable\perl\site\lib/auto/DBI"
Libraries: -L"C:/Programme/IBM/SQLLIB/lib" db2cli.lib db2api.lib -L"C:/PROGRA~1/
IBM/SQLLIB/LIB"

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for db2cli.lib
Note (probably harmless): No library found for db2api.lib
Checking if your kit is complete...
Looks good
Writing Makefile for DBD::DB2::Constants
Writing Makefile for DBD::DB2
cp DB2.pm blib\lib\DBD\DB2.pm
cp lib/Bundle/DBD/DB2.pm blib\lib\Bundle\DBD\DB2.pm
cp DB2.pod blib\lib\DBD\DB2.pod
cp Constants.pm ..\blib\lib\DBD\DB2\Constants.pm
AutoSplitting ..\blib\lib\DBD\DB2\Constants.pm (..\blib\lib\auto\DBD\DB2\Constan
ts)
C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe C:\Daten\StrawberryPerl510P
ortable\perl\lib\ExtUtils\xsubpp -typemap C:\Daten\StrawberryPerl510Portable\pe
rl\lib\ExtUtils\typemap Constants.xs > Constants.xsc && C:\Daten\StrawberryPerl
510Portable\perl\bin\perl.exe -MExtUtils::Command -e "mv" -- Constants.xsc Const
ants.c
gcc -c -I"C:/Programme/IBM/SQLLIB/include" -s -O2 -DWIN32 -DHAVE_DES_FCRYPT
-DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-ali
asing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"1.84\" -DXS_VERSION=\"1
.84\" "-IC:\Daten\StrawberryPerl510Portable\perl\lib\CORE" Constants.c
Running Mkbootstrap for DBD::DB2::Constants ()
C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe -MExtUtils::Command -e "chm
od" -- 644 Constants.bs
C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"DBD::DB2::Constants\", 'DLBASE' => 'Constants', 'D
L_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
dlltool --def Constants.def --output-exp dll.exp
g++.exe -o ..\blib\arch\auto\DBD\DB2\Constants\Constants.dll -Wl,--base-file -Wl
,dll.base -mdll -s -L"C:\Daten\StrawberryPerl510Portable\perl\lib\CORE" -L"C:\Da
ten\StrawberryPerl510Portable\c\lib" Constants.o -Wl,--image-base,0x370e0000 C:
\Daten\StrawberryPerl510Portable\perl\lib\CORE\libperl510.a -lmoldname -lkernel3
2 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32
-lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 dll.exp
dlltool --def Constants.def --base-file dll.base --output-exp dll.exp
g++.exe -o ..\blib\arch\auto\DBD\DB2\Constants\Constants.dll -mdll -s -L"C:\Date
n\StrawberryPerl510Portable\perl\lib\CORE" -L"C:\Daten\StrawberryPerl510Portable
\c\lib" Constants.o -Wl,--image-base,0x370e0000 C:\Daten\StrawberryPerl510Porta
ble\perl\lib\CORE\libperl510.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -
lmpr -lwinmm -lversion -lodbc32 -lodbccp32 dll.exp
C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe -MExtUtils::Command -e "chm
od" -- 755 ..\blib\arch\auto\DBD\DB2\Constants\Constants.dll
C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe -MExtUtils::Command -e "cp"
-- Constants.bs ..\blib\arch\auto\DBD\DB2\Constants\Constants.bs
C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe -MExtUtils::Command -e "chm
od" -- 644 ..\blib\arch\auto\DBD\DB2\Constants\Constants.bs
C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe C:\Daten\StrawberryPerl510P
ortable\perl\lib\ExtUtils\xsubpp -typemap C:\Daten\StrawberryPerl510Portable\pe
rl\lib\ExtUtils\typemap DB2.xs > DB2.xsc && C:\Daten\StrawberryPerl510Portable\
perl\bin\perl.exe -MExtUtils::Command -e "mv" -- DB2.xsc DB2.c
gcc -c -I"C:/Programme/IBM/SQLLIB/include" -I"C:\Daten\StrawberryPerl510Portabl
e\perl\site\lib/auto/DBI" -I"C:\Daten\StrawberryPerl510Portable\perl\lib/auto/DB
I" -I"C:\Daten\StrawberryPerl510Portable\perl\vendor\lib/auto/DBI" -I"C:\Daten\S
trawberryPerl510Portable\perl\site\lib/auto/DBI" -s -O2 -DWIN32 -DHAVE_DE
S_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-st
rict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"1.84\" -DXS_VER
SION=\"1.84\" "-IC:\Daten\StrawberryPerl510Portable\perl\lib\CORE" -DDB2_CACHE
_FIX DB2.c
gcc -c -I"C:/Programme/IBM/SQLLIB/include" -I"C:\Daten\StrawberryPerl510Portabl
e\perl\site\lib/auto/DBI" -I"C:\Daten\StrawberryPerl510Portable\perl\lib/auto/DB
I" -I"C:\Daten\StrawberryPerl510Portable\perl\vendor\lib/auto/DBI" -I"C:\Daten\S
trawberryPerl510Portable\perl\site\lib/auto/DBI" -s -O2 -DWIN32 -DHAVE_DE
S_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-st
rict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"1.84\" -DXS_VER
SION=\"1.84\" "-IC:\Daten\StrawberryPerl510Portable\perl\lib\CORE" -DDB2_CACHE
_FIX dbdimp.c
Running Mkbootstrap for DBD::DB2 ()
C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe -MExtUtils::Command -e "chm
od" -- 644 DB2.bs
C:\Daten\StrawberryPerl510Portable\perl\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"DBD::DB2\", 'DLBASE' => 'DB2', 'DL_FUNCS' => { },
'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
dlltool --def DB2.def --output-exp dll.exp
g++.exe -o blib\arch\auto\DBD\DB2\DB2.dll -Wl,--base-file -Wl,dll.base -mdll -s
-L"C:\Daten\StrawberryPerl510Portable\perl\lib\CORE" -L"C:\Daten\StrawberryPerl5
10Portable\c\lib" DB2.o dbdimp.o -Wl,--image-base,0x202e0000 C:\Daten\
StrawberryPerl510Portable\perl\lib\CORE\libperl510.a C:\Daten\StrawberryPerl510P
ortable\c\lib\libmoldname.a C:\Daten\StrawberryPerl510Portable\c\lib\libkernel32
.a C:\Daten\StrawberryPerl510Portable\c\lib\libuser32.a C:\Daten\StrawberryPerl5
10Portable\c\lib\libgdi32.a C:\Daten\StrawberryPerl510Portable\c\lib\libwinspool
.a C:\Daten\StrawberryPerl510Portable\c\lib\libcomdlg32.a C:\Daten\StrawberryPer
l510Portable\c\lib\libadvapi32.a C:\Daten\StrawberryPerl510Portable\c\lib\libshe
ll32.a C:\Daten\StrawberryPerl510Portable\c\lib\libole32.a C:\Daten\StrawberryPe
rl510Portable\c\lib\liboleaut32.a C:\Daten\StrawberryPerl510Portable\c\lib\libne
tapi32.a C:\Daten\StrawberryPerl510Portable\c\lib\libuuid.a C:\Daten\StrawberryP
erl510Portable\c\lib\libws2_32.a C:\Daten\StrawberryPerl510Portable\c\lib\libmpr
.a C:\Daten\StrawberryPerl510Portable\c\lib\libwinmm.a C:\Daten\StrawberryPerl51
0Portable\c\lib\libversion.a C:\Daten\StrawberryPerl510Portable\c\lib\libodbc32.
a C:\Daten\StrawberryPerl510Portable\c\lib\libodbccp32.a dll.exp
dbdimp.o:dbdimp.c:(.text+0x5657): undefined reference to `SQLBindFileToParam@32'

dbdimp.o:dbdimp.c:(.text+0x6892): undefined reference to `SQLGetLength@20'
dbdimp.o:dbdimp.c:(.text+0x6a2a): undefined reference to `SQLGetSubString@40'
collect2: ld returned 1 exit status
dmake.exe: Error code 129, while making 'blib\arch\auto\DBD\DB2\DB2.dll'
IBMTORDB2/DBD-DB2-1.84.tar.gz
C:\Daten\StrawberryPerl510Portable\c\bin\dmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible


modedit Editiert von GwenDragon: Konsolen- oder Logausgaben in CODE-Tags
Last edited: 2012-04-26 09:51:16 +0200 (CEST)

View full thread Windows strawberry Perl cpan DBD::DB2