[Bug 76177] C compiler cannot create executables

Jens Dagerbo jens.dagerbo at swipnet.se
Thu Feb 26 15:32:03 UTC 2004

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
jens.dagerbo swipnet se changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

------- Additional Comments From jens.dagerbo swipnet se  2004-02-26 15:30 -------
OK, I think I see what is happening.. (check the config.log file, like Amilcar suggests)

if you add linker flags to that box in configure options, those flags will be applied to the test builds made during the configure tests. For this to work, but linker will need to be told what those flags mean. Most likely it's not finding one of the flags you pass it.

For instance, if I add "-lkio" to the LDFLAGS box of a "simple kde program" it fails with the following in config.log:

configure:2576: gcc    -lkio conftest.c  >&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lkio
collect2: ld returned 1 exit status

If I on the other hand add "-lkio -L/opt/kde/lib" then the configure test works as expected.

A better way to add flags and linker paths is in the automake manager. Unless I'm mistaken, those flags are only applied to the related and not the configure test. (which is better, unless of course you have a configure test that actually need extra flags.)

I agree with Amilcar, user error. Closing.

More information about the KDevelop-devel mailing list