Hey folks ... I'm on a Sun E250 running Solaris 2.7. I downloaded the
analog-4.13.tar.gz file, extracted it and then typed in "make". Before I
did this, I looked through "Makefile" and "anlghea*.h". I didn't change
anything except for using DEFS = -DHAVE_ADDR_T ... in Makefile but that
didn't change anything. The Makefile was returned to its unchanged state so
I'll include some lines from the top of it. I looked through several
messages on this list and discovered that certain environment variables can
matter. I think I'm ok, but I've included some lines from my .cshrc anyway.
Am I doing something wrong? Am I totally neglecting to do something?
Thanks!
-Christian
====================================
Error that occurs while doing "Make"
====================================
gcc -O2 -DUNIX -c alias.c
gcc -O2 -DUNIX -c analog.c
gcc -O2 -DUNIX -c cache.c
gcc -O2 -DUNIX -c dates.c
gcc -O2 -DUNIX -c globals.c
gcc -O2 -DUNIX -c hash.c
gcc -O2 -DUNIX -c init.c
gcc -O2 -DUNIX -c init2.c
gcc -O2 -DUNIX -c input.c
gcc -O2 -DUNIX -c macinput.c
gcc -O2 -DUNIX -c macstuff.c
gcc -O2 -DUNIX -c output.c
gcc -O2 -DUNIX -c output2.c
gcc -O2 -DUNIX -c pcre.c
gcc -O2 -DUNIX -c process.c
gcc -O2 -DUNIX -c settings.c
gcc -O2 -DUNIX -c sort.c
gcc -O2 -DUNIX -c tree.c
gcc -O2 -DUNIX -c utils.c
gcc -O2 -DUNIX -c win32.c
gcc -O2 -o analog alias.o analog.o cache.o dates.o globals.o
hash.o init.o init2.o input.o macinput.o macstuff.o output.o output2.o
pcre.o process.o settings.o sort.o tree.o utils.o win32.o
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
make: *** [analog] Error 1
================================
The first lines of my "Makefile"
================================
# Makefile for analog 4.13
# Please read docs/Readme.html, or http://www.analog.cx/
CC = gcc # which compiler to use: eg cc, acc, gcc. NB Different
# compilers need different CFLAGS, e.g., -O instead
of -O2.
CEXTRAFLAGS = -O2 # options, e.g. for optimisation or ANSI compilation.
# HP/UX cc requires CEXTRAFLAGS = -Aa (HP/UX 9) or ...
# -Ae (HP/UX 10); BS2000/OSD
requires -XLLML -XLLMK;
# NeXTSTEP apparently needs...
# CEXTRAFLAGS = -O2 -pipe -no-precomp
DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOOPEN ...
# ... -DEBCDIC -DNOGMTIME -DNEED_STRCMP -DNEED_MEMMOVE
...
# ... -DNEED_STRTOUL -DNEED_DIFFTIME -DHAVE_ADDR_T ...
# ... -DNEED_FLOATINGPOINT_H
# Solaris 2 (SunOS 5) might need DEFS = -DNEED_STRCMP
# SunOS 4 usually needs...
# DEFS
= -DNEED_MEMMOVE -DNEED_STRTOUL -DNEED_DIFFTIME -DNEED_FLOATINGPOINT_H
# 64-bit Solaris needs -DHAVE_ADDR_T
# DYNIX/ptx reportedly needs -D_SOCKET_VERSION=11
# All the options are explained at the bottom of this
file.
OS = UNIX # Operating system: UNIX, DOS, WIN32, MAC, OS2, VMS
# RISCOS, BEOS, NEXTSTEP, BS2000, AS400
LIBS = # extra libraries needed; Solaris 2 (SunOS 5) needs
# LIBS = -lnsl and SCO Unix needs LIBS = -lsocket
# IRIX reportedly needs LIBS = -lc
# OS/2 with EMX requires LIBS = -lsocket; so does BS2000/OSD
# SVR4 requires LIBS = -lsocket -lnsl
# DYNIX/ptx requires LIBS
= -L/usr/lib/bsd-socket -lsocket -lnsl
PROGRAM = analog
OBJS = alias.o analog.o cache.o dates.o globals.o hash.o init.o init2.o \
input.o macinput.o macstuff.o output.o output2.o pcre.o process.o \
settings.o sort.o tree.o utils.o win32.o
HEADERS = anlghead.h anlghea2.h anlghea3.h anlghea4.h macdir.h pcre.h
CFLAGS = $(CEXTRAFLAGS) $(DEFS) -D$(OS)
==========================
And even some of my .cshrc
==========================
setenv MANPATH /usr/man:/usr/local/man:/opt/mysql/man:/usr/local/ssl/man
setenv LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/usr/openwin/lib:/opt/mysql/lib/mysql
setenv SSL_BASE /usr/local/ssl
setenv EAPI_MM /files2/Software/mm-1.1.3
if ( $?prompt ) then
set path = ( /usr/local/bin /usr/bin /usr/ucb /usr/local/sbin /usr/sbin
/usr/ccs/bin /usr/lib
)
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------