Christopher Yue ([EMAIL PROTECTED]):

> I am having trouble compiling analog 5.1 on Unix Solaris 2.7.

> I actually already installed libgd v1.8.4, libpng, and zlib. 

> I edited anlghead.h and I edited Makefile by including "DEFS = -DHAVE_GD"
> and "libs = -lm -lgd -lpng -lz".  (This implies that I already have libgd,
> libpng, and zlib).

> I also tried editing Makefile to not include "-DHAVE_GD" and to only include
> "libs = -lm". 

> However, when I run "make", I get the following error:

> ld: warning: symbol `png_libpng_ver' has differing sizes:
>         (file libpng/png.o value=0xc; file /usr/local/lib/libpng.so
> value=0x12);
>         libpng/png.o definition taken

This is a warning, so you can ignore it for now. Note that this will
use the libpng that comes with Analog rather than yours.



> Undefined                       first referenced
>  symbol                             in file
> gethostbyaddr                       alias.o
> inet_addr                           alias.o
> ld: fatal: Symbol referencing errors. No output written to ../analog
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `analog'


You need to add '-lnsl' to your libs line as specified in the notes in
the top of the Makefile.


-- 

Jeremy Wadsack
Wadsack-Allen Digital Group

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to