[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling for a.out



> Anyone know what's going on here?

	Yes.

	Apparently the a.out linker does not like getting
	multiple instances of similarly named library objects.

	You can "fix" it by placeing  "#if 0" and "endif"
	around libc/getopt.c -source...

	... However doing so will very likely break zmailer
	router, which uses this special getopt to be able to
	restart the scan of the builtin functions input
	parameters by simple means.

	Which compiler, and linker versions do you have ?
	Perhaps upgradeing the linker would do it ?

	/Matti Aarnio <mea@nic.funet.fi>

> gcc -g -O -DHAVE_CONFIG_H -I.. -I../include  -o smtpserver smtpserver.o
> version.o rfc821scn.o debugreport.o loadaver.o fdstatfs.o wantconn.o
> -L../libs -lz -lzc
> -lident -lmalloc_d
> /users/misc/linux/src/libc-linux/posix/getopt.c(.data+0x4): multiple
> definition
> of `optind'
> /usr/local/src/zmailer-2.99.38/libc/getopt.c(.data+0x0): first defined
> here
> /users/misc/linux/src/libc-linux/posix/getopt.c(.data+0x8): multiple
> definition
> of `opterr'
> /usr/local/src/zmailer-2.99.38/libc/getopt.c(.data+0x4): first defined
> here
> /usr/lib/libg.sa(getopt.o): In function `getopt':
> /users/misc/linux/src/libc-linux/posix/getopt.c:733: multiple definition
> of `getopt'
> ../libs/libzc.a(getopt.o):/usr/local/src/zmailer-2.99.38/libc/getopt.c:51:
> first defined here
> make[1]: *** [smtpserver] Error 1
> make[1]: Leaving directory `/usr/local/src/zmailer-2.99.38/smtpserver'
> make: *** [all] Error 1
> 
> I'm trying to compile on an old Slackware 2.3 based box.
> 
> ------------------------------------------------------------------
>  Jon Lewis <jlewis@fdt.net>  |  Unsolicited commercial e-mail will
>  Network Administrator       |  be proof-read for $199/hr.
> ________Finger jlewis@inorganic5.fdt.net for PGP public key_______
>