home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / XARCHIE-.1 / PROBLEMS < prev    next >
Encoding:
Text File  |  1993-04-22  |  10.8 KB  |  252 lines

  1.          Frequently-noted Problems concerning Xarchie
  2.                    
  3.                George Ferguson
  4.               ferguson@cs.rochester.edu
  5.  
  6.                   23 Apr 1993
  7.  
  8. The following list includes problems that I have heard about
  9. repeatedly, and which I am tired of hearing about. Sometimes there's a
  10. fix, sometimes not. This list will no doubt continue to grow. I'd be
  11. happy to receive contributions that address any of these issues. I
  12. will, at best, ignore anyone who mails me about them without useful
  13. suggestions.
  14.  
  15. CONTENTS:
  16. --------
  17.  1. The configure script crashes when it tries to invoke sed.
  18.  2. I don't have xmkmf
  19.     OR I don't have imake
  20.     OR xmkmf didn't work.
  21.  3. I get the following messages from my linker during the final link
  22.     of xarchie:
  23.     ld: Undefined symbol
  24.        _sin
  25.        _cos
  26.        _pow
  27.        _floor
  28.        _get_wmShellWidgetClass
  29.        _get_applicationShellWidgetClass
  30.  4. I get the following message from my linker:
  31.     ld: Undefined symbol 
  32.        _XtStrings 
  33.  5. The linker complains about -lresolv.
  34.  6. I can't see anything in the Text widgets, but xarchie appears to
  35.     be doing something.
  36.  7. Xarchie built fine, but I always get ``Can't resolve hostname''
  37.     errors when I try to query.
  38.  8. Xarchie built fine, but I never get a reply the server. It always
  39.     times out.
  40.  9. I see some #ifdef's for VMS. Can I run xarchie on VMS and/or
  41.     DecWindows?
  42. 10. How can I run xarchie through a firewall?
  43. 11. How do I link under Solaris 2.1 and OpenWindows 3.1? (May apply
  44.     to other combinations of Solaris and OW.)
  45. 12. Why does Xarchie sometimes crash when I scroll the Help?
  46. 13. The list of files in the FileChooser widgets don't seem to get
  47.     displayed properly all the time.
  48. 14. The icons don't change like the manpage says they should.
  49. 15. I get what seems to be an endless stream of "select failed" messages.
  50.  
  51. QUESTIONS and ANSWERS:
  52. ---------------------
  53.  1. The configure script crashes when it tries to invoke sed. What can
  54.     I do about it?
  55.  
  56.     The configure script (generated automatically by autoconf from
  57.     config.in and included in the distribution ready-to-run) puts
  58.     together a long sed command to effect the appropriate
  59.     substitutions to create config.h from config.h.in. You should
  60.     probably get a new version of sed, like maybe GNU sed. For
  61.     xarchie, you can to copy config.h.in to config.h and make the
  62.     appropriate definitions for your system.
  63.  
  64.  2. "I don't have xmkmf" OR "I don't have imake" OR "xmkmf didn't
  65.     work".
  66.  
  67.     See item (A) in the INSTALL file.
  68.  
  69.  3. I get the following messages from my linker during the final link
  70.     of xarchie:
  71.     ld: Undefined symbol
  72.        _sin
  73.        _cos
  74.        _pow
  75.        _floor
  76.        _get_wmShellWidgetClass
  77.        _get_applicationShellWidgetClass
  78.  
  79.     Well, from what I can gather, this is a problem for some flavours
  80.     of OpenWindows. As a quick check would show, xarchie doesn't use
  81.     any of these functions. The first functions can be found by adding
  82.     "-lm" to the LOCAL_LIBRARIES definition in the Imakefile,
  83.     something that should have been looked after by the installation
  84.     of imake/xmkmf. The other functions I have never heard of. Your
  85.     one hope is that some people have reported that the resulting
  86.     "xarchie" file is still executable despite the errors. Try it and
  87.     see.
  88.  
  89.     >From: Harald Tveit Alvestrand <harald.t.alvestrand@delab.sintef.no>
  90.     >
  91.     >It turns out that the problem occurs with X11R4 on SunOS 4.1.2 and
  92.     >later. SUN "fixed a bug" in the linker that made it conform to the
  93.     >documentation (AARRGGHH), which, as a side effect, wrecked linking
  94.     >to X11R4. 
  95.     >
  96.     > There are only 2 solutions that I know of:
  97.     > - Upgrade to X11R5 libraries, which don't have the problem
  98.     > - Add the following line to the Imakefile:
  99.     >     LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) -Bstatic
  100.  
  101.     Your mileage may vary. I suggest doing this if only if necessary
  102.     (that is, if your executable isn't executable).
  103.  
  104.  3. I get the following message from my linker:
  105.     ld: Undefined symbol 
  106.        _XtStrings 
  107.  
  108.     XtStrings is an array used in <X11/StringDefs.h>. It was introduced
  109.     in R5 to allow internationalization of the resource names by
  110.     storing, eg, the name XtNstring (that is, the C constant)
  111.     as
  112.     #define XtNstring ((char*)&XtStrings[733])
  113.     rather than
  114.     #define XtNstring "string"
  115.     The choice is controlled by a cpp constant XTSTRINGDEFINES used in
  116.     the above-mentioned header file.
  117.  
  118.     I would say that whoever installed your X botched it, since they
  119.     apparently didn't define XTSTRINGDEFINES, but also didn't arrange
  120.     for the string array itself to get compiled into the library.
  121.     You could try recompiling with -DXTSTRINGDEFINES added to DEFINES
  122.     in the Imakefile.
  123.  
  124.  5. The linker complains about -lresolv.
  125.  
  126.     From the INSTALL file:
  127.     >One fairly common problem is that configure will decide that you
  128.     >need to link with -lresolv and define NEED_LRESOLV in config.h.
  129.     >This happens when the test program resolv.c either doesn't compile
  130.     >or compiles but doesn't work properly. Normally, this means that
  131.     >your system requires linking with libresolv.a to force DNS
  132.     >nameserver lookups. If you don't have /usr/lib/libresolv.a (or some
  133.     >local variant), or if resolv.c compiles and runs properly, you
  134.     >shouldn't define NEED_LRESOLV.
  135.  
  136.  6. I can't see anything in the Text widgets, but xarchie appears to
  137.     be doing something.
  138.  
  139.     This seems to be a problem with SGI systems. I believe that the
  140.     problem was/is that the "fixed" font used in version 1.3 as a
  141.     presumably well-chosen default wasn't in fact well-chosen. In fact,
  142.     it seemed to be 0 points, or something equally small.
  143.  
  144.     As of version 2.0, it is easier to change the fonts used by xarchie
  145.     without editing all the definitions in the Xarchie.ad file. The two
  146.     resources "xarchieFont" and "xarchieBoldFont" are defined near the
  147.     top of that file, and the resource converter for fontnames has been
  148.     modified to convert a request for font "xarchieFont", for example,
  149.     into the corrresponding font. That is, a level of indirection was
  150.     introduced so you'd only have to change one resource entry to
  151.     affect all fonts in the application. The default was also chosen to
  152.     be something that will hopefully exist and be readable on all
  153.     systems. I hope to never hear about this again.
  154.  
  155.  7. Xarchie built fine, but I always get ``Can't resolve hostname''
  156.     errors when I try to query.
  157.  
  158.     This means that your C library doesn't use DNS hostname lookup by
  159.     default. You should have uncommented the definition of RESOLV_LIB
  160.     in the Imakefile. See the file INSTALL for details. You can further
  161.     test this by compiling the file "resolv.c" and running it. If you
  162.     get an error, then you need -lresolv.
  163.  
  164.  8. Xarchie built fine, but I never get a reply from the server. It
  165.     always times out.
  166.  
  167.     The Prospero protocol that underlies xarchie requires that UDP
  168.     traffic be enabled on your system. If you get nothing but timeouts
  169.     from dirsend, then either the server is just too heavily loaded or
  170.     UDP traffic is disabled. To test the latter hypothesis, compile
  171.     "udp.c" and follow the directions at the top of the file. If UDP
  172.     traffic is in fact disabled, talk to to your syadmins. Otherwise,
  173.     if you're *sure* it isn't just a loaded server, report the
  174.     situation in detail.
  175.  
  176.  9. I see some #ifdef's for VMS. Can I run xarchie on VMS and/or
  177.     DecWindows?
  178.  
  179.     No. The #ifdef's are in parts of the code shared with the
  180.     standalone archie client written by Brendan Kehoe, which does,
  181.     apparently, run under VMS.
  182.  
  183. 10. How can I run xarchie through a firewall?
  184.  
  185.     I don't know. You need to enable UDP traffic, as described above.
  186.     I would suggest contacting some of the Prospero or Xarchie people
  187.     listed elsewhere in the documentation. I include below the
  188.     following message from comp.unix.wizards, in case it's useful:
  189.  
  190.     >From: wietse@wzv.win.tue.nl (Wietse Venema)
  191.     >Subject: Re: FTP & TELNET Through a fewall
  192.     >Date: 11 Feb 93 21:35:10 GMT
  193.     >
  194.     >The socks (socket call redirection library) comes with an example of an
  195.     >ftp proxy client. Applying the same operation to a telnet client (using
  196.     >freely-available bsd sources) should be relatively easy.
  197.     >socks can be found on s1.gov in /pub/socks.tar.Z. It is described in
  198.     >the proceedigs of the 3rd UNIX Security Symposium last September.
  199.  
  200. 11. How do I link under Solaris 2.1 and OpenWindows 3.1? (May apply
  201.     to other combinations of Solaris and OW.)"
  202.  
  203.     >From: simon@lia.di.epfl.ch (Simon Leinen)
  204.     >
  205.     >Under SunOS 5.1 with OpenWindows 3.1, one has to manually add
  206.     >"-lsocket" and "-lnsl" to the linker command; I think this is because
  207.     >the OW3.1 config files don't handle SVR4 very well.
  208.  
  209.     That is, add "-lsocket -lnsl" to the definition of LOCAL_LIBRARIES
  210.     and re-run xmkmf.
  211.  
  212. 12. Why does Xarchie sometimes crash when I scroll the Help?
  213.  
  214.     I don't know. At least on X11R5p20, a stack trace shows that the
  215.     error is occurring in XtCallCallbacks() called from
  216.     XawPanedAllowResize(). Problem is, I don't see how that can
  217.     happen, since the latter function simply sets a flag. A fix would
  218.     be welcome.
  219.  
  220. 13. The list of files in the FileChooser widgets don't seem to get
  221.     displayed properly all the time.
  222.  
  223.     This seems like an Xaw bug, but is difficult to repeat in
  224.     isolation. Refreshing the window (eg., iconify/deiconify or
  225.     scrolling up/down) clears it up. Fixes are welcome.
  226.  
  227. 14. The icons don't change the way the manpage says they should.
  228.  
  229.     Icons are a tricky business, since they involve the application
  230.     and the window manager and whatever "look and feel" they all feel
  231.     like imposing. All I can say is that simply set the XtNiconName
  232.     and XtNiconPixmap resources for the toplevel xarchie shell. I
  233.     trust the Intrinsics to do the right thing with respect to ICCCM
  234.     protocols and the like. Your window manager may not support icons.
  235.     Your version of the Intrinsics may not do the right thing. Too
  236.     bad.
  237.  
  238. 15. I get what seems to be an endless stream of "select failed" messages.
  239.  
  240.     These messages are coming from the heart of the X11 event dispatch
  241.     loop. What it probably means is that one of the various file
  242.     descriptors registered with the server for asynchronous
  243.     notification (for Prospero or FTP) is no longer valid but hasn't
  244.     been cleared from X's select mask. Unfortunately, the X code
  245.     simply prints a message and loops, which means that select() will
  246.     fail again, etc., ad nauseam.
  247.  
  248.     Please do not report this problem without the following
  249.     information! You should add a line `#define DEBUG' before the
  250.     `#include "debug.h"' in file ftp.c and then rebuild xarchie.
  251.     Include the resulting trace (from stderr) with your bug report.
  252.