I am trying to compile embperl under the following environment
gcc version 2.96 20000731 (Red Hat Linux 7.0)
Red Hat Linux 7.0
Perl 5.00503
Apache 1.3.12
The compile attempt and error are shown below:
cc -c -I/u0/oracle_8.1.7/Apache/Apache/include -I/u0/oracle_8.1.7/Apache/Apa
che/regex -I/u0/oracle_8.1.7/Apache/Apache/os/unix -ggdb -D_REENTRANT -Dboo
l=char -DHAS_BOOL -I/usr/local/include -O2 -DVERSION=\"1.3.1\" -DXS_VERSI
ON=\"1.3.1\" -fpic -I/usr/local/apache/perl/lib/5.00503/i686-linux-thread/CO
RE -DAPACHE epcmd.c
epcmd.c: In function `CmdVar':
epcmd.c:875: `thr' undeclared (first use in this function)
epcmd.c:875: (Each undeclared identifier is reported only once
epcmd.c:875: for each function it appears in.)
make: *** [epcmd.o] Error 1
I did some searches and checking. This is definately threads related and
the thr datatype is referenced in
"perl/lib/5.00503/i686-linux-thread/CORE/thread.h". By searching the
DBD/DBI documentation I found this error report and it recommended adding a
"dTHR;" to the top of the function that had the problem.
So in epcmd.c in the function CmdVar I added a "dTHR;" and viola, I can
successfully compile. However, I am not a believer in "It compiles,
therefore we should slam it into production and go home for the weekend. :)"
Does anyone have a comment on this fix and if this is the correct solution
for building embperl?
Thanks!
Michael George III
[EMAIL PROTECTED]
http://mike.wnol.net
"Douglas Adams, we'll miss you and thanks for the answer to life, the
universe and everything!"
1952 - May 11, 2001
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]