29 Jul 02:36 2007
Re: gmake[2]: *** [libltdlc.la] Error 1
Tommi Mäkitalo wrote: > Hi Morten, > > libltdl is part of libtool. I must confess, that I am not that much a libtool > expert. I just use it. But I just searched for this "false cru" and it looks > like libltds tries to use "false" instead of "ar". And in the configure-log > is a line: > checking for ar... no > > Looks like libltdl needs that. Please check, if you can install it. > > This looks also interesting: > http://mail.gnome.org/archives/gtk-list/2003-December/msg00066.html > > Maybe "./configure AR=ar" helps. > > Tommi Hi Tommi, bash-3.00$ ./configure AR=ar checking for ar... ar bash-3.00$ gmake Making all in libltdl gmake[1]: Entering directory `/tmp/cxxtools-1.4.5/libltdl' gmake all-am gmake[2]: Entering directory `/tmp/cxxtools-1.4.5/libltdl' /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o ltdl.lo ltdl.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -fPIC -DPIC -o .libs/ltdl.o gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -o ltdl.o >/dev/null 2>&1 /bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -o libltdlc.la ltdl.lo -ldl ar cru .libs/libltdlc.a .libs/ltdl.o /*--------------------!!-----------------------*/ ./libtool: line 5912: ar: command not found /*--------------------!!-----------------------*/ gmake[2]: *** [libltdlc.la] Error 127 gmake[2]: Leaving directory `/tmp/cxxtools-1.4.5/libltdl' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/tmp/cxxtools-1.4.5/libltdl' gmake: *** [all-recursive] Error 1 bash-3.00$ ./libtool: line 5912: ar: command not found I think here it is. if I remember correctly I used some of these tools when I installed gmp. The problem was that under solaris most gnu tools had a g letter in the front, ./configure AR=gar That did the trick, gar under solaris is gnu ar. Here is the next problem I face, g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include/cxxtools -I../include -I../libltdl -D_REENTRANT -pthreads -g -O2 -MT libcxxtools_la-iconvstream.lo -MD -MP -MF .deps/libcxxtools_la-iconvstream.Tpo -c iconvstream.cpp -fPIC -DPIC -o .libs/libcxxtools_la-iconvstream.o iconvstream.cpp: In member function 'virtual int cxxtools::iconvstreambuf::overflow(int)': iconvstream.cpp:106: error: invalid conversion from 'char**' to 'const char**' iconvstream.cpp:106: error: initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)' gmake[2]: *** [libcxxtools_la-iconvstream.lo] Error 1 I think I had this previously, but I don't recall how I solved it, my gcc is from blastwave. which g++ /opt/csw/gcc4/bin/g++ bash-3.00$ g++ -v Reading specs from /opt/csw/gcc4/lib/gcc/i386-pc-solaris2.8/4.0.2/specs Target: i386-pc-solaris2.8 Configured with: ../sources/gcc-4.0.2/configure --prefix=/opt/csw/gcc4 --with-local-prefix=/opt/csw --with-gnu-as --with-as=/opt/csw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --with-system-zlib --enable-languages=c,c++,f95,java,objc,ada Thread model: posix gcc version 4.0.2 with sunstudio Sun Studio 12: C++ 5.9 Compiler bash-3.00$ CC -DHAVE_CONFIG_H -I. -I. -I. -I../include/cxxtools -I../include -I../libltdl -D_REENTRANT -pthreads -g -O2 -MT libcxxtools_la-iconvstream.lo -MD -MP -MF .deps/libcxxtools_la-iconvstream.Tpo -c iconvstream.cpp -fPIC -DPIC -o .libs/libcxxtools_la-iconvstream.o CC: Warning: Option -pthreads passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise CC: Invalid input file name libcxxtools_la-iconvstream.lo, no output generated for this file. CC: Invalid input file name .deps/libcxxtools_la-iconvstream.Tpo, no output generated for this file. "iconvstream.cpp", line 105: Error: Formal argument 2 of type const char** in call to iconv(_iconv_info*, const char**, unsigned*, char**, unsigned*) is being passed char**. 1 Error(s) detected. // Konvertiere so viele Zeichen wie möglich iconv(cd, &inbufptr, &inbytesleft, &outbufptr, &outbytesleft); Best Regards Morten ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
RSS Feed