[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [gftp] compile fail on Sparc Solaris 8 machine
Thanks for the info., I think I am almost there.
I did download the readline and installed, but now I am getting the following
error when compile gftp. Any ideas?
gcc -g -O2 -o gftp-text gftp-text.o ../../lib/libgftp.a -L/usr/local/lib
-lglib -lsocket -lnsl -lm -lreadline -lcurses
Undefined first referenced
symbol in file
ld: fatal: Symbol referencing errors. No output written to gftp-text
collect2: ld returned 1 exit status
Thanks in advance.
Adam Stein wrote:
Has anyone compile successfully on Sparc Solaris 8 machine?
Yup. Copmiled v2.0.15 using gcc 3.3.1 on a machine running Solaris 8.
The 2 issues I have is:
1) #warning major macro, what is it?
2) readline.h is missing
There is a header file in gftp (lib/gftp.h) that defines two macros if they
don't exist on the target platform, 'major' and 'minor'. The warnings you are
seeing refer to the fact that since these macros are NOT defined in a Solaris
system header file, gftp will define them. I ignored the warnings. Gftp seems
to work ok. There are major() and minor() macros defined in
'/usr/include/sys/sysmacros.h', but I don't know if that's performing the same
function as the gftp macros.
Gftp requires the readline package be installed. This supplies the 'readline.h'
file you need. You can download the source to readline at:
Hope that helps.
Adam Stein @ Xerox Corporation Email: firstname.lastname@example.org
Disclaimer: All views expressed
here have been proved to be my own. [http://www.csh.rit.edu/~adam/]