To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=65407 Issue #:|65407 Summary:|Autoconf fails to detect working -ldb Component:|porting Version:|OOo 2.0.2 Platform:|PC URL:| OS/Version:|Solaris Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|code Assigned to:|mh Reported by:|it46
------- Additional comments from [EMAIL PROTECTED] Mon May 15 11:08:06 -0700 2006 ------- In Solaris x86 and Sun Studio 10, Autoconf fails to detect -ldb using --with-system-db This is due to a recursive call of main inside of the conftest.cc that is not possible in Sun Studio 10. This is not a problem for GCC. And alternative way to detect a working db is needed for SS10 configure:10539: CC -o conftest -g conftest.cc >&5 configure:10542: $? = 0 configure:10544: ./conftest configure:10547: $? = 0 configure:10560: result: OK configure:10571: checking for main in -ldb configure:10595: CC -o conftest -g conftest.cc -ldb >&5 "conftest.cc", line 27: Error: Cannot have a recursive call of main(). 1 Error(s) detected. configure:10601: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #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 | #ifdef __cplusplus | extern "C" void exit (int); | #endif | /* end confdefs.h. */ | | | int | main () | { | main (); | ; | return 0; | } configure:10595: CC -o conftest -g conftest.cc -ldb >&5 "conftest.cc", line 27: Error: Cannot have a recursive call of main(). 1 Error(s) detected. configure:10601: $? = 1 --- --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- 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]