From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1EocLb-0008Hl-1y for garchives@archives.gentoo.org; Tue, 20 Dec 2005 07:55:47 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jBK7t4Ix027586; Tue, 20 Dec 2005 07:55:04 GMT Received: from mail47.e.nsc.no (mail47.e.nsc.no [193.213.115.47]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jBK7t4BL011974 for ; Tue, 20 Dec 2005 07:55:04 GMT Received: from mail.nor.wtbts.org ([213.234.126.131]) by mail47.nsc.no (8.13.5/8.13.5) with ESMTP id jBK7t3Z9023128 for ; Tue, 20 Dec 2005 08:55:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.nor.wtbts.org (Postfix) with ESMTP id 1AF413FD18 for ; Tue, 20 Dec 2005 08:55:03 +0100 (CET) Received: from mail.nor.wtbts.org ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20230-07 for ; Tue, 20 Dec 2005 08:55:02 +0100 (CET) Received: from nc (unknown [192.168.65.211]) by mail.nor.wtbts.org (Postfix) with ESMTP id E4AF73FA5C for ; Tue, 20 Dec 2005 08:55:02 +0100 (CET) Subject: Re: [gentoo-embedded] dansguardian and uclibc++ From: Natanael Copa To: gentoo-embedded@lists.gentoo.org In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-1 Date: Tue, 20 Dec 2005 08:55:02 +0100 Message-Id: <1135065302.20249.57.camel@nc> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at wtbts.no Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id jBK7t4Jj027586 X-Archives-Salt: 61fa040e-8cf1-446b-a68d-4c2d18faba4f X-Archives-Hash: 74c629c24e8b924fb94f9664ea38db55 On man, 2005-12-19 at 13:33 +0100, Peter S. Mazinger wrote: > On Fri, 16 Dec 2005, Ned Ludd wrote: >=20 > > On Fri, 2005-12-16 at 08:52 +0100, Natanael Copa wrote: > > > On tor, 2005-12-15 at 12:19 -0500, Ren=E9 Rh=E9aume wrote: > > > > 2005/12/15, Natanael Copa : > > > > > I'm trying to avoid the gcc runtime dependency. > > > > What do you mean ? libgcc or libstdc++ ? > > >=20 > > > libstc++-v3 has like 23MB sources. It takes a while to compile. > > > (Besides, it failed to compile.) > > >=20 > > >=20 > > > # emerge -s libgcc > > > Searching... > > > [ Results for search key : libgcc ] > > > [ Applications found : 0 ] > > >=20 > > > libgcc? where can i find it? > > >=20 > > > I would be much better if I could get it work with uclibc++. Its mu= ch > > > smaller. > > >=20 > > > I managed to get nmap to compile agains uclibc with > > >=20 > > > CXX=3Dg++-uc emerge nmap > > >=20 > > > The romour says its possible to compile kde with uclibc++ so I was > > > hoping it would be possible to use uclibc++ > >=20 > > It's true. You can replace most of your system with uclibc++. It just= =20 > > takes some effort.=20 > >=20 > > I guess this is about as good time as any. Natanael if you can attemp= t=20 > > to swap out all your c++ needs with uclibc++ and report back if you=20 > > think we should make that the default for uclibc based profiles I/we=20 > > would be thankful. >=20 > dansguardian builds w/ the method I described earlier, it needs only in= =20 > src/dansguardian.cpp commenting setlocale(...) at line 162 (if locales = are=20 > not enabled) Could you please verify that dansguardian really gets linked against libuClibc++.so.0? When I did exactly as you said (only symblinking i386-gentoo-linux-uclibc-c++ -> g++-uc) dansguardian still got compiled with gcc's g++ and it was linked against libstdc++.so.6. When I also had a g++ -> g++-uc it really used g++-uc from uclibc++, but then the compile failed. ... creating ./config.status g++ -march=3Di386 -Os -pipe -fomit-frame-pointer -Wall -c String.cpp g++ -march=3Di386 -Os -pipe -fomit-frame-pointer -Wall -c OptionContainer.cpp /usr/lib/gcc/i386-gentoo-linux-uclibc/3.4.4/../../../../i386-gentoo-linux= -uclibc/include/string_iostream: In function `std::basic_istream& std::getline(std::basic_istream&, std::basic_strin= g&, charT) [with charT =3D char, traits =3D std::char_traits, Allocator =3D std::allocator]': /usr/lib/gcc/i386-gentoo-linux-uclibc/3.4.4/../../../../i386-gentoo-linux= -uclibc/include/string_iostream:110: instantiated from `std::basic_istr= eam& std::getline(std::basic_istream&, std:= :basic_string&) [with charT =3D char, traits =3D std::char_tra= its, Allocator =3D std::allocator]' OptionContainer.cpp:84: instantiated from here /usr/lib/gcc/i386-gentoo-linux-uclibc/3.4.4/../../../../i386-gentoo-linux= -uclibc/include/string_iostream:93: warning: comparison between signed an= d unsigned integer expressions g++ -march=3Di386 -Os -pipe -fomit-frame-pointer -Wall -c FDTunnel.cpp g++ -march=3Di386 -Os -pipe -fomit-frame-pointer -Wall -c ConnectionHandler.cpp ConnectionHandler.cpp: In member function `void ConnectionHandler::doTheLogMan(std::string, std::string, std::string, std::string, std::string, int, timeval*, bool, int, std::string)': ConnectionHandler.cpp:672: error: `time' undeclared (first use this function) ConnectionHandler.cpp:672: error: (Each undeclared identifier is reported only once for each function it appears in.) ConnectionHandler.cpp:673: error: `localtime' undeclared (first use this function) ConnectionHandler.cpp:674: error: invalid use of undefined type `struct tm' ConnectionHandler.cpp:671: error: forward declaration of `struct tm' ConnectionHandler.cpp:675: error: invalid use of undefined type `struct tm' ConnectionHandler.cpp:671: error: forward declaration of `struct tm' ConnectionHandler.cpp:676: error: invalid use of undefined type `struct tm' ConnectionHandler.cpp:671: error: forward declaration of `struct tm' ConnectionHandler.cpp:677: error: invalid use of undefined type `struct tm' ConnectionHandler.cpp:671: error: forward declaration of `struct tm' ConnectionHandler.cpp:678: error: invalid use of undefined type `struct tm' ConnectionHandler.cpp:671: error: forward declaration of `struct tm' ConnectionHandler.cpp:681: error: invalid use of undefined type `struct tm' ConnectionHandler.cpp:671: error: forward declaration of `struct tm' ConnectionHandler.cpp: In member function `String ConnectionHandler::hashedURL(String*, int, std::string*)': ConnectionHandler.cpp:1180: error: `time' undeclared (first use this function) make: *** [ConnectionHandler.o] Error 1 I have also tried the ~x86 2.9.3.0_alpha version with similar results. (time missing) (I just discovered there is a dansguardian 2.9.3.1 out so I will have to submit a bug report for an updated ebuild) --=20 gentoo-embedded@gentoo.org mailing list