|
From: Daniel C. <dan...@gi...> - 2003-10-20 13:17:48
|
Hi
Thank you for your help.
I solved the problem. When a had the problem I copied the wrapper_server.co=
nf file from a windows machine to the linux machine with ftp. When I instea=
d created the file as a new file on linux with emacs and with ssh pasted th=
e contents into the file everything worked.
The text contents was the same in both tests but comparing the files showed=
that the binary contents was not. My guess is that the file got som wrong =
character encoding and then wrapper either didn't see the #include line at =
all becuase # was encoded differently or it saw the line but couldn't find =
the file because its filename had som different encoding.
Just so you known.=20
/Daniel
Leif wrote:
Daniel,
I just retested this and it is working correctly on my machine. =20
There is currently no
easy way to debug this because the include system is designed to simply=20
ignore files that
can not be found.
=20
It sounds like you have already tried most things. The next thing=20
that I would suggest
will involve building from source? It is easy.
=20
Download the src tar file. (You do not need the big one with the=20
document source.)
Edit the src/c/Makefile.linux file and append a debug flag to the=20
COMPILE options
on the first line. It will look like this:
=20
COMPILE =3D gcc -O3 -Wall --pedantic -D_DEBUG
=20
Now from the root of the source, simply run ./build.sh This will=20
recompile everything.
Copy the new wrapper binary to your project and try launching the=20
wrapper again.
You will get a lot of debug output. The beginning goes through the=20
process of reading
in the conf file and any includes. It is not very user friendly, so=20
post the output back to
the list and I'll see if I can see your problem.
=20
Please post your wrapper.conf and wrapper_server.conf files as well.
=20
Cheers,
Leif
=20
Daniel Carlsson wrote:
=20
>Hi
>
>I am using #include in a file called "wrapper_server.conf" to include a f=
ile named
"wrapper.conf", both placed in the same directory as the executable. Everyt=
hing works
perfectly on windows but does not work att all on linux (Redhat 8.0, sun ja=
va 1.4.1_02-b06).
I have tried wrapper 3.0.4 and 3.0.5.
>
>I have tried moveing the include line around and rewritting it as:
>#include wrapper.conf
># include wrapper.conf
>#include ./wrapper.conf
>#include /opt/fox/fox_f03/wrapper/wrapper.conf
>
>Nothing works and I can't understand why. Has somebody successfully run i=
ncludes in linux?
Does somebody know why it doesn't work?
>
>Thanks
>
>Daniel Carlsson=20
>Gimlisoft AB
>Email: daniel.carlsson@gi...
>Tel: 0709-744570, 031-189024
> =20
>
=20
Med v=E4nliga h=E4lsningar
Daniel Carlsson=20
Gimlisoft AB
Email: dan...@gi...
Tel: 0709-744570, 031-189024
|