User Mode Linux -- Compiling problem
Hi,
I want to run the user mode linux for linux-2.6.17.6. When I try to compile the user mode linux I get this error:
In file included from arch/um/include/os.h:13,
from arch/um/drivers/fd.c:14:
arch/um/include/kern_util.h:9:27: error: linux/threads.h: No such file or directory
make[1]: *** [arch/um/drivers/fd.o] Error 1
make: *** [arch/um/drivers] Error 2
I was looking up a lot of time in google.
My steps to compile it is:
export ARCH=um
make defconfig
make
If you have any suggestion, let me know.
Bye.
Using that option the kernel compiles smoothly. The problem here, is that I am not getting the kernel that I want. I am just building a normal kernel.
Any suggestion, let me know
Luis.
Similar Messages
-
Well, I've built a 2.6.15 UML kernel package and I made a filesystem using archbootstrap... I've been wrestling with it for several hours now and I FINALLY have it booting... kind of!
I've had to boot into runlevel 1 and then run init 3 otherwise it hangs! and I also had to follow the "Automatically login some user to a virtual console on startup" to get round agetty being a pain!
Is anyone still playing with UML and does anyone have any similar horror stories (or fixes ) to share..?[/url]A really good place to go for UML stuf is www.netkit.org it's a set of scripts plus a kernel and debian filesystem for controlling UML instances. There's also a really good section of networking turorials, using a network you've built out of UML machines to teach.
What I'm trying to achieve is similar, but I want to build a GUI front-end in python, with drag and drop funtionality to build the network. I also want to be able to run as many as possible on my laptop (512Mb RAM which I may increase as I progress) so I'm trying for as small a footprint as possible with both the filesystem and memory requirements. This is something I haven't got much experience with so any pointers from people (perhaps from an emgedded background) would be helpful! I envisage this, when it's finished, as either a teaching tool for TCP/IP, and/or a tool for organisations to test network configurations as fast and cheeply as possible.
At the moment, the root file system is at 48M; as I mentioned before glibc has really bumped that up so I may look at an alternative clib for later versions. This is running on busybox for all of my executables so far and at the moment I'm using
pacman -Sd <package>
to install new packages and then
ldd <executable>
to find any other library files I need and copy them from the host machine.
Any ideas, points, mistakes, improvements, general abuse would be gratefuly recieved! [/code] -
Smf / sometimes does not configure network interfaces in single-user mode?
From http://groups.yahoo.com/group/solarisx86/message/14785
When booting into single user mode, I often get a message
on the console
t_optmgmt: System error: Cannot assign requested addressand only the loopback interface is configured (lo0 inet, and lo0 inet6).
The system's dnet0 interface is not plumbed any more. Configuration
for the dnet0 network interface is via a static ip address; hostname
in /etc/hostname.dnet0, and and ip v4 address for that hostname in
/etc/hosts. This was a Solaris 10 x86 system, but the same problem
has also been observed on Solaris 10 sparc, and the hme0
interface.
svcs -x in single-user mode reports no problems.
Changing to multi-user mode by typing Ctrl-D still does not
configure the real network interface.
One thing that I've noticed is that smf's log file
/etc/svc/volatile/network-physical:default.log
is missing, when the nic interface was not configured.
It seems that the problem with unconfigured network interfaces
does not happen when I boot directly into multi-user mode.
Why isn't the physical interface plumbed and configured when
booting into single user mode on S10 b69?Hi everyone,
I too have internet connection problem
I have installed Solaris 10 on my Compaq Presario M2000 series
Solaris Management Console Details:
Hostname: HOME
Host ID: 116c4141
Model: i86PC
no of CPUs: 1
CPU: 0
Type: Genuine Intel 6.13.8
Clock Speed: 1,500 MHz
Usage: 1%
Status: Online
Software SunOS 5.10
Physical Mem: 222 MB
Virtual Mem: 729 MB
Virt MEM used: 41 % (298/729) 413 MB available
IP address: 172.19.16.96
Network Connection rtls0: Sending & Receiving Packets
When running WinXP in my laptop before for same IP:
IP address: 172.19.16.96
Subnet mask: 255.255.240.0
Default Gateway: 172.19.31.254
while booting the OS said NFS+ version 4 was detected and the router IP is automatically configured or there is no specific individual router IP, says something like this
# ifconfig -a:
lo0: flag = 2001000849<UP,LOOPBACK, RUNNING,MULTICAST,IPv4,VIRTUAL>mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags = 1000843<UP, BROADCAST,RUNNING,MULTICAST,IPv4>mtu 1500 index 2
inet 172.19.16.96 netmask ffff0000 BROADCAST 172.19.255.255
ether 0:c0:9f:8c:c9
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL>mtu 8252 index 1
inet 6 :: 1/128
rtls0: flags = 2000840<RUNNING,MULTICAST,IPv4>mtu 1500 index 2
inet fe80::2c0:9fff:fe9a:8cc 9/10
ether 0:c0:9f:9a:8c:c9
I have modified the files and checked them:
1. etc/hosts
127.0.0.1 local host
172.19.16.96 HOME loghost
2. etc/hostname.rtls0
HOME
3. etc/hostname6.rtls0
HOME
4. etc/netmasks
172.19.16.255 255.255.240.0
I don't know the network IP so i just write this, can anyone tell me how to find the network IP
5. etc/defaultrouter
172.19.31.254
I made this file and wrote the default gateway IP address, can anyone tell me how to find default router IP since the NFS+ version 4 auto detects or auto assigns router IP
6. etc/resolv.conf
domain myhost.com
nameserver: 172.19.16.12
nameserver: 172.19.16.13
still domain name has't been set, i just wrote this, can anyone tell me how to find the domain name or create one. also the name server is just a fake, but how to find one. If i will be connecting my laptop to various IP whereever i go, so do i need to configure network setting again and again ? isn't there any auto network configuration so that i can connect internet where ever i go and let the system auto configure network settings like in windows XP auto IP configuration detect.
7. etc/nsswitch.conf
in this i can't see "hosts: files" but i could see rest of the details. so I inserted "hosts: files dns" in the third line and saved.
I ran the following command in the terminal to find the details:
#ypmatch host-name hosts
ypmatch: the domainname hasn't been set on this machine
(how to set domain name can anyone tell me?)
#move/etc/netmasks: not found
#uname -n
HOME
#cat/etc/nsswitch.conf
cat/etc/nsswitch.conf: not found
#domain name
domain: not found
#ypwhich
ypwhich: the domainname has'nt been set to this machine
#nismatch nameserver-name hosts.org-dir
hosts.org-dir: Error in accessing NIS+ cold file.......is NIS+ installed?
actually during installation i selected DNS type for network giving a wrong nameserver and domain got skipped later
#getent ipnodes dns (no response)
so all these things i did and found by seeing the forum guidelines. I can see the network connection has receivinh and sent packets seems to be working but can't browse internet, also can't ping a website.
if anyone had the same problem but found the answer than kindly let me know. I am new to solaris but i am trying my best.
awaiting reply from gurus
bye for now................. -
Unable to start in single-user mode - HD dead?
My MacBook Pro (Mac OS X) refused to start, it hung up on the loading screen where you see the apple and the spinning loading wheel. I found out how to fix this, I had to go into single-user mode and type "/sbin/fsck -fy" to repair/verify the disk (I was unable to do so from the Disk Utility via the Install Disc, the repair/verify buttons were just grayed out).
Anyways, doing this from the command line (single-user mode) fixed the problem and I could boot into Mac OS X (there were more issuses after this point which forced me to do an "Archive and Install").
^ that happened a week ago. And happened again yesterday, hung up on the exact same point. So I boot up my Mac into single-user mode, and type in "/sbin/fsck -fy" to start the process. Different from last time, I got a lot of text this time. It also kept going for a longer while. After about 10 minutes, there was a couple of minutes where nothing happened. So I typed "/sbin/fsck -fy" again (as I'm supposed to do so until it says "** The volume (nameofvolume) appears to be OK"), and I got some more text, then nothing happened for a while.
Inpatient as I am, I considered the process to be complete, and restarted my Mac by typing "exit".
I think I ****** up my Mac OS X partition at this point. Because when I try to start my Mac now, it automaticly boots into Windows XP (my other partition). Also I cannot enter single-user mode or Verbose mode, the Mac just ignores and goes right into Windows XP.
I've tried to boot from the Install Disc. When I run Disk Utility, the "HD"(name of Mac OS X partition) is grayed out. I can't do an Archive and Install because it cannot detect my main partition.
An interesting thing though: When I have the Install Disc inserted, I can enter single-user mode (by holding cmd+s at startup). However, when I type /sbin/fsck -fy, it starts verifying the Install Disc rather than the HD.
Also when I open My Computer in Windows XP, I can see the other partition (MacDrive). When I select it, I see:
Free Space: 219GB
Total Size: 168GB
This indicates that my HD is dead/erased, and that my last three months of work is gone. This just because I'm impatient, and didn't wait for the fsck process to complete.
What is the next step? How can I get into single-user mode so that I can verify/repair my disc?On the point of contacting the folks at Alsoft, I have found that they seem to be unobtainable on www.alsoft.com at present.
I wanted to get in touch as I had a small problem with Diskwarrior on updating to 10.5.5 from 10.5.4 ,
Disk permissions ends with an error code.
I wonder if there were so many queries re this that they are unobtainable?
I run 3 machines from a wireless router, an iMac, an HP laptop with XP and a totally obsolete Dell into which i have squeezed W2000, with a resultant mix of browsers but no contact with the folks at Alsoft.
Am I in a minority of one here? -
Starting up in single-user mode problem
I'm trying to start up in single user mode using the Apple article. I ran fsck and everything checked out fine but when I type /sbin/mount -uw / I just get another prompt(#). I want to restore defaults because the users pane is blank. Iv'e tried trashing prefs,ect with no change. I'm sure i'm typing it in correctly. Any suggestions wil be appreciated.
iMac G5 1.8 17 Mac OS X (10.4.3)I'm working with an iBook 600 OSX 10.4.3 that had a problem with a dialog box constantly coming up asking for the keychain password which had no password and you could just cancel out of it. I deleted some keychain user info and that's when the accounts pane became an empty window. So I'm going to use the Terminal to restore from defaults. I'm assuming that I won't loose any data doing this. It looks like my only option other than a wipe of the hard drive.
iMac G5 1.8 17 Mac OS X (10.4.3) -
Hi everyone,
I'm simply all out of ideas on what to do - my best guess is the problem is not specifically hard-drive related since all the 'normal' fixes just won't work.
What could be the cause of my issue? The only way i've managed to keep the Macbook Pro on for longer than a minute is through target drive, where it seems to work just fine - i can access everything. To sum up everything:
1 - I tried resetting the PRAM
2 - I tried to go in to safe mode, it shut off before i could type the password
3 - I tried fsck -fy command from single user mode, sometimes i can get to actually typing it but mostly it shuts off before
4 - I tried to repair disk via target drive - success, no problems detected (and it didnt fix my issue)
5 - I reinstalled OS Mavericks.
The Macbook Pro previously had some problems with the power-button not working properly (a mac-cunning friend of mine had to open up the mac and start it by swiping to metal pins on a specific (battery/power?) part inside it. The problem kinda went away afterwards but it might be related to this?
This is way off my comfort zone of 'diagnosing' issues, so I'm crossing fingers for some good advice.
Thanks,
Aske
DenmarkI think you're right.
If it's hardware related, is it possible to guess at what it might be? It would be nice to know how much I should expect to pay for a repair before actually getting it fixed. -
Occi::Number compilation problem in Linux
Hi,
I got following error when I complile my application which uses OCCI (Oracle C++ Call Interface) shiped with Oracle 9.2. I added the compiler flag -Dlint .
When I dont add the compiler flag I dont get following error. My machine is running RedHat linux 7.3
/usr/bin/g++ -c -I/opt/ora9/product/9.2/rdbms/demo -I/opt/ora9/product/9.2/rdbms/public -I/opt/ora9/product/9.2/plsql/public -I/opt/ora9/product/9.2/network/public myapp.cpp -g -Wall -DLiS -Dlint -DORACLE -I../include -DQT_THREAD_SUPPORT
In file included from /opt/ora9/product/9.2/rdbms/demo/occi.h:40,
from ../include/DatabaseSupport.h:17,
from myapp.cpp:4:
/opt/ora9/product/9.2/rdbms/demo/occiData.h:374: `oracle::occi::Number::Number (char)' has already been
declared in `oracle::occi::Number'
/opt/ora9/product/9.2/rdbms/demo/occiData.h:408: `oracle::occi::Number::operator char () const' has
already been declared in `oracle::occi::Number'
If I dont compile my application with -Dlint compiler flag I cant run the application.
I think this is a bug in occi::Number class
Any solusion??
Thanking in advance
nkranYour code is faulty and has to be fixed.
No compilation problem is present, the compiler correctly barfs.
As this is not a support forum, kindly keep your non-issues out of this forum.
Thank you!!!
Sybrand Bakker
Senior Oracle DBA -
G5 freezing - no problems with ASD - crashing also in single-user-mode
Hello,
I have a PowerMac7,1 with MacOS X Server 10.5.8, which today started freezing and restarting.
After the system froze, sometimes it restarts automatically, or I have to manually reboot it with the power button. In both cases the restart also froze!
The only way to start the system is the clean the PRAM, but after a while it is crashing again!
I managed to run the full ASD 2.5.7 test without error for a few hours (then I stopped), and with the install DVD I also managed to run the system repair (there was nothing to repair).
Both from the system and from the install DVD I cannot run the repair permissions (it freezes!). So I tried to execute "fsck -fy" from the single-user-mode, but the computer froze again!
Is there something else I can try?
Thanks a lot!Two things: DiskWarrior. New HD.
It seems that the crashes are coming into play when the HD is in the game in a meaningful sense, which isn't the case with the install disk or ASD, unless you are trying to do something like disk repair or permissions repair from the install disk. What's interesting is that you can boot into single-user mode, but when you invoke fsck, you crash, whereas disk repair from the install disk, which in essence fsck, runs and reports no errors.
You can also try a safe boot and see how things run there. If you can do that, I would suggest running AppleJack on the system, if you can.
Finally, it's possible that NVRAM has gotten corrupted (a possibility but not a high possibility) so an NVRAM reset might help things out.
After trying the safe-boot and NVRAM routes, if no help, my next tool would be DiskWarrior. In the past, I have had situations where DW found problems that Disk Utility didn't find, though that was in DW 3, probably. Fortunately (knock on wood) DW 4 has not had to confront a disaster situation yet for me. -
Bluetooth problems in single user mode
I've already checked some of the discussions on this topic but did not find the answers that i am looking for. i need to get into single user mode because my computer will not completely boot the osx. however, after i hold down the command-s and the promt comes up, it is af if i have no keyboard at all. i cannot type anything. is this due to the fact that i have a bluetooth keyboard? would going out and purchasing a usb help me out (because i have read some posts that they have the same problem with a usb)? is there any way around this. single user is becoming one of my last alternatives to having to reformat. please help!
bestA wireless bluetooth keyboard would only let you boot into Single User Mode, after that, you will need a regular USB keyboard to type in the prompts, same goes when doing a Hardware Test using the disc provided.
As for some users posted on this forum saying they have not able to continue the Single User Mode under a regular USB keyboard, I am afraid I am one of them... I have not been able to solve the problem as yet and it is kinda "annoying" that there "may be something wrong" with my iMac that I cannot perform fsck, nevertheless I have regularly booted from the OS disc and run Disk Utility, which is equivilent to booting to SUM, but supposingly much better, and my HD checks out fine... so at the moment I have no worries.
In my post there is another person who has regularly keeping me update about this problem and has deduced it maybe due to the internal bluetooth module and the USB inside... rather complex issue that may require me lengthy conversation with AppleCare or have something replace, or "worse" have my iMac sent away for a time for repair or replacement. Since my iMac is doing quite fine, I'll live with it for the moment...
Cheers -
Hi,
Have you ever come across this problem before.
Changes to the state or options of DB SUSDB can't be made at this time. DB Is in single-user mode and a user is currently connected to it.
It's preventing the post WSUS installation task from completing.
I opted to use the WID Database option and it created the SUSDB.
How can I resolve it?
Thanksthis sounds similar to some issues that occurred when KB2720211 was first release (the update does put the DB into single-user mode, to perform some tasks, then switches it back into multi-user mode. sometimes, that switch-back was not performed, and the
DB was left in single-user mode).
You can refer to this thread, the steps are buried in there.
http://social.technet.microsoft.com/Forums/windowsserver/en-US/531d576b-eeaf-40dc-9057-b3adbde6186f/kb2720211-debacle-is-this-acceptable-microsoft-quality?forum=winserverwsus
Don
(Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!) -
Start vm linux Guests in single-user mode
Hi -
I have OBIEE vm template installed and everything is OK, I forgot the roor password for this guest, (ovsroot) is not working I think I've changed it. One option is to start this guest in single-user mode, I tried but you can't see the console until the system is starting services which is a late phase to run linux single command on boot prompt. Please advice how can change my root password using single-user mode.
thanks in advance
OmarOmar M Sawalhah wrote:
Sorry, but I am not sure I am getting this right, where should I add 'single console=xvc0', if you mean the guest, as I mentioned in my post I don't know the root password and I can't logon. please kindly if you can add more detailed steps.When you boot your guest using xm create -c vm.cfg, it will immediately connect you to the console of the guest. That will show you the GRUB boot menu. You then need to edit the kernel boot line exactly the same way you would a physical server. In order to boot into single-user mode, you need to add the parameter single to the boot line. Along with that parameter, you also need console=xvc0 so that the guest uses the connected console to show you the boot process and allows you access to the single-user shell. If you do not use this parameter, you'll need to determine the VNC port used by the guest and used VNC to connect to the console instead. -
I can only start my iBookG4 after deleting preferences. I have to go into single user mode to do so. If I don't go into single user mode, the computer shuts down during boot up. What might be the problem? How can I fix this?
I do not have a startup disk. I did try fsck (based on what I learned from your reply-thank you). This failed (fsck); here is the message:
** Checking catalog file.
Invalid key length
(4, 8198)
** Volume check failed.
/dev/rdisk03 (hfs) EXITED WITH SIGNAL 8.
I am sure this is an easy fix; I just have no clue how. -
I've been having trouble with my ibook g4 lately; it won't fully boot and if it does (which is rare) it will suddenly freeze. I can still move the mouse, but the programs stop. I cannot enter safe mode (whenever I hold down shift for a certain period of time the computer turns off completely) and when I go into Single-User Mode this is what I get:
USBF: 21.984 OHCIDriver: OHCIRootHubPortPower bit not sticking (0)
USBF:22.807 [0x162a400] the IOUSBFamily was not able to enumerate device
jnl: replay_journal: bad block list header @ 0x6e4000 (checksum 0x0 !=ffffffff)
jnl: journal_open error replaying journal!
hfs: early jnl init: failed to open/create the journal (retval 0)
also: singleuser boot -fsck not done root device is mounted read only
when I run fsck: **checking catalog file.
Invalid record count
(4, 12)
**volume check failed
Alright, I don't expect to know what all of this means, but was wondering if anyone knows what it might indicate and any solutions. Thanks in advance for any advice. And again, I cannot seem to boot in safe mode.An "Invalid record count" means you have some file directory damage. The file directory is the file that tells your Mac where all the various files on the hard drive are physically stored. These errors could be what's causing the messages you're seeing in the command line.
You may not be able to repair a problem like this with fsck in single user mode or with the Disk Utility on your Mac OS X install disk. But starting up from your install disk would probably be the next step to troubleshooting. Put your install disk in the iBook, restart and hold down on the "c" key. The installer will startup and ask you to select a language. Then, instead of continuing to install, if you have a Mac OS X 10.3 disk, choose to open the Disk Utility from the Installer menu or, if you have a Mac OS X 10.4 disk, choose to open the Disk Utility from the Utilities menu. Select your hard drive and click "repair disk" on the right-hand side. Hopefully it can repair the problem. When you're done, you can quit the Disk Utility and then quit the Installer to restart back to your hard drive.
If the Disk Utility cannot repair the trouble, then you might need a more sophisticated tool like to repair your drive.
-Doug -
Nigpib-linux driver compile problem
I am running SUSE 9.0, and while trying to install nigpib-linux-0.8.6.tar.gz, I get the following compile error:
Your kernel appears to be configured properly to build NI-GPIB for Linux.
Do you want to proceed? [yn] y
gcc -c -O2 -D__KERNEL__ -I/lib/modules/2.4.21-260-default/build/include -DMODULE -DMODVERSIONS -include /lib/modules/2.4.21-260-default/build/include/linux/modversions.h -D__GPIBDRIVER__ -o ib_linux-2.4.21-260-default.o ib_linux.c
ib_linux.c:419:7: missing binary operator before token "("
make: *** [ib_linux-2.4.21-260-default.o] Error 1
Couldn't build driver.
It has to do with the HZ definition.
Thanks for any help anyone can give!dsb,
Here is a link to a lengthy thread on this very problem. There appears to be a workaround or two mentioned in the post:
Linux Driver Compiling Problem
Let me know if the suggestions in that thread help out!
Craig H.
NI Applications Engineering -
Pro*Cobol PCO Compilation problem in Linux
Hi,
DB :oracle 11g on RHEL 5.5
when we are compiling the (Pro*cobol ) PCO code it is giving us the error :
System default option values taken from: /oracle/oracle11g/app/product/11.2.0/dbhome_1/precomp/admin/pcbcfg.cfg
Error at line 320, column 35 in file BR2385.PCO
WHERE A.SOC_NO = :PARAM-SOC
..................................1
PCB-S-00223, Undeclared variable "PARAM-SOC".
when we change the pcbcfg.cfg file with flag : declare_section=no it's compile without error.
But in this scenario cobol app doesn't run.
if we declare the undeclared variable in the section
EXEC SQL BEGIN DECLARE SECTION END-EXEC.
PARAM-SOC PIC X(25).
EXEC SQL END DECLARE SECTION END-EXEC.
and compile it with declare_section=yes then cobol app. run fine.
Are different files generated (cob,int,gnt) after compilation with the option declare_section=no and declare_section=yes.
Pls help us in this regards. we have lot of file which having these issue and we don't want to do manual changes "EXEC SQL BEGIN" in it.
Thanks in advance..Your code is faulty and has to be fixed.
No compilation problem is present, the compiler correctly barfs.
As this is not a support forum, kindly keep your non-issues out of this forum.
Thank you!!!
Sybrand Bakker
Senior Oracle DBA
Maybe you are looking for
-
Adobe Bridge CS3 - does not display thumbnails for Canon 40D or 50D RAW files
I wanted to use Bridge to view my Canon EOS 50D RAW files and it does not display the thumbnails, just icons. I checked my 40D cr2 files and saw same thing. I have purged the cache and rest the cache preferences and it has not helped. I would like to
-
Since i updated to ios 6 my iphone goes to a black screen when it is in use. I could be texting and 5-10 sec later it goes to a black screen and than to the home page. Its also will be when playing games and so on. Can you please help me with this? I
-
Hi, I want to create an ArrayList property in an Infopath form. When I try to add values to the property I get "The name 'xxxxx' does not exist in the current context". Any help please? thanks PROPERTY private ArrayList Xxxxx get ERROR >>> return xxx
-
Satellite C855-S5194 Windows 8 Recovery OS and software
Hi, I just bought a Satellite C855-S5194 with Win8 and already created system recovery disks. Now I bought an Office and installed it through Microsoft website (no disk). I would like to create an image for the case the hard drive is broken and not
-
We use Open Sans throughout our website. I have it set up in Muse how I want it, but when exporting to FTP I'm getting a lot of text reflowing. Muse seems to be increasing word spacing on export, enough that even over a short 5 line paragraph of aro