Re: compile error under sol9 (fixed)
"Vincent S. Cojot" <[email protected]>
| Newsgroups | gmane.comp.video.ogle.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Joe,
In MediaLib-2.1, things were under /opt/SUNWmlib/{include,lib}.
In MediaLib-2.2, SUN decided libs would go to /usr/lib and includes should
land in /usr/include. However, in order to provide end-users with some
sort of source compatiblity, they decided to provide symlinks under the
now empty /opt/SUNWmlib so developpers wouldn't have to modify their
sources. The trouble is that instead of doing this:
mkdir /opt/SUNWmlib/include; ln -s /usr/include/mlib*.h /opt/SUNWmlib/include
They decided (laziness, I suppose) to do this:
mkdir /opt/SUNWmlib; ln -s /usr/include /opt/SUNWmlib/include
As a result, stdio.h and others things under /usr/include get included
-again- when you're in fact just including /opt/SUNWmlib/include. This
makes gcc choke on it. The correct thing to do is to make
/opt/SUNWmlib/include a directory and place symlinks to the real include
files.
Vincent S. Cojot
> Thanks for the pointer, tThat was my problem. Any idea what the root
> cause is?