List:General Discussion« Previous MessageNext Message »
From:Christopher R. Jones Date:June 25 1999 1:18pm
Subject:Re: How to build DBD-MySQL
View as plain text  
>Hi!
>
>What kind of errors?
>
>Please repost with mysqlbug script + a full example of your problem,
>including a full test that also shows any possible error messages.
>
>We need more information about your MySQL version and OS to be able to
>help you.
>
>You can find information how to do a correct bug report at:
>
>http://www.tcx.se/Manual_chapter/manual_Questions.html#Asking_questions
>
>PLEASE read the above before reposting your question, this will save us all
>a lot of time!
>
>Sorry for the short answer, but as we get a couple of hundred mails/day
>we don't have time to answer questions that are already documented
>or doesn't contain all information needed to give a quick exact answer.
>

Note, mysqlbug script not included with Windows release version.

Version: Ver 7.8 Distrib 3.22.20 Win95/95 on i586, binary install
Installed: server, not client

Computer: 180 Pentium Pro, 64 Mbytes ram

MySQL installation: c:\mysql

Problem: building Msql-MySQL-modules-1.2200

Compiler: VC++ 6.0

Perl version: Activestate build APi509e

Some directories:
c:\apps\perl
c:\apps\perl\bin
c:\apps\perl\lib
c:\apps\perl\moduleinstall\Msql-MySQL-modules-1.2200

c:\Program Files\Microsoft Visual Studio\VC98\lib  
c:\Program Files\Microsoft Visual Studio\VC98\include
c:\Program Files\Microsoft Visual Studio\VC98\mfc\lib
c:\Program Files\Microsoft Visual Studio\VC98\mfc\include

Environment:
INCLUDE=C:\PROGRA~1\MICROS~3\VC98\ATL\INCLUDE;C:\PROGRA~1\MICROS~3\VC98\INCL
UDE;C:\PROGRA~1\MICROS~3\VC98\MFC\INCLUDE;C:\Program Files\Microsoft Visual
Studio\VC98\atl\include;C:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include
LIB=C:\PROGRA~1\MICROS~3\VC98\LIB;C:\PROGRA~1\MICROS~3\VC98\MFC\LIB;C:\Progr
am Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft
Visual Studio\VC98\lib
LOGONSERVER=\\CRJNT1
MSDevDir=C:\PROGRA~1\MICROS~3\Common\msdev98
MSVCDir=C:\PROGRA~1\MICROS~3\VC98
Path=C:\PROGRA~1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BIN;C
:\PROGRA~1\MICROS~3\Common\TOOLS\WINNT;C:\PROGRA~1\MICROS~3\Common\TOOLS;C:\
BAT;C:\apps\MSOffice\Office;C:\apps\Perl\bin;C:\WINNT\system32;C:\WINNT;C:\a
pps\ULTRAEDT;C:\apps\PDM\PDM plugins\bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;c:\apps\bc5\bin;c:\mysql\bin;c:\apps\jdk1.1.5\bin;;D:\APPS\B
RIEF;d:\doe21e;E:\APPS\CBIP2;

Process:
cd \apps\perl\moduleinstall\Msql-MySQL-modules-1.2200
perl Makefile.pl
1] Mysql only
Building mysqlperl emulation - No
Warning prerequisite DBI 1.08 not found at (eval 9) line 226 
Warning prerequisite Data:ShowTable 0 not found at (eval 9) line 226 

Note (probably harmless): No library found for '-lm'
Note (probably harmless): No library found for 'oldnames.lib'
Note (probably harmless): No library found for 'kernel32.lib'
Note (probably harmless): No library found for 'user32.lib'
Note (probably harmless): No library found for 'gdi32.lib'
Note (probably harmless): No library found for 'winspool.lib'
Note (probably harmless): No library found for 'comdlg32.lib'
Note (probably harmless): No library found for 'advapi32.lib'
Note (probably harmless): No library found for 'shell32.lib'
Note (probably harmless): No library found for 'ole32.lib'
Note (probably harmless): No library found for 'oleaut32.lib'
Note (probably harmless): No library found for 'netapi32.lib'
Note (probably harmless): No library found for 'uuid.lib'
Note (probably harmless): No library found for 'wsock32.lib'
Note (probably harmless): No library found for 'mpr.lib'
Note (probably harmless): No library found for 'winmm.lib'
Note (probably harmless): No library found for 'version.lib'
Note (probably harmless): No library found for 'odbc32.lib'
Note (probably harmless): No library found for 'odbccp32.lib'
Using DBI 1.06 installed in C:\apps\Perl\site\lib/auto/DBI
Writing Makefile for DBD::mysql
Writing Makefile for Msql-Mysql-modules

nmake
Compiles okay
Linker errors:

	link -out:..\blib\arch\auto\DBD\mysql\mysql.dll -dll -nologo -nodefaultlib
-release -machine:x86 dbdimp.obj  mysql.obj -LC:/mysql/lib/opt
C:\apps\Perl\lib\CORE\perlCAPI.lib C:\mysql\lib\opt\mysqlclient.lib
C:\mysql\lib\opt\zlib.lib C:\apps\Perl\lib\core\PerlCRT.lib  libc.lib
-def:mysql.def
LINK : warning LNK4044: unrecognized option "LC:/mysql/lib/opt"; ignored
   Creating library ..\blib\arch\auto\DBD\mysql\mysql.lib and object
..\blib\arch\auto\DBD\mysql\mysql.exp
perlCAPI.lib(perlCAPI.obj) : error LNK2001: unresolved external symbol
__imp__InitializeCriticalSection@4
mysqlclient.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol __imp__InitializeCriticalSection@4
perlCAPI.lib(perlCAPI.obj) : error LNK2001: unresolved external symbol
__imp__DeleteCriticalSection@4
mysqlclient.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol __imp__DeleteCriticalSection@4
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol
__imp__DeleteCriticalSection@4
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
__imp__CloseHandle@4
mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __imp__CloseHandle@4
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
__imp__SetNamedPipeHandleState@16
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
__imp__WaitNamedPipeA@8
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
__imp__GetLastError@0
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
__imp__CreateFileA@28
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_closesocket@4
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_shutdown@8
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_ntohs@4
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_getservbyname@8
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_connect@12
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_htons@4
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_gethostbyname@4
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_inet_addr@4
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_setsockopt@20
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_WSAGetLastError@0
mysqlclient.lib(net.obj) : error LNK2001: unresolved external symbol
_WSAGetLastError@0
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol
_socket@12
mysqlclient.lib(net.obj) : error LNK2001: unresolved external symbol _recv@16
mysqlclient.lib(net.obj) : error LNK2001: unresolved external symbol
_ioctlsocket@12
mysqlclient.lib(net.obj) : error LNK2001: unresolved external symbol _send@16
mysqlclient.lib(net.obj) : error LNK2001: unresolved external symbol
__imp__WriteFile@20
mysqlclient.lib(net.obj) : error LNK2001: unresolved external symbol
__imp__ReadFile@20
mysqlclient.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol __imp__TlsAlloc@0
mysqlclient.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol __imp__TlsFree@4
mysqlclient.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol __imp__TlsSetValue@8
mysqlclient.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol __imp__LeaveCriticalSection@4
mysqlclient.lib(my_open.obj) : error LNK2001: unresolved external symbol
__imp__LeaveCriticalSection@4
mysqlclient.lib(my_fopen.obj) : error LNK2001: unresolved external symbol
__imp__LeaveCriticalSection@4
mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __imp__LeaveCriticalSection@4
mysqlclient.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol __imp__TlsGetValue@4
mysqlclient.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol __imp__EnterCriticalSection@4
mysqlclient.lib(my_open.obj) : error LNK2001: unresolved external symbol
__imp__EnterCriticalSection@4
mysqlclient.lib(my_fopen.obj) : error LNK2001: unresolved external symbol
__imp__EnterCriticalSection@4
mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __imp__EnterCriticalSection@4
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol
_WSACleanup@0
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol
__imp__RegCloseKey@4
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol
_putenv
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol
_strdup
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol
__imp__RegEnumValueA@32
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol
__imp__RegOpenKeyExA@20
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol
_WSAStartup@8
mysqlclient.lib(my_open.obj) : error LNK2001: unresolved external symbol _open
mysqlclient.lib(my_open.obj) : error LNK2001: unresolved external symbol
_sopen
mysqlclient.lib(my_open.obj) : error LNK2001: unresolved external symbol
_close
mysqlclient.lib(my_read.obj) : error LNK2001: unresolved external symbol _read
mysqlclient.lib(my_fopen.obj) : error LNK2001: unresolved external symbol
_fileno
mysqlclient.lib(my_fopen.obj) : error LNK2001: unresolved external symbol
_fdopen
mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __imp__SetThreadPriority@8
mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __imp__CreateSemaphoreA@16
mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __imp__InterlockedDecrement@4
mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __imp__WaitForSingleObject@8
mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __imp__InterlockedIncrement@4
mysqlclient.lib(my_winthread.obj) : error LNK2001: unresolved external
symbol __imp__ReleaseSemaphore@12
mysqlclient.lib(my_getwd.obj) : error LNK2001: unresolved external symbol
_getcwd
mysqlclient.lib(my_getwd.obj) : error LNK2001: unresolved external symbol
_chdir
PerlCRT.lib(dllmain.obj) : error LNK2001: unresolved external symbol
__imp__DisableThreadLibraryCalls@4
..\blib\arch\auto\DBD\mysql\mysql.dll : fatal error LNK1120: 51 unresolved
externals

I hope I have included enough info.

Thanks very much for all your help.



Christopher R. Jones, P.Eng.
14 Oneida Avenue
Toronto, Ontario M5J 2E3
Tel. 416 203-7465
Fax. 416 203-3044
Email cj@stripped


Thread
Re: How to build DBD-MySQLChristopher R. Jones25 Jun