On Tue, Nov 11, 2003 at 09:16:35AM -0600, Jeffrey Smelser wrote:
> > I'm trying to get daap going to share the mp3s and oggs on my 
> > fileserver
> > via itunes sharing, with little success.
> > 
> > I'm following the directions at
> > http://www.macosxhints.com/article.php?story=20030711140157143
> > 
> > I have the files downloaded, but whenever I try to compile
> > libhttpd-persistant I get tons of g++ errors, and I'm not sure why :( 
> > 
> > make[1]: Entering directory 
> > `/usr/local/src/libhttpd-1.3-persistent-e/src'
> > gcc  -I../src -g -I../ -I/usr/local/include  -D_OS_UNIX -c protocol.c
> > In file included from protocol.c:41:
> > select.h:29:20: iostream: No such file or directory
>                   ^^^^^^^^
> 
> This is not a good sign. iostream is a core header for c++. My guess is that you 
> didn't run, or don't have a configure program that comes with that. If its there, 
> run it and try again. If it doesn't, your going to have to find where the iostream.h 
> file is, and adjust the Makefile to that directory. (I don't remember where it is 
> since its been awhile since I have coded c++ in linux)
> 
> Basically, the Makefile is looking for headers in the wrong spot. The problem your 
> going to have though, if it doesn't have configure, if there is a library that it 
> uses and it fails again, your going to have to look the old fashion 
> way............google the header.. ;)

I did run the configure program and it seemed to go fine.  When I adjust
the gcc line to this:

gcc  -I../src -g -I../ -I/usr/local/include \
 -I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ -D_OS_UNIX \
 -c protocol.c

which includes the proper location of the iostream header, 
or this to get the other headered it complains about:

gcc  -I../src -g -I../ -I/usr/local/include \
-I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ \
-I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/i686-pc-linux-gnu/ \
-D_OS_UNIX -c protocol.c 2>&1 | more

I get different errors:

naked src # gcc  -I../src -g -I../ -I/usr/local/include \
-I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ \
-I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/i686-pc-linux-gnu/  \
-D_OS_UNIX -c protocol.c 2>&1 | more

In file included from 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iosfwd:45,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ios:44,
                 from 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ostream:45,
                 from 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iostream:45,
                 from select.h:29,
                 from protocol.c:41:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/stringfwd.h:46: parse 
error before "std"
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/stringfwd.h:47: syntax 
error before '{' token
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/stringfwd.h:60: parse 
error before '<' token
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/stringfwd.h:65: parse 
error before '<' token
In file included from 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/cstdio:50,
                 from 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/i686-pc-linux-gnu/bits/c++io.h:35,
                 from 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/fpos.h:44,
                 from 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iosfwd:46,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ios:44,
                 from 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ostream:45,
                 from 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iostream:45,
                 from select.h:29,
                 from protocol.c:41:


The strange part is I don't need to do all these includes when simply
compiling a simple cout << "hello world" program, g++ foo.c -o foo works
fine.  All my emerges compile fine as well, so I'm thinking that these
packages need something specific to get them to go on gentoo.

I guess no one has tried this before :)

alan

-- 
Alan <[EMAIL PROTECTED]> - http://arcterex.net
--------------------------------------------------------------------
"There are only 3 real sports: bull-fighting, car racing and mountain 
climbing. All the others are mere games."                -- Hemingway

--
[EMAIL PROTECTED] mailing list

Reply via email to