The extension on ltdl.c should provide the clue. It is a C source file, not C++. Define CC=cc when configuring and you should experience more success.
Bob On Wed, 31 Mar 2004, Carlos wrote: > Hi all, > I have tried looking through the archives and on google but can't find a > solution. > > I am trying to configure libtool 1.5.2 and am having problems. > Machine info: > bash-2.03$ uname -a > SunOS viper 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-60 > bash-2.03$ CC -V > CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 > > It appears as if the CC compiler does not know how to deal with the K&R > style function definitions used in ltdl.c or in the tests. I have tried > looking through the Sun CC documentation but I do not see any flags to > enable or disable this. Am I missing something? > > At first I tried to configure with the following: > ./configure CXX=CC CXXFLAGS=-KPIC LD=CC LDFLAGS=-xildoff CC=CC CFLAGS=-KPIC > but when trying to make it fails when trying to compile ltdl.c > > Next I tried to disable ltdl: > ./configure CXX=CC CXXFLAGS=-KPIC LD=CC LDFLAGS=-xildoff CC=CC > CFLAGS=-KPIC --disable-ltdl-install > > This time the make succeeds but the make check fails on about a 2/3 of the > tests. > > Here is the output of cdemo-make.test: > bash-2.03$ ./cdemo-make.test > === Running cdemo-make.test > Making in ../cdemo > CC -DPACKAGE_NAME=\"cdemo\" -DPACKAGE_TARNAME=\"cdemo\" > -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"cdemo\ 0.1\" > -DPACKAGE_BUGREPORT=\"[EMAIL PROTECTED]" -DPACKAGE=\"cdemo\" > -DVERSION=\"0.1\" -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 > -DHAVE_MATH_H=1 -I. > -I/export/home/guest/create/solaris/libtool/libtool-1.5.2/tests/../cdemo > -KPIC -c main.c > "main.c", line 26: Error: argc is not defined. > "main.c", line 34: Error: The function "hello" must have a prototype. > "main.c", line 35: Warning: The variable value has not yet been assigned a > value. > "main.c", line 39: Error: The function "foo" must have a prototype. > "main.c", line 43: Error: "}" expected instead of EOF. > 4 Error(s) and 1 Warning(s) detected. > make: *** [main.o] Error 4 > > If anyone has had success with libtool on this platform let me know what > you did. > > thanks, > -Carlos > > > > > _______________________________________________ > Libtool mailing list > [EMAIL PROTECTED] > http://mail.gnu.org/mailman/listinfo/libtool > ====================================== Bob Friesenhahn [EMAIL PROTECTED] http://www.simplesystems.org/users/bfriesen _______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool
