pkgsrc-Bugs archive

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

pkg/27775: programs compiled with gcc34 don't find gcc34's libraries



>Number:         27775
>Category:       pkg
>Synopsis:       programs compiled with gcc34 don't find gcc34's libraries
>Confidential:   yes
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 02 04:11:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dieter Baron
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
        
        
System: NetBSD wintermute 2.0_BETA NetBSD 2.0_BETA (WINTERMUTE) #5: Fri Jun 18 
01:19:15 MEST 2004 root@wintermute:/usr/src/sys/arch/i386/compile/WINTERMUTE 
i386
Architecture: i386
Machine: i386
>Description:
        gcc34 does not include a runtime library search path to
        ${LOCALBASE}/gcc34/lib, where it's shared libraries reside.
        As a result, any program that needs runtime support libraries
        (e. g. C++ or Java), doesn't run unless the search path is
        added manually.
>How-To-Repeat:
        compile the following program with ${LOCALBASE}/gcc34/bin/g++:

#include <iostream>

int
main()
{
std::cout << "Hello World.\n";
}

        and see it fail with:
Shared object "libstdc++.so.6" not found
>Fix:
        Have gcc include ${LOCALBASE}/gcc34/lib in the runtime
        library search path of executables it creates.
>Release-Note:
>Audit-Trail:
>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index