473,324 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Issue with building PHP 5.2.2 from source on Windows XP

I need to build PHP from source with the pdo_ibm extension and I am
having an issue with it. Firstly, I am using Visual Studio .NET 2003
and I am building PHP from source through the Visual Studio Command
Prompt. When I get to the nmake step, it gets through everything until
it hits the zend_language_scanner.l file. Then I get these errors:

zend_language_scanner.l(24) : warning C4005: 'yyleng' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(12) : see
previous defini
tion of 'yyleng'
zend_language_scanner.l(25) : warning C4005: 'yytext' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(16) : see
previous defini
tion of 'yytext'
zend_language_scanner.l(26) : warning C4005: 'yytext_ptr' : macro
redefinition
zend_language_scanner.c(289) : see previous definition of
'yytext_ptr'
zend_language_scanner.l(27) : warning C4005: 'yyin' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(11) : see
previous defini
tion of 'yyin'
zend_language_scanner.l(28) : warning C4005: 'yyout' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(14) : see
previous defini
tion of 'yyout'
zend_language_scanner.c(3607) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(3610) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(5309) : warning C4133: '=' : incompatible
types - from '
zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5429) : error C2065: 'tsrm_ls' : undeclared
identifier
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5794) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
Stop.

If you have any suggestions, I would very much appreciate it. The only
option for me right now is to build it from source. If anyone knows
that it cannot be done using the Visual Studio .NET 2003 Command
Prompt, please let me know. It is my understanding that it can be
built using this environment but you never know. Thanks in advance for
any help you all can provide.

For reference, I am going by the instructions listed here:
http://us2.php.net/manual/en/install...s.building.new

and I am using this command to configure the configure.js file:
cscript configure.js --with-extra-includes=c:\win32build\include; --
with-extra-libs=c:\win32build\lib; --enable-debug --disable-cgi --
enable-cli --with-pdo-ibm="C:\SQLLIB",shared
-- treble54

Jun 4 '07 #1
13 3076
On Jun 4, 10:35 am, treble54 <trebl...@gmail.comwrote:
I need to build PHP from source with the pdo_ibm extension and I am
having an issue with it. Firstly, I am using Visual Studio .NET 2003
and I am building PHP from source through the Visual Studio Command
Prompt. When I get to the nmake step, it gets through everything until
it hits the zend_language_scanner.l file. Then I get these errors:

zend_language_scanner.l(24) : warning C4005: 'yyleng' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(12) : see
previous defini
tion of 'yyleng'
zend_language_scanner.l(25) : warning C4005: 'yytext' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(16) : see
previous defini
tion of 'yytext'
zend_language_scanner.l(26) : warning C4005: 'yytext_ptr' : macro
redefinition
zend_language_scanner.c(289) : see previous definition of
'yytext_ptr'
zend_language_scanner.l(27) : warning C4005: 'yyin' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(11) : see
previous defini
tion of 'yyin'
zend_language_scanner.l(28) : warning C4005: 'yyout' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(14) : see
previous defini
tion of 'yyout'
zend_language_scanner.c(3607) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(3610) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(5309) : warning C4133: '=' : incompatible
types - from '
zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5429) : error C2065: 'tsrm_ls' : undeclared
identifier
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5794) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
Stop.

If you have any suggestions, I would very much appreciate it. The only
option for me right now is to build it from source. If anyone knows
that it cannot be done using the Visual Studio .NET 2003 Command
Prompt, please let me know. It is my understanding that it can be
built using this environment but you never know. Thanks in advance for
any help you all can provide.

For reference, I am going by the instructions listed here:http://us2.php.net/manual/en/install...hp#install.win...

and I am using this command to configure the configure.js file:
cscript configure.js --with-extra-includes=c:\win32build\include; --
with-extra-libs=c:\win32build\lib; --enable-debug --disable-cgi --
enable-cli --with-pdo-ibm="C:\SQLLIB",shared

-- treble54
I thought I would add some information on what I have done. I have
been able to progress past the three errors listed above by type in
this command at the Visual Studio Command Prompt:
flex.exe -i -SZend/flex.skl -Pzend -oZend/zend_language_scanner.c Zend/
zend_language_scanner.l

I found this line in the makefile but it had $(FLEX) (FLEX = flex.exe)
instead of flex.exe.

The next thing I had to do was add libxml2 and iconv to the \ext
directory. Now I am getting this as output:

php_xmlwriter.c
rc /fo Debug_TS\php5ts_debug.dll.res /d
FILE_DESCRIPTION="\"PHP Script I
nterpreter\"" /d FILE_NAME="\"php5ts_debug.dll\"" /d
PRODUCT_NAME="\"PHP Script
Interpreter\"" /IDebug_TS /d MC_INCLUDE="\"Debug_TS\wsyslog.rc\""
win32\build
\template.rc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
_libiconv_versi
on
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
compressBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflateBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflatePrime
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzclearerr
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzungetc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBack
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit
_
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateCopy
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlag
s
Debug_TS\php5ts_debug.lib : fatal error LNK1120: 11 unresolved
externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio .NET 2003\
VC7\BIN\cl.exe"' : return code '0x2'
Stop.

I have never dealt with what external symbols before and I was hoping
someone might have some information they could provide me with. My
first thought is that it may be an issue with the Makefile since I am
reminded of linking issues with I see unresolved external symbol but I
am not certain.

Thanks again for any help any of you can provide. Feel free to email
me as well at tr******@gmail.com if you'd rather not post on here.

-- treble54

Jun 4 '07 #2
treble54 wrote:
On Jun 4, 10:35 am, treble54 <trebl...@gmail.comwrote:
>I need to build PHP from source with the pdo_ibm extension and I am
having an issue with it. Firstly, I am using Visual Studio .NET 2003
and I am building PHP from source through the Visual Studio Command
Prompt. When I get to the nmake step, it gets through everything until
it hits the zend_language_scanner.l file. Then I get these errors:

zend_language_scanner.l(24) : warning C4005: 'yyleng' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(12) : see
previous defini
tion of 'yyleng'
zend_language_scanner.l(25) : warning C4005: 'yytext' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(16) : see
previous defini
tion of 'yytext'
zend_language_scanner.l(26) : warning C4005: 'yytext_ptr' : macro
redefinition
zend_language_scanner.c(289) : see previous definition of
'yytext_ptr'
zend_language_scanner.l(27) : warning C4005: 'yyin' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(11) : see
previous defini
tion of 'yyin'
zend_language_scanner.l(28) : warning C4005: 'yyout' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(14) : see
previous defini
tion of 'yyout'
zend_language_scanner.c(3607) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(3610) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(5309) : warning C4133: '=' : incompatible
types - from '
zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5429) : error C2065: 'tsrm_ls' : undeclared
identifier
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5794) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
Stop.

If you have any suggestions, I would very much appreciate it. The only
option for me right now is to build it from source. If anyone knows
that it cannot be done using the Visual Studio .NET 2003 Command
Prompt, please let me know. It is my understanding that it can be
built using this environment but you never know. Thanks in advance for
any help you all can provide.

For reference, I am going by the instructions listed here:http://us2.php.net/manual/en/install...hp#install.win...

and I am using this command to configure the configure.js file:
cscript configure.js --with-extra-includes=c:\win32build\include; --
with-extra-libs=c:\win32build\lib; --enable-debug --disable-cgi --
enable-cli --with-pdo-ibm="C:\SQLLIB",shared

-- treble54

I thought I would add some information on what I have done. I have
been able to progress past the three errors listed above by type in
this command at the Visual Studio Command Prompt:
flex.exe -i -SZend/flex.skl -Pzend -oZend/zend_language_scanner.c Zend/
zend_language_scanner.l

I found this line in the makefile but it had $(FLEX) (FLEX = flex.exe)
instead of flex.exe.

The next thing I had to do was add libxml2 and iconv to the \ext
directory. Now I am getting this as output:

php_xmlwriter.c
rc /fo Debug_TS\php5ts_debug.dll.res /d
FILE_DESCRIPTION="\"PHP Script I
nterpreter\"" /d FILE_NAME="\"php5ts_debug.dll\"" /d
PRODUCT_NAME="\"PHP Script
Interpreter\"" /IDebug_TS /d MC_INCLUDE="\"Debug_TS\wsyslog.rc\""
win32\build
\template.rc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
_libiconv_versi
on
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
compressBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflateBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflatePrime
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzclearerr
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzungetc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBack
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit
_
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateCopy
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlag
s
Debug_TS\php5ts_debug.lib : fatal error LNK1120: 11 unresolved
externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio .NET 2003\
VC7\BIN\cl.exe"' : return code '0x2'
Stop.

I have never dealt with what external symbols before and I was hoping
someone might have some information they could provide me with. My
first thought is that it may be an issue with the Makefile since I am
reminded of linking issues with I see unresolved external symbol but I
am not certain.

Thanks again for any help any of you can provide. Feel free to email
me as well at tr******@gmail.com if you'd rather not post on here.

-- treble54
Unresolved externals typically means you're missing one or more
libraries. Unfortunately, I have no idea what they would be in this
case. But from the looks of it they might be gzip libraries.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 5 '07 #3
On Jun 4, 7:21 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
treble54 wrote:
On Jun 4, 10:35 am, treble54 <trebl...@gmail.comwrote:
I need to build PHP from source with the pdo_ibm extension and I am
having an issue with it. Firstly, I am using Visual Studio .NET 2003
and I am building PHP from source through the Visual Studio Command
Prompt. When I get to the nmake step, it gets through everything until
it hits the zend_language_scanner.l file. Then I get these errors:
zend_language_scanner.l(24) : warning C4005: 'yyleng' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(12) : see
previous defini
tion of 'yyleng'
zend_language_scanner.l(25) : warning C4005: 'yytext' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(16) : see
previous defini
tion of 'yytext'
zend_language_scanner.l(26) : warning C4005: 'yytext_ptr' : macro
redefinition
zend_language_scanner.c(289) : see previous definition of
'yytext_ptr'
zend_language_scanner.l(27) : warning C4005: 'yyin' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(11) : see
previous defini
tion of 'yyin'
zend_language_scanner.l(28) : warning C4005: 'yyout' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(14) : see
previous defini
tion of 'yyout'
zend_language_scanner.c(3607) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(3610) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(5309) : warning C4133: '=' : incompatible
types - from '
zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5429) : error C2065: 'tsrm_ls' : undeclared
identifier
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5794) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
Stop.
If you have any suggestions, I would very much appreciate it. The only
option for me right now is to build it from source. If anyone knows
that it cannot be done using the Visual Studio .NET 2003 Command
Prompt, please let me know. It is my understanding that it can be
built using this environment but you never know. Thanks in advance for
any help you all can provide.
For reference, I am going by the instructions listed here:http://us2.php.net/manual/en/install...hp#install.win...
and I am using this command to configure the configure.js file:
cscript configure.js --with-extra-includes=c:\win32build\include; --
with-extra-libs=c:\win32build\lib; --enable-debug --disable-cgi --
enable-cli --with-pdo-ibm="C:\SQLLIB",shared
-- treble54
I thought I would add some information on what I have done. I have
been able to progress past the three errors listed above by type in
this command at the Visual Studio Command Prompt:
flex.exe -i -SZend/flex.skl -Pzend -oZend/zend_language_scanner.c Zend/
zend_language_scanner.l
I found this line in the makefile but it had $(FLEX) (FLEX = flex.exe)
instead of flex.exe.
The next thing I had to do was add libxml2 and iconv to the \ext
directory. Now I am getting this as output:
php_xmlwriter.c
rc /fo Debug_TS\php5ts_debug.dll.res /d
FILE_DESCRIPTION="\"PHP Script I
nterpreter\"" /d FILE_NAME="\"php5ts_debug.dll\"" /d
PRODUCT_NAME="\"PHP Script
Interpreter\"" /IDebug_TS /d MC_INCLUDE="\"Debug_TS\wsyslog.rc\""
win32\build
\template.rc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
_libiconv_versi
on
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
compressBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflateBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflatePrime
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzclearerr
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzungetc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBack
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit
_
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateCopy
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlag
s
Debug_TS\php5ts_debug.lib : fatal error LNK1120: 11 unresolved
externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio .NET 2003\
VC7\BIN\cl.exe"' : return code '0x2'
Stop.
I have never dealt with what external symbols before and I was hoping
someone might have some information they could provide me with. My
first thought is that it may be an issue with the Makefile since I am
reminded of linking issues with I see unresolved external symbol but I
am not certain.
Thanks again for any help any of you can provide. Feel free to email
me as well at trebl...@gmail.com if you'd rather not post on here.
-- treble54

Unresolved externals typically means you're missing one or more
libraries. Unfortunately, I have no idea what they would be in this
case. But from the looks of it they might be gzip libraries.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I figured it was something along those lines. It all seems like it
boils down to having the correct configuration set up before doing
nmake (i.e. the correct "cscript /nologo configure.js" command
issued), followed by having the correct libraries / ext's in the
correct places. The current result I am getting when I run nmake is
the following:

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

php5ts_debug.dll.def : error LNK2001: unresolved external symbol
_libiconv_versi
on
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
compressBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflateBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflatePrime
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzclearerr
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzungetc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBack
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit
_
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateCopy
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv_close
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv_open
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv_set_re
location_prefix
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlag
s
Debug_TS\php5ts_debug.lib : fatal error LNK1120: 15 unresolved
externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio .NET 2003\
VC7\BIN\cl.exe"' : return code '0x2'
Stop.

My cscript is as follows:

cscript /nologo configure.js --with-extra-includes="C:\work\win32build
\include;C:\work\php-5.2.2\ext\iconv-1.9.1\include" --with-extra-
libs="C:\work\win32build\lib;C:\work\php-5.2.2\ext\iconv-1.9.1\lib" --
enable-debug --disable-cgi --enable-cli --with-pdo-ibm="C:
\SQLLIB",shared --with-dom --with-libxml="C:\work\php-5.2.2\ext
\libxml2\bin" --with-iconv="C:\work\php-5.2.2\ext\iconv-1.9.1\bin" --
without-gd --enable-zlib

I tried adding the include/lib folders of libxml and libcurl to the
extra-includes and extra-libs flag but that so far hasn't changed
anything. If anyone has any suggestions, that would be wonderful!

-- treble54

Jun 5 '07 #4
treble54 wrote:
On Jun 4, 7:21 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>treble54 wrote:
>>On Jun 4, 10:35 am, treble54 <trebl...@gmail.comwrote:
I need to build PHP from source with the pdo_ibm extension and I am
having an issue with it. Firstly, I am using Visual Studio .NET 2003
and I am building PHP from source through the Visual Studio Command
Prompt. When I get to the nmake step, it gets through everything until
it hits the zend_language_scanner.l file. Then I get these errors:
zend_language_scanner.l(24) : warning C4005: 'yyleng' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(12) : see
previous defini
tion of 'yyleng'
zend_language_scanner.l(25) : warning C4005: 'yytext' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(16) : see
previous defini
tion of 'yytext'
zend_language_scanner.l(26) : warning C4005: 'yytext_ptr' : macro
redefinition
zend_language_scanner.c(289) : see previous definition of
'yytext_ptr'
zend_language_scanner.l(27) : warning C4005: 'yyin' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(11) : see
previous defini
tion of 'yyin'
zend_language_scanner.l(28) : warning C4005: 'yyout' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(14) : see
previous defini
tion of 'yyout'
zend_language_scanner.c(3607) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(3610) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(5309) : warning C4133: '=' : incompatible
types - from '
zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5429) : error C2065: 'tsrm_ls' : undeclared
identifier
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5794) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
Stop.
If you have any suggestions, I would very much appreciate it. The only
option for me right now is to build it from source. If anyone knows
that it cannot be done using the Visual Studio .NET 2003 Command
Prompt, please let me know. It is my understanding that it can be
built using this environment but you never know. Thanks in advance for
any help you all can provide.
For reference, I am going by the instructions listed here:http://us2.php.net/manual/en/install...hp#install.win...
and I am using this command to configure the configure.js file:
cscript configure.js --with-extra-includes=c:\win32build\include; --
with-extra-libs=c:\win32build\lib; --enable-debug --disable-cgi --
enable-cli --with-pdo-ibm="C:\SQLLIB",shared
-- treble54
I thought I would add some information on what I have done. I have
been able to progress past the three errors listed above by type in
this command at the Visual Studio Command Prompt:
flex.exe -i -SZend/flex.skl -Pzend -oZend/zend_language_scanner.c Zend/
zend_language_scanner.l
I found this line in the makefile but it had $(FLEX) (FLEX = flex.exe)
instead of flex.exe.
The next thing I had to do was add libxml2 and iconv to the \ext
directory. Now I am getting this as output:
php_xmlwriter.c
rc /fo Debug_TS\php5ts_debug.dll.res /d
FILE_DESCRIPTION="\"PHP Script I
nterpreter\"" /d FILE_NAME="\"php5ts_debug.dll\"" /d
PRODUCT_NAME="\"PHP Script
Interpreter\"" /IDebug_TS /d MC_INCLUDE="\"Debug_TS\wsyslog.rc\""
win32\build
\template.rc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
_libiconv_versi
on
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
compressBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflateBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflatePrime
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzclearerr
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzungetc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBack
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit
_
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateCopy
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlag
s
Debug_TS\php5ts_debug.lib : fatal error LNK1120: 11 unresolved
externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio .NET 2003\
VC7\BIN\cl.exe"' : return code '0x2'
Stop.
I have never dealt with what external symbols before and I was hoping
someone might have some information they could provide me with. My
first thought is that it may be an issue with the Makefile since I am
reminded of linking issues with I see unresolved external symbol but I
am not certain.
Thanks again for any help any of you can provide. Feel free to email
me as well at trebl...@gmail.com if you'd rather not post on here.
-- treble54
Unresolved externals typically means you're missing one or more
libraries. Unfortunately, I have no idea what they would be in this
case. But from the looks of it they might be gzip libraries.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

I figured it was something along those lines. It all seems like it
boils down to having the correct configuration set up before doing
nmake (i.e. the correct "cscript /nologo configure.js" command
issued), followed by having the correct libraries / ext's in the
correct places. The current result I am getting when I run nmake is
the following:

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

php5ts_debug.dll.def : error LNK2001: unresolved external symbol
_libiconv_versi
on
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
compressBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflateBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflatePrime
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzclearerr
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzungetc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBack
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit
_
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateCopy
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv_close
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv_open
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv_set_re
location_prefix
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlag
s
Debug_TS\php5ts_debug.lib : fatal error LNK1120: 15 unresolved
externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio .NET 2003\
VC7\BIN\cl.exe"' : return code '0x2'
Stop.

My cscript is as follows:

cscript /nologo configure.js --with-extra-includes="C:\work\win32build
\include;C:\work\php-5.2.2\ext\iconv-1.9.1\include" --with-extra-
libs="C:\work\win32build\lib;C:\work\php-5.2.2\ext\iconv-1.9.1\lib" --
enable-debug --disable-cgi --enable-cli --with-pdo-ibm="C:
\SQLLIB",shared --with-dom --with-libxml="C:\work\php-5.2.2\ext
\libxml2\bin" --with-iconv="C:\work\php-5.2.2\ext\iconv-1.9.1\bin" --
without-gd --enable-zlib

I tried adding the include/lib folders of libxml and libcurl to the
extra-includes and extra-libs flag but that so far hasn't changed
anything. If anyone has any suggestions, that would be wonderful!

-- treble54
Well, googling for the unresolved externs indicates you are missing (at
least) libiconv.lib. Or maybe it's iconv.lib. Not sure which.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 6 '07 #5
On Jun 5, 7:31 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
treble54 wrote:
On Jun 4, 7:21 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
treble54 wrote:
On Jun 4, 10:35 am, treble54 <trebl...@gmail.comwrote:
I need to build PHP from source with the pdo_ibm extension and I am
having an issue with it. Firstly, I am using Visual Studio .NET 2003
and I am building PHP from source through the Visual Studio Command
Prompt. When I get to the nmake step, it gets through everything until
it hits the zend_language_scanner.l file. Then I get these errors:
zend_language_scanner.l(24) : warning C4005: 'yyleng' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(12) : see
previous defini
tion of 'yyleng'
zend_language_scanner.l(25) : warning C4005: 'yytext' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(16) : see
previous defini
tion of 'yytext'
zend_language_scanner.l(26) : warning C4005: 'yytext_ptr' : macro
redefinition
zend_language_scanner.c(289) : see previous definition of
'yytext_ptr'
zend_language_scanner.l(27) : warning C4005: 'yyin' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(11) : see
previous defini
tion of 'yyin'
zend_language_scanner.l(28) : warning C4005: 'yyout' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(14) : see
previous defini
tion of 'yyout'
zend_language_scanner.c(3607) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(3610) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(5309) : warning C4133: '=' : incompatible
types - from '
zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5429) : error C2065: 'tsrm_ls' : undeclared
identifier
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5794) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
Stop.
If you have any suggestions, I would very much appreciate it. The only
option for me right now is to build it from source. If anyone knows
that it cannot be done using the Visual Studio .NET 2003 Command
Prompt, please let me know. It is my understanding that it can be
built using this environment but you never know. Thanks in advance for
any help you all can provide.
For reference, I am going by the instructions listed here:http://us2.php.net/manual/en/install...hp#install.win...
and I am using this command to configure the configure.js file:
cscript configure.js --with-extra-includes=c:\win32build\include; --
with-extra-libs=c:\win32build\lib; --enable-debug --disable-cgi --
enable-cli --with-pdo-ibm="C:\SQLLIB",shared
-- treble54
I thought I would add some information on what I have done. I have
been able to progress past the three errors listed above by type in
this command at the Visual Studio Command Prompt:
flex.exe -i -SZend/flex.skl -Pzend -oZend/zend_language_scanner.c Zend/
zend_language_scanner.l
I found this line in the makefile but it had $(FLEX) (FLEX = flex.exe)
instead of flex.exe.
The next thing I had to do was add libxml2 and iconv to the \ext
directory. Now I am getting this as output:
php_xmlwriter.c
rc /fo Debug_TS\php5ts_debug.dll.res /d
FILE_DESCRIPTION="\"PHP Script I
nterpreter\"" /d FILE_NAME="\"php5ts_debug.dll\"" /d
PRODUCT_NAME="\"PHP Script
Interpreter\"" /IDebug_TS /d MC_INCLUDE="\"Debug_TS\wsyslog.rc\""
win32\build
\template.rc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
_libiconv_versi
on
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
compressBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflateBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflatePrime
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzclearerr
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzungetc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBack
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit
_
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateCopy
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlag
s
Debug_TS\php5ts_debug.lib : fatal error LNK1120: 11 unresolved
externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio .NET 2003\
VC7\BIN\cl.exe"' : return code '0x2'
Stop.
I have never dealt with what external symbols before and I was hoping
someone might have some information they could provide me with. My
first thought is that it may be an issue with the Makefile since I am
reminded of linking issues with I see unresolved external symbol but I
am not certain.
Thanks again for any help any of you can provide. Feel free to email
me as well at trebl...@gmail.com if you'd rather not post on here.
-- treble54
Unresolved externals typically means you're missing one or more
libraries. Unfortunately, I have no idea what they would be in this
case. But from the looks of it they might be gzip libraries.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I figured it was something along those lines. It all seems like it
boils down to having the correct configuration set up before doing
nmake (i.e. the correct "cscript /nologo configure.js" command
issued), followed by having the correct libraries / ext's in the
correct places. The current result I am getting when I run nmake is
the following:
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
_libiconv_versi
on
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
compressBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflateBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflatePrime
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzclearerr
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzungetc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBack
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit
_
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateCopy
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv_close
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv_open
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
libiconv_set_re
location_prefix
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlag
s
Debug_TS\php5ts_debug.lib : fatal error LNK1120: 15 unresolved
externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio .NET 2003\
VC7\BIN\cl.exe"' : return code '0x2'
Stop.
My cscript is as follows:
cscript /nologo configure.js --with-extra-includes="C:\work\win32build
\include;C:\work\php-5.2.2\ext\iconv-1.9.1\include" --with-extra-
libs="C:\work\win32build\lib;C:\work\php-5.2.2\ext\iconv-1.9.1\lib" --
enable-debug --disable-cgi --enable-cli --with-pdo-ibm="C:
\SQLLIB",shared --with-dom --with-libxml="C:\work\php-5.2.2\ext
\libxml2\bin" --with-iconv="C:\work\php-5.2.2\ext\iconv-1.9.1\bin" --
without-gd --enable-zlib
I tried adding the include/lib folders of libxml and libcurl to the
extra-includes and extra-libs flag but that so far hasn't changed
anything. If anyone has any suggestions, that would be wonderful!
-- treble54

Well, googling for the unresolved externs indicates you are missing (at
least) libiconv.lib. Or maybe it's iconv.lib. Not sure which.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I have solved the zlib issues which was awesome. However, now, I am
having issues with iconv.lib. I see that iconv is listed in the
correct lib path I supply in the --extra-libs flag but for some
reasons, they are still unresolved external symbols. Do I need to get
iconv source and build it on my machine to get it to work? I am asking
because that is what I had to do for zlib to get it to work.

-- treble54

Jun 6 '07 #6
Sorry, I didn't realize my last message went up as blank.

I have fixed mostly all of the unresolved external symbols except for
the iconv ones. I have added the correct lib and include path for
iconv to the --extra-libs/--extra-includes flags. Do I need to build
iconv on the machine I am using (Windows)? Or does it need to be in a
different directory, maybe?

-- treble54

Jun 6 '07 #7
treble54 wrote:
Sorry, I didn't realize my last message went up as blank.

I have fixed mostly all of the unresolved external symbols except for
the iconv ones. I have added the correct lib and include path for
iconv to the --extra-libs/--extra-includes flags. Do I need to build
iconv on the machine I am using (Windows)? Or does it need to be in a
different directory, maybe?

-- treble54
Actually, it wasn't blank - must be something Google Groups (one of the
reasons I don't use it - I run straight from usenet - it's much better).

I don't know about having to build it. Not knowing what it was built
with in the first place, it's hard to say. Compilers don't always
generate compatible lib files. I know it's a pain - but that seems to
be how it is.

However, you might try adding iconv to your lib list. Just having it in
the lib path may not be enough.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 6 '07 #8
On Jun 6, 12:03 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
treble54 wrote:
Sorry, I didn't realize my last message went up as blank.
I have fixed mostly all of the unresolved external symbols except for
the iconv ones. I have added the correct lib and include path for
iconv to the --extra-libs/--extra-includes flags. Do I need to build
iconv on the machine I am using (Windows)? Or does it need to be in a
different directory, maybe?
-- treble54

Actually, it wasn't blank - must be something Google Groups (one of the
reasons I don't use it - I run straight from usenet - it's much better).

I don't know about having to build it. Not knowing what it was built
with in the first place, it's hard to say. Compilers don't always
generate compatible lib files. I know it's a pain - but that seems to
be how it is.

However, you might try adding iconv to your lib list. Just having it in
the lib path may not be enough.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I'm new to developing on Windows, and I am not sure what you mean by
Lib List. If its not Windows-specific, then I guess I mean in general,
what is a lib list.

Thanks again for communicating back and forth with me. I really
appreciate it.

-- treble54

Jun 6 '07 #9
treble54 wrote:
On Jun 6, 12:03 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>treble54 wrote:
>>Sorry, I didn't realize my last message went up as blank.
I have fixed mostly all of the unresolved external symbols except for
the iconv ones. I have added the correct lib and include path for
iconv to the --extra-libs/--extra-includes flags. Do I need to build
iconv on the machine I am using (Windows)? Or does it need to be in a
different directory, maybe?
-- treble54
Actually, it wasn't blank - must be something Google Groups (one of the
reasons I don't use it - I run straight from usenet - it's much better).

I don't know about having to build it. Not knowing what it was built
with in the first place, it's hard to say. Compilers don't always
generate compatible lib files. I know it's a pain - but that seems to
be how it is.

However, you might try adding iconv to your lib list. Just having it in
the lib path may not be enough.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

I'm new to developing on Windows, and I am not sure what you mean by
Lib List. If its not Windows-specific, then I guess I mean in general,
what is a lib list.

Thanks again for communicating back and forth with me. I really
appreciate it.

-- treble54
I don't use .NET, but every linker I'm familiar with has an option
somewhere to list the specific libraries you want included. For
instance, you might have 150 libraries in a directory, some with
conflicting definitions for various reasons. You can pick the one(s)
you want.

For command line linkers it's a "-something" option; for GUI's it's
typically an entry box. You may need to look at your documentation for
your IDE.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 7 '07 #10
On Jun 6, 11:08 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
treble54 wrote:
On Jun 6, 12:03 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
treble54 wrote:
Sorry, I didn't realize my last message went up as blank.
I have fixed mostly all of the unresolved external symbols except for
the iconv ones. I have added the correct lib and include path for
iconv to the --extra-libs/--extra-includes flags. Do I need to build
iconv on the machine I am using (Windows)? Or does it need to be in a
different directory, maybe?
-- treble54
Actually, it wasn't blank - must be something Google Groups (one of the
reasons I don't use it - I run straight from usenet - it's much better).
I don't know about having to build it. Not knowing what it was built
with in the first place, it's hard to say. Compilers don't always
generate compatible lib files. I know it's a pain - but that seems to
be how it is.
However, you might try adding iconv to your lib list. Just having it in
the lib path may not be enough.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I'm new to developing on Windows, and I am not sure what you mean by
Lib List. If its not Windows-specific, then I guess I mean in general,
what is a lib list.
Thanks again for communicating back and forth with me. I really
appreciate it.
-- treble54

I don't use .NET, but every linker I'm familiar with has an option
somewhere to list the specific libraries you want included. For
instance, you might have 150 libraries in a directory, some with
conflicting definitions for various reasons. You can pick the one(s)
you want.

For command line linkers it's a "-something" option; for GUI's it's
typically an entry box. You may need to look at your documentation for
your IDE.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
Yeah, I want to say that this command is what you might be referring
to for my specific case (maybe?):

cscript /nologo configure.js --with-extra-includes="C:\work\win32build
\include;C:\work\php-5.2.2\ext\iconv-1.9.1\include" --with-extra-
libs="C:\work\win32build\lib;C:\work\php-5.2.2\ext\iconv-1.9.1\lib" --
enable-debug --disable-cgi --enable-cli --with-pdo-ibm="C:
\SQLLIB",shared --with-dom --with-libxml="C:\work\php-5.2.2\ext
\libxml2\bin" --with-iconv="C:\work\php-5.2.2\ext\iconv-1.9.1\bin" --
without-gd --enable-zlib

I believe this command enables / disables specific options (or
extensions) before you build php. Its quite irritating, though,
because the lib that has these external symbols is listed in this
command I just pasted above (C:\work\php-5.2.2\ext\iconv-1.9.1\lib\).
Anyway, I'm still trucking along trying to build this. If you have
anything to add that might be useful, please let me know! :) Thanks
for taking the time to help me out.

-- treble54

Jun 7 '07 #11
treble54 wrote:
On Jun 6, 11:08 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>treble54 wrote:
>>On Jun 6, 12:03 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
treble54 wrote:
Sorry, I didn't realize my last message went up as blank.
I have fixed mostly all of the unresolved external symbols except for
the iconv ones. I have added the correct lib and include path for
iconv to the --extra-libs/--extra-includes flags. Do I need to build
iconv on the machine I am using (Windows)? Or does it need to be in a
different directory, maybe?
-- treble54
Actually, it wasn't blank - must be something Google Groups (one of the
reasons I don't use it - I run straight from usenet - it's much better).
I don't know about having to build it. Not knowing what it was built
with in the first place, it's hard to say. Compilers don't always
generate compatible lib files. I know it's a pain - but that seems to
be how it is.
However, you might try adding iconv to your lib list. Just having it in
the lib path may not be enough.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I'm new to developing on Windows, and I am not sure what you mean by
Lib List. If its not Windows-specific, then I guess I mean in general,
what is a lib list.
Thanks again for communicating back and forth with me. I really
appreciate it.
-- treble54
I don't use .NET, but every linker I'm familiar with has an option
somewhere to list the specific libraries you want included. For
instance, you might have 150 libraries in a directory, some with
conflicting definitions for various reasons. You can pick the one(s)
you want.

For command line linkers it's a "-something" option; for GUI's it's
typically an entry box. You may need to look at your documentation for
your IDE.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Yeah, I want to say that this command is what you might be referring
to for my specific case (maybe?):

cscript /nologo configure.js --with-extra-includes="C:\work\win32build
\include;C:\work\php-5.2.2\ext\iconv-1.9.1\include" --with-extra-
libs="C:\work\win32build\lib;C:\work\php-5.2.2\ext\iconv-1.9.1\lib" --
enable-debug --disable-cgi --enable-cli --with-pdo-ibm="C:
\SQLLIB",shared --with-dom --with-libxml="C:\work\php-5.2.2\ext
\libxml2\bin" --with-iconv="C:\work\php-5.2.2\ext\iconv-1.9.1\bin" --
without-gd --enable-zlib

I believe this command enables / disables specific options (or
extensions) before you build php. Its quite irritating, though,
because the lib that has these external symbols is listed in this
command I just pasted above (C:\work\php-5.2.2\ext\iconv-1.9.1\lib\).
Anyway, I'm still trucking along trying to build this. If you have
anything to add that might be useful, please let me know! :) Thanks
for taking the time to help me out.

-- treble54
Well, again it looks like you're specifying a directory for the library,
but not the library itself.

--with-extra-libs="...C:\work\php-5.2.2\ext\iconv-1.9.1\lib"

That looks like a directory, not a library.

But as I say - I'm not at all familiar with .NET, so I can't help you
much on it.

Maybe you should try a group for .NET programmers to see if they can help.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 7 '07 #12
I have solved the zlib issues which was awesome.
excuse me but, how did you solve the zlib issues?
Thanks in advance.
F.J.

Jun 11 '07 #13
On 11 jun, 09:30, ortizto...@gmail.com wrote:
I have solved the zlib issues which was awesome.

excuse me but, how did you solve the zlib issues?
Thanks in advance.
F.J.

ok, upgrading to zlib-1.2.3 :-)

Jun 11 '07 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kylotan | last post by:
I need to be able to build Py2Exe from the source code as I am making a Windows executable where I wish to preprocess the modules before importing them.It looks like I can do this by adding lines...
2
by: Jon Slaughter | last post by:
<I previously posted this in comp.os.misc, but no one answered and its been 3 days... actually no one has posted any messages at all(atleast they are not showing up), so, while it might not be...
2
by: George Durzi | last post by:
I have a dll that I use in several projects, that I placed in the Global Assembly Cache. This dll is references in each of my projects. This Dll is referenced by a type= declaration in my...
0
by: Stephen Walther | last post by:
Microsoft has released the final version of the ASP.NET Issue Tracker Starter Kit. The Issue Tracker Starter Kit is a free application produced by Microsoft which illustrates best-practices when...
7
by: Hal Vaughan | last post by:
I have a problem with port forwarding and I have been working on it for over 2 weeks with no luck. I have found C programs that almost work and Java programs that almost work, but nothing that...
0
by: Rich | last post by:
I am trying to obtain more debugging information for an issue I reported (ref. Bug #37185 <http://bugs.php.net/bug.php?id=37185&edit=2>). Unfortunately, I do not have access to the now-ancient...
4
by: JDJMSon | last post by:
I was wondering if someone here could help me with a problem I'm having building Python extensions with the Boost.Python library. Basically, if I have a wrapper class with something like this: ...
3
by: Bev in TX | last post by:
I am a complete newbie at building Python. I am trying to build it under MS Windows Vista (64-bit AMD) with MS VS2005. I'm doing that because I need debug libraries, which I did not see in the...
0
by: Chris | last post by:
Hi, I'm trying to build Python on Windows using Visual Studio 2005. I have no trouble compiling tcl/tk 8.5, but when I subsequently build Python it doesn't find tcl/tk (I get a message about...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.