[Pi3web-users] Re: Problems when building Pi3Web 2.0.1 under Redhat Linux 9
Brought to you by:
zimpel
|
From: <joe...@we...> - 2003-11-18 10:55:56
|
Hello Holger,
the PHP-sources had been build correctly... so I guess the Problems are ba=
sed on
the compiler-version, although I got no gcc compiler errors or linker erro=
rs during the
build. The build breaks with the descripted error, with or without PHP.
The last two days/nights ;-) I tried to downgrade the compiler from 3.3.2 =
to 2.9.6
from Redhat 7.3. It ends up with a corrupted system, because of the widera=
nge
dependencies.
Now I will try to install a small Redhat 7.3 system on an extra disk and b=
uild Pi3Web
on it. If you are ready with modifying the Header for gcc 3.3 please let m=
e know ;-)
regards
J=F6rn
>
> Hallo everybody,
^^
Hallo J=C3=B6rn,
> I try to build Pi3Web with PHP 4.3 under my redhat 9 standard
> installation and get 2 errors:
>
> First I tried to build PHP. When I did the final 'make' at Source/PHP4/=
> I got the following error-message:
>
> g++ -shared -o libPHP4Wrapper.so -L../Pi3API -L../Pi2API -L../PiAPI
> -L../Base -L../Util -L./PHP4/.libs
> APISyms.o HandBase.o PHP4Handler.o -lPi3API -lPi2API -lPiAPI -lBase
> -lUtil -lphp4 -ldl
> /usr/bin/ld: cannot find -lPi3API
> collect2: ld returned 1 exit status
> make[1]: *** [libPHP4Wrapper.so] Fehler 1
> make[1]: Verlassen des Verzeichnisses Verzeichnis
> =C2=BB/usr/src/Pi3Web/Source/PHP4=C2=AB
> make: *** [POSIX_BUILD] Fehler 2
>
> I tried it several times under different conditions, but nothing works.
> It seems to be a Problem with the parameters of the compiler or the
> locations, but I now quite little about that...
> Finally I thougth I first have to build the server, but when I did that=
> I got my second error.
^^
Has the libPi3API.so been build? Has the PHP interpreter itself really
been build? If not, build PHP4 and then Pi3Web (read the instructions in
Pi3Web/Source/PHP4/README how to get and build PHP4). The single needed
steps are roughly:
1.) download and unpack the Pi3Web source distribution
2.) download or checkout the appropriate PHP4 source distribution
3.) copy the PHP4 files into Source/PHP4, i.e. you can find, e.g.
Source/PHP4/PHP4/CREDITS
^^ ^^
^^ This is the PHP script interpreter source tree *)
^^
This is the location of the Pi3Web PHP4 wrapper **)
*) after steps 2.) + 3.)
**) the Pi3Web sources doesn't contain the PHP sources but only
some needed wrapper code
4.) build PHP4 interpreter
(cd Source/PHP4/PHP4; ./configure --with-pi3web; make)
5.) build Pi3Web
(cd Source; sh ./Build; make)
> perl Scripts/linkify.pl ../Pi3Docs/Indexes/Index.ind
> ../Pi3Docs/APISpec/*.html ../Pi3Docs/Objects/*.html
> ../Pi3Docs/Examples/Config/*.* ../Pi3Docs/Examples/Source/*.* ; echo
>
>> foo.tmp
>
> #
> # linkify.pl, using index file '../Pi3Docs/Indexes/Index.ind'
> #
> linkify.pl: Adding links to file ../Pi3Docs/APISpec/*.html...
> Cannot open file ../Pi3Docs/APISpec/*.html: Datei oder Verzeichnis nich=
t
> gefunden
>
> The perl-script 'linkify.pl' seems to get a undefined filename for
> output (*.html?), but I have no idea why...
> my knowlegde about perl goes to zero (yet) ;-)
^^
The linkify script modifies the online documentation generated from
the API sources during the build and adds appropriate hyperlinks to
it, i.e. this is no critical problem.
But it seems again, there are no *.html files in Pi3Docs/APISpec/,
i.e. neither the PiAPI, Pi2API nor the Pi3API have been built yet.
If you get gcc compiler errors or linker errors during the build -
which version of binutils you are using? I built Pi3Web with gcc 2.95
but RH 9 is gcc 3.2.2. I expect, the build will fail with the newer
gcc without some header modifications (currently work on that).
> Can anybody help me???
> regards
> J=C3=B6rn Pauli
^^
I hope, I could at least clarify the most probable cause of the
reported
--
regards
Holger
|