libexpat Problems on Gentoo

Discussion in 'Parallels Remote Application Server' started by mstanisz, Jan 29, 2007.

  1. mstanisz

    mstanisz Guest

    Hi,

    I've been doing research on the Gentoo and 2X forums, and I can't seem to fix the problem with libexpat. I am running Gentoo AMD64, and I have tried to installed both the rpm and source tar file, but when I go to run the application server client, I get the following error:

    Code:
    ./appserverclient: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory
    Here's my /usr/lib directory for libexpat:

    Code:
    MATT-LAPTOP applicationserverclient # ls -la /usr/lib/libexpat*
    -rw-r--r-- 1 root root 250636 Jan 29 17:28 /usr/lib/libexpat.a
    -rw-r--r-- 1 root root    795 Jan 29 17:28 /usr/lib/libexpat.la
    lrwxrwxrwx 1 root root     17 Jan 29 17:28 /usr/lib/libexpat.so -> libexpat.so.1.5.0
    lrwxrwxrwx 1 root root     11 Jan 28 21:51 /usr/lib/libexpat.so.0 -> libexpat.so
    lrwxrwxrwx 1 root root     17 Jan 29 17:28 /usr/lib/libexpat.so.1 -> libexpat.so.1.5.0
    -rwxr-xr-x 1 root root 141760 Jan 29 17:28 /usr/lib/libexpat.so.1.5.0
    
    I am trying this as root, and still getting nothing. I've done a rev-dep rebuild and installed all 65 packages again, but I still get the same error.

    What could the problem be? Thanks!

    Matt
     
  2. geoffreys1

    geoffreys1 Forum Maven

    Messages:
    532
    I suspect that the link is not working correctly.

    Can you create it to point to libexpat.so?
     
  3. rafelbev

    rafelbev Guest

    Do you intend to write an ebuild for the package ?
     
  4. mstanisz

    mstanisz Guest

    I changed the link, still get the same error.


    I wasn't planning on it, but I might consider doing it if we could figure out how to fix this first.
     
  5. rafelbev

    rafelbev Guest

    I just quickly tried to get it work on my amd64 gentoo box:

    ln -s /emul/linux/x86/usr/lib/libexpat.so.0 /usr/lib/libexpat.so.1

    Works on Gentoo too.
     
  6. mstanisz

    mstanisz Guest

    Do you know what emul package you emerged to get libexpat in your /emul directory? I linked mine from /usr/lb to /emul/linux/x86/usr/lib, but it looks like to had it already installed there, so I better delete the link I made and emerge that pacakge. Thanks!

    Matt
     
  7. mstanisz

    mstanisz Guest

    I got it working! Here's the trick that worked for me:

    Code:
    ln -s /usr/lib32/libexpat.so.0.5.0 libexpat.so.1
    Now I can get the appserverclient program to run and display a list of commands:

    Code:
    Usage: ./appserverclient options
    
    General options:
       -m: operating mode
           2G for 2X Application Server gateway access client(default)
           2D for 2X Application Server direct access client
           AL for 2X Application Server application list
           MS for Microsoft Terminal Server client
           MF for Microsoft Terminal Server fullscreen client
       -s: server[:port] (default port is 80 for 2G and 2D modes and 3389 for MS and MF modes)
       -u: user name
       -p: password
       -d: domain
       -a: application to start
       -f: working folder
       -i: 2ax shortcut file
           2ax shortcut files available through 2X Application Server web interface, and include published application settings. You still need to specify user login credentials with options -u, -p, -d
    
    RDP options:
       -w: desktop width (default: 1024)
           You can pass zero to make it equal to current workarea width
           You can pass negative value to set it as percentage of current workarea width
           (this parameter can be overwritten by server settings in 2D and 2G modes)
       -h: desktop height (default: 768)
           You can pass zero to make it equal to current workarea height
           You can pass negative value to set it as percentage of current workarea height
           (this parameter can be overwritten by server settings in 2D and 2G modes)
       -c: connection color depth in bits (default: 24 bits)
       -e: RDP experience one or more ORed value(s) from:
           0x6F to disable everything (default)
           0x01 to disable wallpapers
           0x02 to disable full window drag
           0x04 to disable menu animations
           0x08 to disable theming
           0x20 to disable cursor shadow
           0x40 to disable cursor blinking
           0x00 to disable nothing
       -t: maximum network timeout in seconds (default: 5 seconds)
       -l: locale identifier in HEX format (default: 0x0409 - English (United States))
       -C: use XCursor extension for colored pointers
    
    Device options:
       -P: redirect printer(s) (this flag can be repited), can be
           "printcap" to use printers from '/etc/printcap'
           "printername" to use default printer driver
           "printername=drivername" to specify driver name also
       -S: redirect sound, can be
           "off" to disable sound (default)
           "local"= quality to bring it to the client with:
                    "normal" for normal quality
                    "good" for good quality (default)
                    "verygood" for very good quality
           "remote" to leave it on the server
    
    Other options:
       -o: output mode
           1 - print return code to stderr
           2 - print return message to stderr
           3 - print return code and message to stderr
       -v: print version info
       -?: to get help information
    
    Is there a way to get a GUI list of applications? I'm guessing not, but just wondering. Thanks guys for all your help :wink: and I hope that other people with Gentoo AMD64 problems see this.
     
  8. rafelbev

    rafelbev Guest

    You can post it on the Gentoo forums if you wish. To get a list of apps I issue the '-m AL' parameter and grep for 'InName'
     
  9. paulkoan

    paulkoan Guest

    Well... I got here after having the same problem.

    Code:
    $ ls -la libexpat.so.1
    lrwxrwxrwx 1 root root 28 2007-05-01 21:30 libexpat.so.1 -> /usr/lib32/libexpat.so.0.5.0
    This is on amd64, and I get the same
    Code:
    appserverclient: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory
    I have all the sensible emuls installed, and yet

    Code:
     /emul/linux/x86/usr/lib/libexpat.so.0 
    is a link to a non existant
    Code:
    libexpat.so.0.5.0
    in the same folder...

    Any ideas?
     
  10. paulkoan

    paulkoan Guest

    Right. It looks like linking to the /lib32/libexpat.so.* is the correct approach for running a 32bit app on amd64.

    I have both Skype and VMWare-server-console both running using the 32 bit libraries for expat, without any issues.

    However, the appserverclient binary looks for libexpat.so.1, which is in /usr/lib and symlinked to /lib32/libexpat.so.5 - the same library as vmware and skype are using, and yet it doesn't work.

    It gives the message above - cannot no such file or directory. I suspect this is a different error message to the error actually found.

    Is there any way to get more info out of appserverclient to see what is going wrong?

    Thanks,

    Paul
     
  11. rafelbev

    rafelbev Guest

    This is the current listing on my amd64 gentoo box:

    Code:
    lrwxrwxrwx 1 root root     17 Mar  5 11:12 ./usr/lib32/libexpat.so -> libexpat.so.0.5.0
    lrwxrwxrwx 1 root root     17 Mar  5 11:12 ./usr/lib32/libexpat.so.0 -> libexpat.so.0.5.0
    -rwxr-xr-x 1 root root 126408 Mar  5 11:12 ./usr/lib32/libexpat.so.0.5.0
    lrwxrwxrwx 1 root root     13 Mar  1 10:04 ./usr/lib32/libexpat.so.1 -> libexpat.so.0
    -rw-r--r-- 1 root root 249956 Feb 27 11:39 ./usr/lib64/libexpat.a
    -rw-r--r-- 1 root root    708 Feb 27 11:39 ./usr/lib64/libexpat.la
    lrwxrwxrwx 1 root root     17 Feb 27 11:39 ./usr/lib64/libexpat.so -> libexpat.so.0.5.0
    lrwxrwxrwx 1 root root     17 Feb 27 11:39 ./usr/lib64/libexpat.so.0 -> libexpat.so.0.5.0
    -rwxr-xr-x 1 root root 141384 Feb 27 11:39 ./usr/lib64/libexpat.so.0.5.0
    lrwxrwxrwx 1 root root     17 Jan 30 17:26 ./usr/lib64/libexpat.so.1 -> libexpat.so.0.5.0
     
  12. paulkoan

    paulkoan Guest

    Well I'll be jiggered.

    The
    Code:
    lrwxrwxrwx 1 root root     13 Mar  1 10:04 ./usr/lib32/libexpat.so.1 -> libexpat.so.0
    was the one I had missing. I had a link for this in /usr/lib, but it was ignored...

    Now why is that? Why aren't the libs in /usr/lib considered when loading?

    Thanks for your help by the way...
     

Share This Page