[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Some confusion with libraries and include files (HELP!!!!!)



Hello!


I'm a bit in trouble here, and any help will be _very_ welcome!

Well,

Once upon a time, I had installed Slink. Some libs went old (GTK and a
large bunch), then I compiled them from source to use the newer
versions. Ok. Libs in /usr/local/lib e includes in /usr/local/include,
ok? I edited /etc/ld.so.conf to put /usr/local/bin before the system's
libraries. Everything worked fine...

Last month I upgraded Slink to Potato, then newer libs came, Glibc went
2.1, newer gcc, binutils and so. Then I tried to compile glTron. Error.
My previously compiled-from-source Mesa3D was disappeared. "Let's
install Mesa3D and Mesa3D-dev (apt) and edit ld.so.conf to look first
for the Debian libs"... ldconfig... glTron compiled, with two screens of
warning... Some errors with the source, I suppose... When I ran it, the
sound started to play, and 2 seconds after it segfaulted. "Let's try
another program!": XMMS. Compiled, installed and ran fine (till the
OpenGL vis-plugin).

Last night I tried to compile CodeCommander 0.4.0:

getprefs.C:15:assignment to 'GdkFont *' from 'gint' lacks a cast

Uh. I understood the error message (I know something about C/C++
programming), but...

I suppose that the creator of this program compiled his code sucessfully
before exposing its lines to the masses, as the glTron guy would do.
What makes me think that the problem is in my System.

It may be a wrong shot, but I'm suspecting that the system is trying to
compile using include files from a version of these libs, and trying to
link with mismatched versions of the libraries, causing mismatched
pointer types and so. What drives me to one question:

If /etc/ld.so.conf is the file who tells to my system where to find the
libraries to link, where is stored the information about what include
files to use at compile time?

Well, in the CodeCommander's Makefile, we have a "prefix = /usr/local",
an "includedir = ${prefix}/include" and an "oldincludedir =
/usr/include".

I a bit lost.

Any help will be _very,_very,_really_very_ welcome...|O


Taupter


Reply to: