Alex Moore wrote:
On Tue, 13 Dec 2005 14:45:27 +0100 (CET)
"Pal, Laszlo" <[EMAIL PROTECTED]> wrote:

  
checking for off64_t... yes
checking for flock_t... yes
checking for setpgrp... yes
checking for setpgrp... (cached) yes
checking whether setpgrp takes no argument... yes
checking for fcntl... yes
checking for flock... no
checking for lockf... yes
checking for locking method... configure: error: must specify
--with-locking-method option
configure: error: /bin/bash './configure' failed for liblock
    

What does liblock/config.log say about locking method.  I put my output
below and it worked just fine.  I use the CSW GNU tools as well.
However, I use Sun's compiler with CSWgmake.  This is on Solaris 10
sparc.

  
I think I given up to have working system under solaris :)  However, here is my output, so it may help someone else


configure:20497: result: no
configure:20508: checking for lockf
configure:20535: gcc -o conftest -g -O2  -R/lib:/usr/lib:/opt/csw/mysql4/lib/mysql conftest.c  >&5
configure:20541: $? = 0
configure:20545: test -z
                         || test ! -s conftest.err
configure:20548: $? = 0
configure:20551: test -s conftest
configure:20554: $? = 0
configure:20565: result: yes
configure:20576: checking for locking method
configure:20649: gcc -o conftest -g -O2  -R/lib:/usr/lib:/opt/csw/mysql4/lib/mysql conftest.c  >&5
In file included from /usr/include/sys/signal.h:34,
                 from /usr/include/signal.h:26,
                 from locktest.c:18,
                 from conftest.c:35:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
                 from locktest.c:18,
                 from conftest.c:35:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from locktest.c:18,
                 from conftest.c:35:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
configure:20652: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
| #define STDC_HEADERS 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_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_FCNTL_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYSEXITS_H 1
| #define STDC_HEADERS 1
| #define RETSIGTYPE int
| #define LL_OFFSET_TYPE off64_t
| #define HAS_FLOCK_T 1
| #define HAVE_SETPGRP 1
| #define SETPGRP_VOID 1
| #define HAS_FCNTL 1
| #define HAS_LOCKF 1
| /* end confdefs.h.  */
|
| #define USE_FCNTL 1
| #define       LL_OFFSET_TYPE  off64_t
| #include "./locktest.c"
|
configure:20733: gcc -o conftest -g -O2  -R/lib:/usr/lib:/opt/csw/mysql4/lib/mysql conftest.c  >&5
In file included from /usr/include/sys/signal.h:34,
                 from /usr/include/signal.h:26,
                 from locktest.c:18,
                 from conftest.c:35:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
                 from locktest.c:18,
                 from conftest.c:35:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from locktest.c:18,
                 from conftest.c:35:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
configure:20736: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
| #define STDC_HEADERS 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_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_FCNTL_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYSEXITS_H 1
| #define STDC_HEADERS 1
| #define RETSIGTYPE int
| #define LL_OFFSET_TYPE off64_t
| #define HAS_FLOCK_T 1
| #define HAVE_SETPGRP 1
| #define SETPGRP_VOID 1
| #define HAS_FCNTL 1
| #define HAS_LOCKF 1
| /* end confdefs.h.  */
|
| #define USE_LOCKF 1
| #define       LL_OFFSET_TYPE  off64_t
| #include "./locktest.c"
|
configure:20818: gcc -o conftest -g -O2  -R/lib:/usr/lib:/opt/csw/mysql4/lib/mysql conftest.c  >&5
In file included from locktest.c:13,
                 from conftest.c:35:
lockflock.c: In function `ll_lockfd':
lockflock.c:33: error: `LOCK_UN' undeclared (first use in this function)
lockflock.c:33: error: (Each undeclared identifier is reported only once
lockflock.c:33: error: for each function it appears in.)
lockflock.c:34: error: `LOCK_EX' undeclared (first use in this function)
lockflock.c:34: error: `LOCK_SH' undeclared (first use in this function)
lockflock.c:35: error: `LOCK_NB' undeclared (first use in this function)
In file included from /usr/include/sys/signal.h:34,
                 from /usr/include/signal.h:26,
                 from locktest.c:18,
                 from conftest.c:35:
/usr/include/sys/siginfo.h: At top level:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
                 from locktest.c:18,
                 from conftest.c:35:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from locktest.c:18,
                 from conftest.c:35:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
configure:20821: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
| #define STDC_HEADERS 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_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_FCNTL_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYSEXITS_H 1
| #define STDC_HEADERS 1
| #define RETSIGTYPE int
| #define LL_OFFSET_TYPE off64_t
| #define HAS_FLOCK_T 1
| #define HAVE_SETPGRP 1
| #define SETPGRP_VOID 1
| #define HAS_FCNTL 1
| #define HAS_LOCKF 1
| /* end confdefs.h.  */
|
| #define USE_FLOCK 1
| #define       LL_OFFSET_TYPE  off64_t
| #include "./locktest.c"
|
configure:2084

Reply via email to