On Fri, May 8, 2009 at 12:06 AM, Mads Kiilerich <m...@kiilerich.com> wrote:
> Emre Erenoglu wrote, On 05/07/2009 11:51 PM:
>>
>> Yes, I've done the same. However, even with suse patches and 0.4.1
>> version, an ordinary configure, make and make install still can't find
>> the libvnc.so, unless I put:
>> lib=libvnc.so
>> line in the xrdp.ini file. I don't want to put the /usr/local/lib/xrdp
>> or /usr/lib/xrdp into my ld.so.conf and the linker is using necessary
>> flags. Strange...
>>
>
> I think you will have to provide more specific information and show exactly
> what you are doing.
>

You're right Mads. Here's what I do step-by-step:

1) Download xrdp 0.4.1 from sourceforge
2) apply suse patches (xrdp-0.4.1..48f00f.diff) obtained from within
http://download.opensuse.org/repositories/home:/hfiguiere:/Factory/openSUSE_11.1/src/xrdp-0.4.1-74.1.src.rpm
, which enables the release package for autotools.
3) apply configure.ac section of the patch from xrdp-NOMAD.diff
obtained from the same source rpm for correcting /usr/etc and /usr/var
kind of directory mappings
4) run bootstrap
5) configure with the following parameters:
./configure --prefix=/usr --build=i686-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --libexecdir=/usr/libexec --disable-static
--localstatedir=/var
6) run make without any special parameters. See similar lines to the
following during compilation and linking:
      .....
/bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc
-mtune=generic -march=i686 -O2 -pipe -fomit-frame-pointer
-fstack-protector -D_FORTIFY_SOURCE=2  -Wl,-O1 -Wl,-z,relro
-Wl,--hash-style=gnu -o libvnc.la -rpath /usr/lib/xrdp/ vnc.lo
../common/libcommon.la
i686-pc-linux-gnu-gcc -shared  .libs/vnc.o  -Wl,--rpath
-Wl,/var/pisi/xrdp-0.4.1-1/work/xrdp-0.4.1/common/.libs -Wl,--rpath
-Wl,/usr/lib/xrdp/ ../common/.libs/libcommon.so  -mtune=generic
-march=i686 -Wl,-O1 -Wl,-z -Wl,relro -Wl,--hash-style=gnu -Wl,-soname
-Wl,libvnc.so.0 -o .libs/libvnc.so.0.0.0
(cd .libs && rm -f libvnc.so.0 && ln -s libvnc.so.0.0.0 libvnc.so.0)
      ....
thus clearly seeing  -Wl,--rpath -Wl,/usr/lib/xrdp/  parameters for
runtime linking for libvnc.so

7) make install without any special parameters
8) run xrdp.sh start script
9) xrdp runs, connection OK, login screen comes and I try to login
with sesman-Xvnc method, described as follows in the xrdp.ini file:
[xrdp1]
name=sesman-Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1

10) username/password authenticates, session starts (I can hear the
login sounds on localhost system), but xrdp complains not being able
to load libvnc.so in the onscreen log
11) check with ps axu that the user really logged in, confirmed.
12) if I change the lib=libvnc.so to lib=/usr/lib/xrdp/libvnc.so  then
things start to work.

Hope we can clear this thing out. It would be very good if we had a
normal configure, make, make install methodology in release packages.
The current status of the Makefiles and even with autotools, it's not
trivial and takes a lot of time to debug.

Here's the contents of libvnc.la , in case it has any useful info :

# libvnc.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.26 (1.1220.2.493 2008/02/01 16:58:18)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libvnc.so.0'

# Names of this library.
library_names='libvnc.so.0.0.0 libvnc.so.0 libvnc.so'

# The name of the static archive.
old_library=''

# Libraries that this one depends upon.
dependency_libs=' /usr/lib/xrdp//libcommon.la -lcrypto -lpthread'

# Version information for libvnc.
current=0
age=0
revision=0

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib/xrdp/'

Thanks,

Emre

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to