Re: Sophie 3.04rc2 released
Andrea Gabellini <[email protected]>
| Newsgroups | gmane.comp.security.virus.vtools |
|---|---|
| Message-ID | <[email protected]> |
At 02.25 28/01/2004, you wrote:
>What I'd really need help with is configure.in, and being able to properly
>set -lrt or -lposix4, depending on Solaris version. I don't have access to
>anything except Linux right now, so... any help is appreciated.
Vanja,
I'm using Soalris 8 (x86), and the configure detect and link with '-lrt'.
This is the portion of config.log. The first attempt fails. I hope this is
useful to you.
configure:3923: checking for nanosleep
configure:3973: gcc -o conftest -g -O2 -Wall conftest.c -lsocket >&5
Undefined first referenced
symbol in file
nanosleep /var/tmp//ccKZGNsy.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:3976: $? = 1
configure: failed program was:
| #line 3929 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define SOLARIS 1
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SCHED_H 1
| #define STDIO_H_DECLARES_VSNPRINTF 1
| #define GRP_H_DECLARES_INITGROUPS 1
| #define RETSIGTYPE void
| #define HAVE_LIBSOCKET 1
| /* end confdefs.h. */
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char nanosleep (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char nanosleep ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
| choke me
| #else
| char (*f) () = nanosleep;
| #endif
| #ifdef __cplusplus
| }
| #endif
|
| int
| main ()
| {
| return f != nanosleep;
| ;
| return 0;
| }
configure:3993: result: no
configure:4002: checking for nanosleep in -lrt
configure:4033: gcc -o conftest -g -O2 -Wall conftest.c -lrt -lsocket >&5
configure:4036: $? = 0
configure:4039: test -s conftest
configure:4042: $? = 0
configure:4054: result: yes
---------------------------------------
Small deeds done are better than great deeds planned.
---------------------------------------
Ing. Andrea Gabellini
Email: [email protected]
Tel: 0549 886111 (Italy)
Tel. +378 0549 886111 (International)
Intelcom San Marino S.p.A.
Strada degli Angariari, 3
47891 Rovereta
Repubblic of San Marino
http://www.omniway.sm http://www.intelcom.sm