libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with Sun CC v5.2 -- Newbie


From: Carlos
Subject: Re: Problems with Sun CC v5.2 -- Newbie
Date: Thu, 1 Apr 2004 11:15:19 -0800 (PST)
User-agent: DreamHost Webmail

Thanks, that seemed to do it.  I guess I wrongly assumed the CC was a
wrapper that would do the right thing depending on the file extension.

-Carlos

----- Original Message -----
From: "Bob Friesenhahn" <address@hidden>
To: "Carlos" <address@hidden>
Cc: <address@hidden>
Sent: Wednesday, March 31, 2004 3:15 PM
Subject: Re: Problems with Sun CC v5.2 -- Newbie


> 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=\"address@hidden" -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
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/libtool
> >
>
> ======================================
> Bob Friesenhahn
> address@hidden
> http://www.simplesystems.org/users/bfriesen
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]