annotate README @ 64:29128554eb86

2002-11-23 Brian Masney <masneyb@gftp.org> * lib/sshv2.c - added more error checking so that the user won't get disconnected if they enter files or directories that don't exist
author masneyb
date Sat, 23 Nov 2002 14:34:25 +0000
parents 8b1883341c6f
children c226809c03c8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1 gFTP README
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2 -----------
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4 [Requirements]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6 * gtk+ 1.2.3 or higher. You will also need to download glib as well. You can
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7 download them directly from my website or from the gtk+ ftp site at
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
8 ftp://ftp.gtk.org/pub/gtk/v1.2.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
9 * X11R6 or later.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
10 * pthread libraries. If you have a libc6 based machine (Debian >= 2.x, Red Hat
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
11 >= 5.x), you should already have the pthread libraries installed. If you
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
12 have a libc5 based machine (Slackware < 7.0), you will need to install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
13 LinuxThreads from my website. Also, if you don't have LinuxThreads installed,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
14 you most likely don't have thread safe X libraries. You must have thread
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
15 safe X libraries or gFTP will constantly crash. You can download some thread
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
16 safe X libraries off my website. If you are on a platform other than Linux,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
17 you may want to take a look at the FSU Pthreads library at
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
18 http://www.informatik.hu-berlin.de/~mueller/pthreads.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
19 * I would recommend running X in at least 800x600 mode.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
20 * pkgconfig 0.9.0 or newer. pkgconfig is available at
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
21 http://www.freedesktop.org/software/pkgconfig.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
22
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
23 [Installation Instructions]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
24
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
25 * If you do not want to compile this program yourself, you can check my
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
26 webpage for some precompiled Linux binaries.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
27 * If you are compiling gFTP yourself, extract the files from the distribution
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
28 with tar -zxvf gftp-<version>.tar.gz
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
29 * Go to the gftp-<version> directory and type
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
30
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
31 ./configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
32 make
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
33
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
34 The configure script will generate a Makefile for your machine, and make
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
35 will compile a binary for your machine. By default, when you run
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
36 configure, it will install gFTP with the prefix /usr/local, so the gFTP
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
37 binary will be /usr/local/bin/gftp. You can change this by typing
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
38 configure --prefix=/usr, and it will then install the gFTP binary in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
39 /usr/bin/gftp.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
40 * If the compile suceeds without any errors, you can type make install to
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
41 install the binary. This will also copy some necessary
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
42 files to <install prefix>/share/gftp. If you do not have root on your
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
43 machine to install these files, copy the contents of the docs/sample.gftp/
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
44 directory to ~/.gftp.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
45 * [OPTIONAL] If you compiled gFTP on a platform other than Linux, could you
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
46 please send me your OS name/version and I will post on my website
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
47 the operating systems gFTP has been successfully compiled on.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
48 * You may want to glance at the USERS-GUIDE file that comes with this
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
49 distribution. It contains a little bit of information about how to use it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
50
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
51 [Frequently Asked Questions]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
52
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
53 Here is a list of frequently asked questions about gFTP. You can always find
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
54 the latest version of this FAQ off my website.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
55
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
56 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
57
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
58 Q: I'm having problems with installing the RPMs off of your website.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
59
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
60 A: If the RPM installs fine, but when you run gFTP, if you get an error about the symbol GCC_3.0 not found, then you need to recompile the RPM. Or if you try to install the RPM and you get an error about unresolved dependency libreadline.so.1 and you have the readline RPM installed, you'll also have to get a different gFTP RPM. The RPMs on my website I built on a Debian GNU/Linux i386 box with gcc 3.0.3.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
61
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
62 I would first suggest checking your distributions development tree (RedHat Rawhide or Mandrake Cooker for example), they probably have a RPM of the latest gFTP there. If not, download the SRC RPM and type rpm -i gftp-version-1.src.rpm. It will build a RPM and put it in /usr/src/redhat/RPMS/arch or /usr/src/rpm/RPMS/arch (arch is i386, sparc, axp, etc...)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
63
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
64
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
65 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
66
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
67 Q: What systems is gFTP known to run on?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
68
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
69 A: I develop gFTP on a Debian GNU/Linux machine. Here is a list of other
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
70 platforms I have received successful compile reports on:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
71
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
72 * FreeBSD/NetBSD/OpenBSD/BSDI
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
73 * Solaris
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
74 * IRIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
75 * Digital UNIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
76 * HP/UX 11
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
77
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
78 If you got gFTP to compile on a platform not listed here, please email me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
79 about it and I'll add it to this list. If you are having problems compiling
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
80 gtk+ or gFTP on another platform, try using GNU make instead of your vendor
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
81 supplied make. Most of the vendor supplied makes are brain-dead.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
82
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
83 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
84
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
85 Q: I'm having problems getting SSH2 transfers to work. I keep getting the error:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
86 Error: Message size XXXXXXXX too big from server
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
87
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
88 A: What probably is the problem, sftp-server isn't in your path on the remote
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
89 server. When you try to connect to the remote server, you'll see the command
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
90 gFTP is trying to run, and it'll look something like:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
91
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
92 ssh -e none -l username hostname "echo -n xsftp ; sftp-server"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
93
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
94 Try running this command. If you get a prompt asking:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
95
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
96 The authenticity of host 'hostname (###.###.###.###)' can't be established.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
97 RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
98 Are you sure you want to continue connecting (yes/no)?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
99
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
100 Tell it yes. gFTP won't even try to answer this question for you at the
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
101 moment. Then, if you get the following output:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
102
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
103 Enter passphrase for key '/home/brian/.ssh/id_dsa':
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
104 xsftp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
105 bash: sftp-server: command not found
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
106
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
107 You'll have to set the path to the sftp-server program. Alternatively you
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
108 could go under FTP->Options->SSH and enable Use sftp subsys. If you enable
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
109 this, then you don't have to know the remote path to your sftp executable.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
110 But if you enable this, gFTP won't be able to send your password over to
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
111 the ssh client. So if you're not using ssh-agent, then ssh will spawn the
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
112 ssh-askpass program to grab your password.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
113
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
114 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
115
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
116 Q: What is the difference between the SSH and SSH2 protocols?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
117
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
118 A: The SSH protocol uses sftp >= 0.7 from http://www.xbill.org/sftp. SSH2 uses
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
119 the native file transfers found in the commercial SSH2 and in later versions
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
120 of OpenSSH. The SSH2 protocol uses the sftp-server executable on the remote
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
121 host and the SSH protocol uses the sftpserv executable.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
122
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
123 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
124
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
125 Q: How do I force running the text or gtk+ version of gFTP?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
126
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
127 A: To run the text port, you can type gftp-text or to run the gtk+ port, you
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128 can run the gftp-gtk. The gftp command is just a shell script that sees
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129 if your DISPLAY variable is set, and if so it'll run the appropriate version
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
131 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
132
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
133 Q: Is there a way for gFTP to download a bunch of files/directories and then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
134 exit when it's completed?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
135
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
136 A: Yes, the text port of gFTP supports this well. You can type:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
137
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
138 gftp-text -d ftp://ftp.somesite.com/someplace
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
140 If someplace is a directory, it'll automatically download all its subdirs
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
141 as well. If you want to transfer a file through ssh instead of ftp, just
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
142 change the ftp:// to ssh://
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
143
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
144 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
145
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
146 Q: In the GTK+ version of gFTP, do I have to enter a port, username and password
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
147 to connect to a ftp server?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
148
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
149 A: No you don't. If you leave the port blank, it'll default to the default port
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
150 for the protocol you selected (port 21 for FTP). If you leave the username
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
151 blank, it will default to logging in as anonymous
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
152
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
153 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
154
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
155 Q: How do I set up my HTTP Proxy server?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
156
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
157 A: Go under FTP->Options and hit the FTP tab. Enter HTTP as the proxy type
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
158 and fill in your proxy server info on that screen. Then hit the HTTP tab
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
159 and enter your same proxy server info there.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
160
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
161 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
162
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
163 Q: When gFTP tries to get the remote directory listing, it sends LIST -L, but
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
164 the remote server sends an error back
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
165
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
166 A: Go to FTP->Options and turn off resolve remote symlinks. gFTP will then send
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
167 LIST instead of LIST -L. You should only have to do this if you are
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
168 connecting to Novell servers.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
169
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
170 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
171
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
172 Q: When gFTP tries to get the remote directory listing, I get an error that
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
173 says: Cannot create a data connection: Connection refused
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
174
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
175 A: Go under FTP->Options and turn off passive file transfers. Instead of
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
176 sending the PASV command to open up the data connection on the server side,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
177 the data connection will be opened up on the client side, and the PORT
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
178 command will be sent to the server instead.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
179
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
180 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
181
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
182 Q: When I try to compile gFTP, I get some errors. One of them is undefined
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
183 symbol LC_ALL
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
184
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
185 A: Try typing make distclean ; configure --with-included-gettext and it
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
186 should compile fine then.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
187
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
188 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
189
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
190 Q: How do I report bugs in gFTP?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
191
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
192 A: If you find ANY bugs in gFTP, please email them to me at
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
193 masneyb@gftp.org. If there is a newer version of gFTP available,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
194 please try it first before you send me a bug report. If the problem
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
195 exists in that version, feel free to email me about it. When sending in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
196 bug reports, please try to be as descriptive as possible. Send me what
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
197 OS/version you are running, what compiler you are compiling with, and any
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
198 other important information. If you get gFTP to crash, it would be very
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
199 helpful if you could send me a backtrace. If you do not know how to do a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
200 backtrace, download the source code from my website. Edit the Makefile,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
201 and make sure that -g appear in the CFLAGS variable. Then recompile gFTP,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202 but do NOT do a make install because it will install a stripped binary in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
203 $PREFIX/bin. Then type gdb ./gftp. Once you have a (gdb) prompt, type r.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
204 Once you get gFTP to crash, go back to that terminal window, and type bt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
205 and send me that output in an email message along with a short description
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
206 of how it happened.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
207
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
208 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
209
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
210 Q: I downloaded a binary off the internet and everytime I run gFTP I get an
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
211 error saying: undefined symbol :__register_frame_info
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
212
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
213 A: ObiTuarY <obituary@freshmeat.net> says:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
214
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
215 "This happens when you compile a library with egcs. The library then has
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
216 the __register_frame_info symbol. If you link a program to it, it will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
217 require this symbol. Now if you have the exact same library compiled with
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
218 gcc 2.7.2.3 it won't have this symbol. The thing about glibc 2.1 under Red
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
219 Hat 6 is it was compiled with egcs and glibc 2.0.x under Red Hat 5.x was
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
220 compiled with gcc 2.7.2.3, therefore it's not an incompatibility between
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
221 glibc 2.0.x and 2.1.x. What some people do for that is they get the .o file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
222 of egcs with __register_frame_info in it and link into the program so it's
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
223 always there, that way it works with libs compiled with egcs or gcc 2.7.2.3.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
224 (in /usr/lib/gcc-lib/i386-*-linux/egcs-*/ )"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
225
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
226 Another alternative, is to recompile gFTP on your machine, or you can
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
227 download some RPMs off my website that were compiled against Red Hat 5.2.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
228
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
229 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
230
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
231 Q: I upgraded to a newer version of gFTP and now I am getting some warnings
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
232 about some config file lines not having enough arguments, and it cannot find
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
233 html.xpm.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
234
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
235 A: This is from upgrading from a very old version of gFTP to a newer version.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
236 I removed some icons from the distribution (0.20 to 0.21). Edit your
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
237 ~/.gftp/gftprc file. At the bottom of the file, there are some ext= lines.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
238 Some of them have html.xpm, rpm.xpm and pdf.xpm. Remove these lines and gFTP
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
239 will startup fine. Don't worry about fixing he warnings...they will go away
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
240 themselves.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
241
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
242 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
243
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
244 Q: Where does gFTP store it's options?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
245
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
246 A: gFTP will automatically create a ~/.gftp directory when it is first run.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
247 Your config file is ~/.gftp/gftprc, and this is where all of gFTP's
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
248 settings are stored. The config file is well commented, so take a glance
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
249 at it and see if there is anything you want to change. Your bookmarks are
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
250 stored in the file ~/.gftp/bookmarks
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
251
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
252 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
253
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
254 Q: I am trying to compile your program and I get some parse errors before
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
255 GdkDragContext. What's wrong?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
256
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
257 A: You have an older version of gtk installed on your system. If you are
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
258 using Red Hat or Debian Linux, simply remove the gtk and glib devel
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
259 packages. You can still leave the gtk 1.0 libraries installed.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
260
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
261 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
262
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
263 Q: I am having a hard time using the drag and drop in gFTP. How do I use it?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
264
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
265 A: To drag from the file listboxes in gFTP, you have to drag with button #3.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
266 On a two button mouse, you have to hold down both buttons. For this to work
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
267 tho, you have to edit your XF86Config file, and go to the Pointer section.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
268 You have to make sure Emulate3Buttons is in there. Here's the section out of
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
269 my config file:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
270
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
271 Section "Pointer"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
272 Protocol "PS/2" # This will depend on your mouse
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
273 Device "/dev/mouse" # This will also depend on your mouse
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
274 Emulate3Buttons # You need this for a 2 button mouse
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
275 EndSection
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
276
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
277 *******************************************************************************
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
278
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
279 Q: I have a libc 5 based machine and everytime I run gFTP it instantly crashes.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
280 I get an error something like: Gdk-ERROR **: an x io error occurred
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
281 What's wrong?
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
282
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
283 A: Your X libraries are not thread safe. They must be compiled with
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
284 -D_REENTRANT. You can either recompile your X libraries, or you can
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
285 download some from my webpage at
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
286 http://www.gftp.org/XFree86-libs-3.3-2_threading.i386.tgz
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
287
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
288
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
289 Brian Masney <masneyb@gftp.org>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
290 gFTP Official Webpage - http://www.gftp.org/
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
291