[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wput fails to build on Solaris 7
It seems as though wput needs to be linked with some socket library?
I don't have any experience with solaris, so i wouldn't know which one it
would be...
Probably running gcc with a switch link -lsocket might help.
Regards,
Hagen
Am Freitag, 21. Januar 2005 15:51 schrieben Sie:
> Hagen Fritsch wrote:
> > Thank your for this hint. It seems as though it is not easily possible to
> > determine the terminal-width on Solaris.
>
> [snip]
>
> Thanks, that worked, but I hit another problem during linkage.
>
> Environment as before, but with gnu binutils 2.11.2 (latest available
> from sunfreeware.com):
>
> gcc -o ../wput wput.o ftp.o utils.o progress.o socket.o queue.o ftp-ls.o
> getopt/getopt.o getopt/getopt1.o
> Undefined first referenced
> symbol in file
> socket socket.o
> recv socket.o
> gethostbyname socket.o
> accept socket.o
> send ftp.o
> bind socket.o
> getsockname socket.o
> listen socket.o
> connect socket.o
> ld: fatal: Symbol referencing errors. No output written to ../wput
> collect2: ld returned 1 exit status
> make[1]: *** [wput] Error 1
> make[1]: Leaving directory `/usr/local/esparto/build/wput/src'
> make: *** [all] Error 2
>
> NB: No warnings earlier in the compile, except a few "subscript has type
> 'char'" warnings which I doubt are relevant. :-)
>
> I can't see any relevant warnings in the configure output either, but
> for what it's worth:
>
> -bash-3.00$ ./configure
> Debug Information enabled
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking how to run the C preprocessor... gcc -E
> checking for egrep... egrep
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... no
> checking for unistd.h... yes
> checking sys/termio.h, usability... no
> checking sys/termio.h, presence... no
> checking for sys/termio.h,... no
> checking sys/winsize.h usability... no
> checking sys/winsize.h presence... no
> checking for sys/winsize.h... no
> checking getopt.h usability... no
> checking getopt.h presence... no
> checking for getopt.h... no
> checking gnugetopt/getopt.h usability... no
> checking gnugetopt/getopt.h presence... no
> checking for gnugetopt/getopt.h... no
> checking for long long... yes
> checking for unsigned long long... yes
> checking for int... yes
> checking size of int... 4
> checking for short... yes
> checking size of short... 2
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating src/Makefile
> config.status: creating config.h
--
Mit besten Grüßen
Hagen http://itooktheredpill.dyndns.org
GPG:D40FD26F mailto:itooktheredpill@gmx.de