Brian Phelps wrote:
> I asked this question in the IRC channel and verified that I have all
> required libraries installed. I am running ubuntu gutsy-gibbon on intel
> core 2 duo (x86_64 arch) and using the stock ubuntu real time kernel. I
> am just trying to build the kernel module to work with the real-time
> kernel, since an appropriate module is not in the repository. 
> 
> I am using the RT kernel so I can do Pro-Audio stuff 
>                                  Code:
>                                     
>                               $ uname -r 
>                               2.6.22-14-rt
> 
> 
> The errors: 
> 
>                                  Code:
>                      kBuild: Linking tstVMStructGC 
>                    /usr/bin/ld: cannot find -lstdc++ 
>                   collect2: ld returned 1 exit status 
>                               kmk[3]: ***
> [/usr/src/VirtualBox-1.5.4_OSE/out/linux.amd64/release/obj/src/VBox/VMM/tstVMStructGC/tstVMStructGC]
>  Error 1 
>                          The failing command: 
>                          @g++ -m32               -g -g
>  -o 
> /usr/src/VirtualBox-1.5.4_OSE/out/linux.amd64/release/obj/src/VBox/VMM/tstVMStructGC/tstVMStructGC
>  
> /usr/src/VirtualBox-1.5.4_OSE/out/linux.amd64/release/obj/src/VBox/VMM/tstVMStructGC/tstVMStructGC.o
>     /usr/lib/gcc/x86_64-linux-gnu/4.1.3/32/libgcc.a -Wl,-Map 
> -Wl,/usr/src/VirtualBox-1.5.4_OSE/out/linux.amd64/release/obj/src/VBox/VMM/tstVMStructGC/tstVMStructGC.map
>  -Wl,--cref 
>                                     
> Also, It makes it far enough so that a kernel module is created, but it
> will not load with insmod, it gives format errors.
> 
> Thanks for any help
> 
> 

ld looks for stdc++.a. Have installed (the package) containing this 
file? In a directory which gcc / ld looks for (look at the -L option of 
gcc). I think it is possible to pass options to gcc by settings the 
CFLAGS environment variable.

Olive


_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to