Hey dmalloc...

On Tue, Jun 15, 2004 at 08:08:39PM +0100, Cian Hughes wrote:
> I tried patching dante as per mac os x 10.2  (copied the patch and info 
> files into unstable 10.3 - don't shoot me) and re-indexed.
> when i compiled i got the following output: (does anyone have any 
> suggestions, it appears to be a problem with /usr/lib/libSystem.dylib 
> to me)
[...]

> gcc -DSOCKS_SERVER=1 -DSOCKS_CLIENT=0 -DSOCKSLIBRARY_DYNAMIC=1 -g -O2 
> -pipe -o sockd config_parse.o config_scan.o sockd.o sockd_child.o io.o 
> sockd_negotiate.o sockd_request.o method_uname.o debug.o udp_util.o 
> util.o log.o socket.o sockd_socket.o config.o sockd_util.o 
> sockd_protocol.o serverconfig.o lib_protocol.o hostcache.o 
> interposition.o broken.o serr.o sockd_io.o accesscheck.o 
> auth_password.o auth_pam.o tostring.o redirect.o redirect_key.o 
> addressmatch.o checkmodule.o bandwidth.o bandwidth_key.o getifa.o  
> -L/sw/lib ../libscompat/.libs/libscompat.al -lwrap -lpam
> ld: warning multiple definitions of symbol _gethostbyaddr
> interposition.o definition of _gethostbyaddr in section (__TEXT,__text)
> /usr/lib/libSystem.dylib(lu_host.o) definition of _gethostbyaddr
> ld: warning multiple definitions of symbol _gethostbyname
> interposition.o definition of _gethostbyname in section (__TEXT,__text)
> /usr/lib/libSystem.dylib(lu_host.o) definition of _gethostbyname
> ld: warning prebinding disabled because of undefined symbols
> ld: Undefined symbols:
> _res_9_init
> make[1]: *** [sockd] Error 1
> make: *** [all-recursive] Error 1
> ### execution of /var/tmp/tmp.1.4lXPMF failed, exit code 2
> Failed: compiling dante-1.1.14-1 failed

Need to include '-lresolv' as an argument to that gcc command.

A brute force approach might be to just add the line
  SetLDFLAGS: -lresolv
to the .info, or else:
  export LDFLAGS=-lresolv
in with the other export items in CompileScript (no clue why the
package maintainer does it that way though:).

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to