LIBS="-lnsl -lsocket" make unix

On Wed, Feb 20, 2008 at 11:41 PM, David Huffman <[EMAIL PROTECTED]> wrote:
> According the the man page for cc, the warnings are on my default.
>  Adding the #define got me much further. Here is the current output:
>
> # make unix
>  cc -c  string.c -o string.o
>  cc -c  shttpd.c -o shttpd.o
>  cc -c  log.c -o log.o
>  cc -c  auth.c -o auth.o
>  cc -c  md5.c -o md5.o
>  cc -c  cgi.c -o cgi.o
>  cc -c  config.c -o config.o
>  cc -c  io_ssi.c -o io_ssi.o
>  cc -c  io_file.c -o io_file.o
>  cc -c  io_socket.c -o io_socket.o
>  cc -c  io_ssl.c -o io_ssl.o
>  cc -c  io_emb.c -o io_emb.o
>  cc -c  io_dir.c -o io_dir.o
>  cc -c  io_cgi.c -o io_cgi.o
>  ar -r libshttpd.a string.o shttpd.o log.o auth.o md5.o cgi.o config.o
>  io_ssi.o  io_file.o io_socket.o io_ssl.o io_emb.o io_dir.o io_cgi.o &&
>  ranlib libshttpd.a
>  ar: creating libshttpd.a
>  cc  compat_unix.c standalone.c \
>         -o shttpd  -L. -lshttpd
>  compat_unix.c:
>  standalone.c:
>  Undefined                       first referenced
>   symbol                             in file
>  bind                                ./libshttpd.a(shttpd.o)
>  recv                                ./libshttpd.a(io_socket.o)
>  send                                ./libshttpd.a(io_socket.o)
>  dlsym                               ./libshttpd.a(config.o)  (symbol
>  belongs to implicit dependency /lib/libdl.so.1)
>  getsockname                         ./libshttpd.a(shttpd.o)
>  accept                              ./libshttpd.a(shttpd.o)
>  dlopen                              ./libshttpd.a(config.o)  (symbol
>  belongs to implicit dependency /lib/libdl.so.1)
>  listen                              ./libshttpd.a(shttpd.o)
>  socket                              ./libshttpd.a(shttpd.o)
>  setsockopt                          ./libshttpd.a(shttpd.o)
>  connect                             ./libshttpd.a(cgi.o)
>  getpeername                         ./libshttpd.a(shttpd.o)
>  inet_ntoa                           ./libshttpd.a(shttpd.o)
>  ld: fatal: Symbol referencing errors. No output written to shttpd
>  *** Error code 1
>  make: Fatal error: Command failed for target `unix'
>
>  -David
>
>
>
>
>  Sergey Lyubka wrote:
>  > Please switch on all warnings, I think it would be nice to see them.
>  > I tried to write warnings free code, but different compilers give
>  > useful hints sometimes.
>  >
>  > On Wed, Feb 20, 2008 at 10:59 PM, Sergey Lyubka <[EMAIL PROTECTED]> wrote:
>  >
>  >> It seems it does not like __inline.
>  >>  try to add "#define __inline inline" at the beginning of io.h
>  >>  I do not have solaris with cc at the moment, unfortunately.
>  >>
>  >>
>  >>
>  >>  On Wed, Feb 20, 2008 at 9:42 PM, David Huffman <[EMAIL PROTECTED]> wrote:
>  >>  > Can shttpd be compiled on Solaris using Sun's C compiler and not gcc? I
>  >>  >  am trying to compile and it fails on the first file with syntax 
> errors:
>  >>  >
>  >>  >  # make unix
>  >>  >  cc -c  string.c -o string.o
>  >>  >  "io.h", line 28: warning: no explicit type given
>  >>  >  "io.h", line 28: syntax error before or at: void
>  >>  >  "io.h", line 36: warning: no explicit type given
>  >>  >  "io.h", line 36: syntax error before or at: char
>  >>  >  "io.h", line 45: warning: no explicit type given
>  >>  >  "io.h", line 45: syntax error before or at: char
>  >>  >  "io.h", line 54: warning: no explicit type given
>  >>  >  "io.h", line 54: syntax error before or at: size_t
>  >>  >  "io.h", line 63: warning: no explicit type given
>  >>  >  "io.h", line 63: syntax error before or at: size_t
>  >>  >  "io.h", line 73: warning: no explicit type given
>  >>  >  "io.h", line 73: syntax error before or at: void
>  >>  >  "io.h", line 86: warning: no explicit type given
>  >>  >  "io.h", line 86: syntax error before or at: void
>  >>  >  cc: acomp failed for string.c
>  >>  >  *** Error code 2
>  >>  >  make: Fatal error: Command failed for target `string.o
>  >>  >
>  >>  >  Thanks
>  >>  >  David Huffman
>  >>  >
>  >>  >  
> -------------------------------------------------------------------------
>  >>  >  This SF.net email is sponsored by: Microsoft
>  >>  >  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  >>  >  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  >>  >  _______________________________________________
>  >>  >  shttpd-general mailing list
>  >>  >  [email protected]
>  >>  >  https://lists.sourceforge.net/lists/listinfo/shttpd-general
>  >>  >
>  >>
>  >>
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general

Reply via email to