On Thu, 3 Jul 2003, Ted Fines wrote: > getopt_long.h is declared in getopt.h in /usr/include on my Linux system. > On my Solaris system, the only getopt.h files are located in other source > trees, such as those of php and mod_ssl. Those don't have a declaration > for getopt_long though, while the one on my Linux system does.
getopt() is declared in stdlib.h on Solaris 2.4 (possibly earlier than that - I haven't tracked down a Solaris 2.3 box yet) and later. I don't know about getopt_long()... but see "man -s 3c getopt"... > Everything's harder on Solaris. I think you'll need to get/install a newer > glibc. <http://www.sunfreeware.com> has it. That's a matter of opinion... ;-P <side rant> I find it easy to build software on Solaris, given that the authors don't make assumptions like - ``Everyone in the world uses "gmake" and "gcc" to build software.'' Sure, they're free tools that everyone can download and install (building them can be a different matter altogether tho'!), but wouldn't it just be better to write software that uses a common subset of features supported by many platforms rather than esoteric features of "gmake" that no other "make" command supports, or weird flavors of "getopt" that may not exist on different OSes. getopt_long... what the heck is that? Geeeez. Tip: If it doesn't exist in the stock includes on Solaris, it's probably an esoteric feature of some OSes headers or some add-on package that hardly anything uses in the first place... </side rant> Ed > Ted > --On Thursday, July 03, 2003 12:21 PM -0700 Tony Cratz <[EMAIL PROTECTED]> > wrote: > > > Hello, > > > > I'm trying to build the clamav-milter on a Solaris 8 X86 box. After > > reading clamav-milter/INSALL, editing the Makefile and adding a > > couple of other flags to support having things in /opt instread of > > /usr/local I ended up with the error of a missing getopt_long(). What > > lib can this function be found in so I can add the path to the > > Makefile or get the source for it? > > > > Tony > > > > ------------------------------------------------------------------------- > > ---------------------------- make > > source='clamav-milter.c' object='clamav-milter.o' libtool=no \ > > depfile='.deps/clamav-milter.Po' tmpdepfile='.deps/clamav-milter.TPo' \ > > depmode=gcc /bin/bash ../depcomp \ > > gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clamav\" > > -DVERSION=\"0.60\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 > > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 > > -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 > > -DBUFFSIZE=131072 -DFBUFFSIZE=16384 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 > > -DHAVE_SYS_INT_TYPES_H=1 -DHAVE_DLFCN_H=1 -DHAVE_INTTYPES_H=1 > > -DHAVE_SYS_INTTYPES_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 > > -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_MMAN_H=1 > > -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 > > -DHAVE_MALLOC_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 > > -DHAVE_ZLIB_H=1 -DNOBZ2PREFIX=1 -DCLAMD_USE_SYSLOG=1 > > -DCLAMAVUSER=\"clam\" -DCLAMAVGROUP=\"clam\" -DDB1NAME=\"viruses.db\" > > -DDB2NAME=\"viruses.db2\" -DDATADIR=\"/opt/share/clamav\" > > -DCONFDIR=\"/usr/local/etc\" -DC_URANDOM=1 -DCL_THREAD_SAFE=1 > > -DC_SOLARIS=1 -DWORDS_LITTLEENDIAN=1 -I. -I. -I../clamd -I../libclamav > > -I/opt/include -I/opt/sfw/include -g -O2 -Dstrerror_r=strerror -c > > `test -f 'clamav-milter.c' || echo './'`clamav-milter.c /bin/bash > > ../libtool --mode=link gcc -g -O2 -Dstrerror_r=strerror -o > > clamav-milter clamav-milter.o ../clamd/cfgfile.o ../clamd/others.o > > -L/opt/lib -L/opt/sfw/lib -L../libclamav -L/usr/lib/libmilter -lmilter > > -lpthread -lsocket -lnsl -lresolv mkdir .libs > > gcc -g -O2 -Dstrerror_r=strerror -o clamav-milter clamav-milter.o > > ../clamd/cfgfile.o ../clamd/others.o -L/opt/lib -L/opt/sfw/lib > > -L/home/cratz/src/clamav/clamav-0.60/libclamav -L/usr/lib/libmilter > > -lmilter -lpthread -lsocket -lnsl -lresolv Undefined > > first referenced > > symbol in file > > clamav-milter.o > > ld: fatal: Symbol referencing errors. No output written to clamav-milter > > collect2: ld returned 1 exit status > > *** Error code 1 > > make: Fatal error: Command failed for target `clamav-milter' > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Ed Phillips <[EMAIL PROTECTED]> University of Delaware (302) 831-6082 Systems Programmer III, Network and Systems Services finger -l [EMAIL PROTECTED] for PGP public key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
