Bug 152034

Summary: link error in dcop/dcopidl and dcop/dcopidl2cpp due to missing library path in Makefile
Product: [Frameworks and Libraries] kdelibs Reporter: ndeb
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description ndeb 2007-11-09 00:40:45 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    Compiled From Sources
Compiler:          gcc version 3.2.3 
OS:                Linux

I am trying to compile kde-3.5.8 from source on RHEL3.

During linking the linker fails to find a matching library for "-lqt-mt" because the qt path (-L flag) is missing in the linker command-line. The problem is in the Makefile in this line:

dcopidl_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
        --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)  \
        $(dcopidl_LDFLAGS) $(LDFLAGS) -o $@

If $(AM_LDFLAGS) is added after $(KDE_CXXFLAGS), the linking works fine.
Comment 1 Pino Toscano 2007-11-09 01:05:51 UTC

*** This bug has been marked as a duplicate of 151095 ***