Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2002 21:30:47 -0500
From:      Paul Marquis <pmarquis@pobox.com>
To:        Terry Lambert <tlambert2@mindspring.com>, Martin Blapp <mb@imp.ch>
Cc:        hackers@freebsd.org
Subject:   Re: STLPORT and gcc3 (openoffice porting)
Message-ID:  <200203180230.g2I2UmU85705@pmarquis.com>
In-Reply-To: <3C95407D.227A435F@mindspring.com>
References:  <20020317232850.P387-100000@levais.imp.ch> <3C95407D.227A435F@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 17 March 2002 08:18 pm, Terry Lambert wrote:
> > ../stlport/ctime:25:44: ../g++-v3/ctime: No such file or
> > directory
>
> [ ... ]
>
> > ../g++-v3/cwchar:69: `mbstate_t' not declared
>
> [ ... ]
>
> > Anybody knows what I could do ?
>
> You have to hack up your Makefiles and CXXINCLUDES and CFLAGS
> to make the ports version of the headers files be seen first,
> even though you have DESTDIR set.
>
> The only way this will work is if you hack the Makefile(s) to
> make sure that the absolute patch to the ports versions of the
> paths occur on the command line before the system versions,
> which is not as simple as just setting CXXINCLUDES or CFLAGS,
> and it varies from application to application how you have to
> do it, particularly if your port happens to use something
> evil like "autoconf".
>
> The only other way to deal with this is to deinstall the
> system compiler, and replace it with the new compiler,
> and then replace the system header files with the replacement
> versions of the header files, so that when the DESTDIR crap
> happens, it ends up ointing to the right include files instead
> of the wrong ones.
>
> -- Terry

Since the port of STLport is designed as a drop in replacement for 
the system STL, I've always used the -nostdinc++ option in my 
projects so that gcc won't even look at the default header files.  
This option should be used when building the port itself.  As the 
STLport maintainer, I should have specified that.  :-(

-- 
Paul Marquis
pmarquis@pobox.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203180230.g2I2UmU85705>