LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Virtualbox-ose compilation error using Sbo slack-build (https://www.linuxquestions.org/questions/slackware-14/virtualbox-ose-compilation-error-using-sbo-slack-build-678864/)

samac 10-24-2008 01:57 PM

Virtualbox-ose compilation error using Sbo slack-build
 
Hi all

Using the slackbuilds used to be a real pain in the a**, until I found a great little program by Chess Griffin called sbopkg. This little gem has made interaction with the slackbuilds repository and absolute joy, and upgrading my machine as easy as can be.

But enough of the good stuff, now for the problem.

The only program that I have had problems with is virtualbox-ose-2.0.2 it fails with the following error message.

Code:

The failing command:
        @g++              '-Wl,-rpath,/usr/lib/virtualbox' -fPIC  -Wl,-z,noexecstack -Wl,--as-needed -Wl,-z,origin -m32  -o /home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/out/linux.x86/release/obj/VBoxXPCOMIPCD/VBoxXPCOMIPCD /home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcd.o /home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcClient.o /home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcModuleReg.o /home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcCommandModule.o /home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcdUnix.o    -ldl  -lpthread  /home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/out/linux.x86/release/obj/VBox-xpcom-ipcshared/VBox-xpcom-ipcshared.a  /home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/out/linux.x86/release/obj/VBoxXPCOM/VBoxXPCOM.so  /home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/out/linux.x86/release/bin/VBoxRT.so
kmk[2]: Leaving directory `/home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/src/libs'
kmk[1]: *** [pass_binaries_before] Error 2
kmk[1]: Leaving directory `/home/samac/tmp/slackware/sbo/tmp/VirtualBox-2.0.2/src'
kmk: *** [pass_binaries_before] Error 2

I have been moving everything to slackbuilds but this one is giving me problems.

Please help.

samac

chess 10-24-2008 03:38 PM

samac-

hmm. I just built it in sbopkg and it seems ok (note for others: current sbopkg 0.12.0 has a problem downloading this particular source, but that is fixed in svn. New release of sbopkg will come out soon, or you can grab svn). Anyway, maybe clean out your directories and double check you have the build dependencies for virtualbox-ose listed in the README. I'm trying to figure out from that output what the problem is...

chess 10-24-2008 03:44 PM

You also may want to consider posting on the SBo mailing list. I know the maintainer of the Virtualbox scripts is on that list; I don't know if he stops by LQ.

Bruce Hill 10-25-2008 05:56 AM

ppr:kut is an active member of LQ, and actually posted those
scripts and a link to his repository here before putting them
on there ... just for the record.

Bruce Hill 10-25-2008 05:58 AM

Does anyone else have to scroll vertically about 8000 pixels on
this thread? Whenever LQ has code in a thread now, it causes me
to have to scroll vertically ... this thread is the worst I've seen.

bgeddy 10-25-2008 06:50 AM

Quote:

Does anyone else have to scroll vertically about 8000 pixels on
this thread?
Well I get the scroll bar on samac's posted code (which is very wide) but I take it that's not what you mean ?

ppr:kut 10-25-2008 06:51 AM

I'm sorry, I can't read much from that error message except for where it fails.
Those particular files shouldn't have any special deps, though I might be wrong there.

What you can try is to comment out the following line in the provided LocalConfig.kmk:
Code:

KBUILD_MSG_STYLE        := brief
That will give you more output and probably more information about why it fails.

PS: I have that scrolling pain too....

Bruce Hill 10-25-2008 07:07 AM

Quote:

Originally Posted by bgeddy (Post 3321581)
Well I get the scroll bar on samac's posted code (which is very wide) but I take it that's not what you mean ?

Here's a screenshot. I had to scroll almost to Japan to reach
the Quote button over there >>> it's quite ridiculous.

The scroll bar in the code tagged text is not bad; it's the scroll bar
for the whole browser window that's so bad. I'm at 1680x1050 for
goodness sakes. Look down there at my scroll bar.

samac 10-30-2008 09:05 AM

Sorry it has taken me so long to respond. We had a lightning strike on the telephone exchange.

I have downloaded the VirtualBox-2.0.4-OSE scripts ans source and tried building it without using sbopkg as an interface. I commented out the line
Code:

KBUILD_MSG_STYLE        := brief
and I still get the same problem.

Here it is (hope the scroll is better)
Code:

kBuild: Compiling VBoxXPCOMIPCD - /tmp/SBo/VirtualBox-2.0.4/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcd.cpp
kBuild: Compiling VBoxXPCOMIPCD - /tmp/SBo/VirtualBox-2.0.4/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcClient.cpp
kBuild: Compiling VBoxXPCOMIPCD - /tmp/SBo/VirtualBox-2.0.4/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcModuleReg.cpp
kBuild: Compiling VBoxXPCOMIPCD - /tmp/SBo/VirtualBox-2.0.4/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcCommandModule.cpp
kBuild: Compiling VBoxXPCOMIPCD - /tmp/SBo/VirtualBox-2.0.4/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp
kBuild: Linking VBoxXPCOMIPCD
/tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/bin/VBoxRT.so: undefined reference to `libiconv'
/tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/bin/VBoxRT.so: undefined reference to `libiconv_close'
/tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/bin/VBoxRT.so: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
kmk[2]: *** [/tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/obj/VBoxXPCOMIPCD/VBoxXPCOMIPCD] Error 1
The failing command:
        @g++              '-Wl,-rpath,/usr/lib/virtualbox' -fPIC  -Wl,-z,noexecstack -Wl,--as-needed -m32  -o /tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/obj/VBoxXPCOMIPCD/VBoxXPCOMIPCD /tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcd.o /tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcClient.o /tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcModuleReg.o /tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcCommandModule.o /tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/obj/VBoxXPCOMIPCD/ipc/ipcd/daemon/src/ipcdUnix.o    -ldl  -lpthread  /tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/obj/VBox-xpcom-ipcshared/VBox-xpcom-ipcshared.a  /tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/obj/VBoxXPCOM/VBoxXPCOM.so  /tmp/SBo/VirtualBox-2.0.4/out/linux.x86/release/bin/VBoxRT.so
kmk[2]: Leaving directory `/tmp/SBo/VirtualBox-2.0.4/src/libs'
kmk[1]: *** [pass_binaries_before] Error 2
kmk[1]: Leaving directory `/tmp/SBo/VirtualBox-2.0.4/src'
kmk: *** [pass_binaries_before] Error 2

Hope this helps.

samac

ppr:kut 10-30-2008 09:20 AM

I found a similar error on the vbox-users mailing list, which was caused by the wrong iconv.h header being installed.
VirtualBox apparently needs the iconv.h of glibc, and the other user had libiconv additionally installed.
Can you make sure you only got the one from glibc, and that it's there (/usr/include/iconv.h)?

samac 10-30-2008 01:44 PM

Thanks ppr:kut this worked fine, it took me a bit longer as I got a power cut just as I was re-installing glibc. Still it was good fun rebuilding my system.

samac

ppr:kut 10-30-2008 02:28 PM

you're welcome :)


All times are GMT -5. The time now is 07:26 AM.