API compile error

Post Reply
jsoltys
Posts: 14
Joined: Wed Feb 06, 2002 6:54 pm

API compile error

Post by jsoltys »

Any idea what lib is missing to generate these symbol reference errors? I'm trying to compile on Solaris 2.7 with the API from 4.00.1009527445.

--

/usr/local/bin/gcc -L/usr/local/morph3/api -g -o pushWeb pushWeb.o -lntexis -ltexis -lcgi -lapi3 -lm -lkstat -lsocket -lnsl
Undefined first referenced
symbol in file
htdns_gethostbyname /usr/local/morph3/api/libcgi.a(http.o)
htdns_getorgname /usr/local/morph3/api/libcgi.a(http.o)
openhtdns /usr/local/morph3/api/libcgi.a(http.o)
htdns_strerror /usr/local/morph3/api/libcgi.a(http.o)
htdns_setservices /usr/local/morph3/api/libcgi.a(http.o)
DnsTrace /usr/local/morph3/api/libcgi.a(http.o)
htdns_setalarm /usr/local/morph3/api/libcgi.a(http.o)
htdns_deadline /usr/local/morph3/api/libcgi.a(http.o)
htdns_islookupdone /usr/local/morph3/api/libcgi.a(http.o)
htdns_stoplookup /usr/local/morph3/api/libcgi.a(http.o)
htdns_errnum /usr/local/morph3/api/libcgi.a(http.o)
inet_aton /usr/local/morph3/api/libcgi.a(http.o)
duphtdns /usr/local/morph3/api/libcgi.a(http.o)
htdns_worktillwait /usr/local/morph3/api/libcgi.a(http.o)
htdns_setflags /usr/local/morph3/api/libcgi.a(http.o)
closehtdns /usr/local/morph3/api/libcgi.a(http.o)
DnsGotAlarm /usr/local/morph3/api/libcgi.a(http.o)
htdns_skt /usr/local/morph3/api/libcgi.a(http.o)
htdns_settimeout /usr/local/morph3/api/libcgi.a(http.o)
htdns_startgethostbyname /usr/local/morph3/api/libcgi.a(http.o)
ld: fatal: Symbol referencing errors. No output written to pushWeb
collect2: ld returned 1 exit status
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

API compile error

Post by John »

Those should be in -lntexis. You may need to include it again after -lcgi.
John Turnbull
Thunderstone Software
Post Reply