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.


Everything's harder on Solaris. I think you'll need to get/install a newer glibc. <http://www.sunfreeware.com> has it.

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]




Reply via email to