Gentoo Archives: gentoo-embedded

From: Natanael Copa <mlists@××××××.org>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] dansguardian and uclibc++
Date: Tue, 20 Dec 2005 07:55:47
Message-Id: 1135065302.20249.57.camel@nc
In Reply to: Re: [gentoo-embedded] dansguardian and uclibc++ by "Peter S. Mazinger"
1 On man, 2005-12-19 at 13:33 +0100, Peter S. Mazinger wrote:
2 > On Fri, 16 Dec 2005, Ned Ludd wrote:
3 >
4 > > On Fri, 2005-12-16 at 08:52 +0100, Natanael Copa wrote:
5 > > > On tor, 2005-12-15 at 12:19 -0500, René Rhéaume wrote:
6 > > > > 2005/12/15, Natanael Copa <mlists@××××××.org>:
7 > > > > > I'm trying to avoid the gcc runtime dependency.
8 > > > > What do you mean ? libgcc or libstdc++ ?
9 > > >
10 > > > libstc++-v3 has like 23MB sources. It takes a while to compile.
11 > > > (Besides, it failed to compile.)
12 > > >
13 > > >
14 > > > # emerge -s libgcc
15 > > > Searching...
16 > > > [ Results for search key : libgcc ]
17 > > > [ Applications found : 0 ]
18 > > >
19 > > > libgcc? where can i find it?
20 > > >
21 > > > I would be much better if I could get it work with uclibc++. Its much
22 > > > smaller.
23 > > >
24 > > > I managed to get nmap to compile agains uclibc with
25 > > >
26 > > > CXX=g++-uc emerge nmap
27 > > >
28 > > > The romour says its possible to compile kde with uclibc++ so I was
29 > > > hoping it would be possible to use uclibc++
30 > >
31 > > It's true. You can replace most of your system with uclibc++. It just
32 > > takes some effort.
33 > >
34 > > I guess this is about as good time as any. Natanael if you can attempt
35 > > to swap out all your c++ needs with uclibc++ and report back if you
36 > > think we should make that the default for uclibc based profiles I/we
37 > > would be thankful.
38 >
39 > dansguardian builds w/ the method I described earlier, it needs only in
40 > src/dansguardian.cpp commenting setlocale(...) at line 162 (if locales are
41 > not enabled)
42
43 Could you please verify that dansguardian really gets linked against
44 libuClibc++.so.0?
45
46 When I did exactly as you said (only symblinking
47 i386-gentoo-linux-uclibc-c++ -> g++-uc) dansguardian still got compiled
48 with gcc's g++ and it was linked against libstdc++.so.6. When I also had
49 a g++ -> g++-uc it really used g++-uc from uclibc++, but then the
50 compile failed.
51
52 ...
53 creating ./config.status
54 g++ -march=i386 -Os -pipe -fomit-frame-pointer -Wall -c String.cpp
55 g++ -march=i386 -Os -pipe -fomit-frame-pointer -Wall -c
56 OptionContainer.cpp
57 /usr/lib/gcc/i386-gentoo-linux-uclibc/3.4.4/../../../../i386-gentoo-linux-uclibc/include/string_iostream: In function `std::basic_istream<charT, traits>& std::getline(std::basic_istream<charT, traits>&, std::basic_string<Ch, Tr, A>&, charT) [with charT = char, traits = std::char_traits<char>, Allocator = std::allocator<char>]':
58 /usr/lib/gcc/i386-gentoo-linux-uclibc/3.4.4/../../../../i386-gentoo-linux-uclibc/include/string_iostream:110: instantiated from `std::basic_istream<charT, traits>& std::getline(std::basic_istream<charT, traits>&, std::basic_string<Ch, Tr, A>&) [with charT = char, traits = std::char_traits<char>, Allocator = std::allocator<char>]'
59 OptionContainer.cpp:84: instantiated from here
60 /usr/lib/gcc/i386-gentoo-linux-uclibc/3.4.4/../../../../i386-gentoo-linux-uclibc/include/string_iostream:93: warning: comparison between signed and unsigned integer expressions
61 g++ -march=i386 -Os -pipe -fomit-frame-pointer -Wall -c FDTunnel.cpp
62 g++ -march=i386 -Os -pipe -fomit-frame-pointer -Wall -c
63 ConnectionHandler.cpp
64 ConnectionHandler.cpp: In member function `void
65 ConnectionHandler::doTheLogMan(std::string, std::string, std::string,
66 std::string, std::string, int, timeval*, bool, int, std::string)':
67 ConnectionHandler.cpp:672: error: `time' undeclared (first use this
68 function)
69 ConnectionHandler.cpp:672: error: (Each undeclared identifier is
70 reported only once for each function it appears in.)
71 ConnectionHandler.cpp:673: error: `localtime' undeclared (first use this
72 function)
73 ConnectionHandler.cpp:674: error: invalid use of undefined type `struct
74 tm'
75 ConnectionHandler.cpp:671: error: forward declaration of `struct tm'
76 ConnectionHandler.cpp:675: error: invalid use of undefined type `struct
77 tm'
78 ConnectionHandler.cpp:671: error: forward declaration of `struct tm'
79 ConnectionHandler.cpp:676: error: invalid use of undefined type `struct
80 tm'
81 ConnectionHandler.cpp:671: error: forward declaration of `struct tm'
82 ConnectionHandler.cpp:677: error: invalid use of undefined type `struct
83 tm'
84 ConnectionHandler.cpp:671: error: forward declaration of `struct tm'
85 ConnectionHandler.cpp:678: error: invalid use of undefined type `struct
86 tm'
87 ConnectionHandler.cpp:671: error: forward declaration of `struct tm'
88 ConnectionHandler.cpp:681: error: invalid use of undefined type `struct
89 tm'
90 ConnectionHandler.cpp:671: error: forward declaration of `struct tm'
91 ConnectionHandler.cpp: In member function `String
92 ConnectionHandler::hashedURL(String*, int, std::string*)':
93 ConnectionHandler.cpp:1180: error: `time' undeclared (first use this
94 function)
95 make: *** [ConnectionHandler.o] Error 1
96
97 I have also tried the ~x86 2.9.3.0_alpha version with similar results.
98 (time missing)
99
100 (I just discovered there is a dansguardian 2.9.3.1 out so I will have to
101 submit a bug report for an updated ebuild)
102
103
104
105 --
106 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] dansguardian and uclibc++ "Peter S. Mazinger" <ps.m@×××.net>