do_gettimeofday()undefined reference
by anu4 s
Hello:
I am new to linux and facing a simple compile problem. I have written a C
file which is using the do_gettimeofday() function.
#include <linux/time.h>
#include <stdio.h>
main()
{
struct timeval start;
do_gettimeofday(&start);
printf ("%d", start.tv_usec);
}
gcc a1.c --
undefined reference to `do_gettimeofday'
here is the PATH:
echo $PATH
/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/homes/iws/arpalla/bin
I checked that the /usr/include/linux/time.h file got the function
declaration for do_gettimeofday()
Is there anything missing in the PATH variable?
I am facing same error for rdtscl() function as well!!
The Linux version is :
[arpalla]$ uname -a
Linux <..> 2.6.30-2.0 #6 SMP Mon Sep 21 11:03:44 PDT 2009 i686 i686 i386
GNU/Linux
Can anyone please help?
Thanks,
Anu
14 years, 7 months
Live USB from Live CD image?
by Valent Turkovic
Hi,
I saw somewhere a tip how to make LiveUSB when booting from LiveCD
image, but now I can't find that reference...
I would be really grateful for anyone pointing me in right direction.
Cheers.
--
pratite me na twitteru - www.twitter.com/valentt
http://kernelreloaded.blog385.com/
linux, blog, anime, spirituality, windsurf, wireless
registered as user #367004 with the Linux Counter, http://counter.li.org.
ICQ: 2125241, Skype: valent.turkovic, msn: valent.turkovic(a)hotmail.com
14 years, 7 months
Fedora Firewall with multiple public IPs
by Gabriel - IP Guys
Thank you for taking the time to read my message.
I wish to build a fedora box that will take control of all my ADSL
connections - I use 2 ADSL modems with Ethernet connections, and
multiple public static IPs on each. I wish for my internal network to
only see one gateway, and have the gateway determine which route is the
best route based on traffic type, and route availability.
As far as I'm concerned, it should follow these 'basic' rules
* All traffic goes via my unlimited connection (with the
exception of)
* Email - Goes via an SMTP relay for one of our providers, which
has been added to our DNS
* SIP traffic goes via the same provider, as they provide a rock
solid connection
If my A1 provider is absent for any reason, then use my B1 provider,
until A1 comes backup. Any ideas, and suggestions will be appreciated J
I have about 12 public IP addresses to use
---
Kind Regards,
Mr Gabriel
14 years, 7 months
How do I change from a regular kernel to a PAE kernel ?
by linux guy
My laptop has 4GB of RAM. It is currently using only 3 GB of RAM. I
want to upgrade to 8 GB of RAM.
I am currently using a 32 bit non PAE kernel. How do I change to using
a PAE kernel ?
What difference in speed will I notice in doing this ?
Thanks
14 years, 7 months
how to fix BUG: MAX_STACK_TRACE_ENTRIES too low!
by jack craig
I get this on boot, how do i increase the max_stack_trace_entries?
sd 2:0:0:0: [sdb] Attached SCSI removable disk
device-mapper: multipath: version 1.0.5 loaded
BUG: MAX_STACK_TRACE_ENTRIES too low!
turning off the locking correctness validator.
Pid: 974, comm: mount Not tainted 2.6.30.8-64.fc11.i686.PAEdebug #1
Call Trace:
[<c075a209>] ? printk+0x14/0x1b
[<c0457084>] save_trace+0x7b/0x84
[<c04570ee>] add_lock_to_list+0x61/0x93
[<c0458e9a>] __lock_acquire+0x989/0xae5
[<c064a52a>] ? ata_scsi_queuecmd+0x30/0x78
[<c064a52a>] ? ata_scsi_queuecmd+0x30/0x78
[<c045908a>] lock_acquire+0x94/0xb7
[<c064a52a>] ? ata_scsi_queuecmd+0x30/0x78
[<c075c755>] _spin_lock+0x23/0x53
[<c064a52a>] ? ata_scsi_queuecmd+0x30/0x78
[<c064a52a>] ata_scsi_queuecmd+0x30/0x78
[<c062d098>] ? scsi_done+0x0/0x12
[<c062d2fa>] scsi_dispatch_cmd+0x17c/0x1ec
[<c0632220>] scsi_request_fn+0x32f/0x461
[<c05757f3>] __generic_unplug_device+0x2e/0x31
[<c0575a66>] generic_unplug_device+0x26/0x34
[<c0574027>] blk_unplug+0x21/0x24
[<c06a7713>] dm_table_unplug_all+0x36/0x7e
[<c075c54c>] ? _read_unlock+0x22/0x25
[<c06a6251>] dm_unplug_all+0x1f/0x29
[<c0574027>] blk_unplug+0x21/0x24
[<c057403a>] blk_backing_dev_unplug+0x10/0x12
[<c04d9b91>] block_sync_page+0x31/0x35
[<c0494c4c>] sync_page+0x42/0x4b
[<c075afc9>] __wait_on_bit+0x39/0x60
[<c0494c0a>] ? sync_page+0x0/0x4b
[<c0494e63>] wait_on_page_bit+0x80/0x89
[<c0449cd4>] ? wake_bit_function+0x0/0x3c
[<c04955cd>] wait_on_page_writeback_range+0x52/0xdf
[<c0495703>] ? __filemap_fdatawrite_range+0x5a/0x62
[<c04956a1>] filemap_fdatawait+0x47/0x4f
[<c0495eab>] filemap_write_and_wait+0x27/0x32
[<c04df3f3>] sync_blockdev+0x1e/0x20
[<c04f3ab9>] quota_sync_sb+0x45/0xd2
[<c04f3b6b>] sync_dquots+0x25/0x10c
[<c04c1a75>] __fsync_super+0x1c/0x6b
[<c04c1ad4>] fsync_super+0x10/0x1e
[<c04c1b31>] do_remount_sb+0x4f/0x1c1
[<c04d3230>] do_mount+0x220/0x699
[<c0499b50>] ? __get_free_pages+0x23/0x29
[<c04d3714>] sys_mount+0x6b/0xa2
[<c040859d>] syscall_call+0x7/0xb
EXT3 FS on dm-0, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
--
jack craig
jackc(a)LinuxLightHouse.com
831-684-1375 (Office)
831-596-6924 (cell)
IM: jackcraigaptos (AIM)
_________________________________
This email has been ClamScanned !
www.LinuxLightHouse.com
14 years, 7 months
A CPU monitor
by Robert Moskowitz
in Gnome.
The gnome system monitor can itself eat up 25% of one of my CPUs.
So what are the alternatives to seeing CPU usage?
14 years, 7 months
Re: CF and Swap
by Marco Devillers
(I am using daily digests since this is a high-volume list)
Thanks for your responses.
Yes the idea is to install a SATA to CF converter as a cheap SSD, possibly
i'll opt for SSD, but this is just an interesting route I wanted to take.
Boot
speed I dont care about a lot, and I thought it would be interesting to turn
the MacBook Air into a small embedded device. Its minimal enough for my
needs
as it is.
On the issue of how big the disk should be. I use some eye-candy
(svg-icons),
and stick to gcc/Python and vi. No Java, no IDEs. Occasionally I use
inkscape and
Gimp.
Am I correct in assuming that 4GB would be proper for the install of FC10 +
dev tools,
and another 4GB as playing space would be enough?
As for the memory mounted swap. Until now, I assumed that the kernel doesnt
function properly without some swap mounted somewhere. So, on a 2GB machine
I thought I could allocate 256MB just to keep the kernel satisfied. Did this
change in
recent years? If not, it should serve as a development machine, I will
sacrifice memory
for stability here.
Which begs another question: if I install a life CD to HD, is that an
installation
of a Life CD (with some of memory mapped disks), or an installation of FC
proper
with a normal layout. Otherwise I'll try the route of going with a CF (cheap
SSD)
and just run an install of Fedora Life on it. Is this an option?
Thanks again.
14 years, 7 months
Installing Windows afterFedora
by Bill Davidsen
I have managed to go for just under a decade without a Windows machine, but now
I need to have such, and I'd like to add it to an existing machine with a large
enough partition which was used as work area for a project since shipped. The
problem is that while I've put Fedora (and Linux back to SLS and Slackware on
2.2 kernels) on Windows machines, I haven't done it with anything else after,
Linux has always been "the last OS you'll ever need" for dual boot.
I'm not worried about the grub.conf, but the boot sector could be an issue, I
have seen reports that XP with patches and Win7 check the boot sector now (XP at
patch level 3). other than having to rewrite the boot sector, is that going to
be an issue? Any other things I should know?
--
Bill Davidsen <davidsen(a)tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot
14 years, 7 months
Screensaver in F11 loses horizontal sync
by Bob McConnell
I searched both Google and the archives of this list, but could not find
the magic keys to produce useful answers.
I downloaded the Fedora 11(*) live CD and used it to install on two
boxen. Both are showing the same problem. Everything works well until
the screen saver kicks in. At that point the display loses sync and
shows torn jagged diagonal lines across the screen. Any normal input
triggers a recovery and returns to my regularly scheduled programs.
Fedora 11, KDE
Box 1:
Dell GX270 SFF
P-4/Xeon 2.6 GHz
512 MB DDR RAM
20 GB IDE drive
Intel 865 Video Chip
Box 2:
White box
P-4/Celeron 1.0 GHz
512 MB DDR RAM
60 GB IDE drive
Apollo ProMedia PLE133T/a Video chip
Both boxes are talking to a Dell E173FP display through a Compaq KVM.
Display resolution is 1280x1024.
Where can I find instructions on how to re-configure the screen saver so
it inherits the correct video settings?
Where are the rest of the video settings saved so I can enable some of
the options that don't show up? For example, in System Settings->Dislay
the second box only shows a 60 Hz Refresh option. I need to enable and
select 75 Hz. The file I was expecting, /etc/X11/xorg.conf, is not there.
Where can I find instructions on how to install and switch to XFCE?
Bob McConnell
N2SPP
(*) I am trying out Fedora 11 for several reasons. First, at work we
just switched hosting providers which also means we switched our servers
from Red Hat to CentOS. After the switch, IT will no longer be managing
our external or internal servers. So I need to learn enough about the
environment to keep the development and QA servers in sync with the
hosted servers. Second, Slackware 13 does not play well with the Intel
video chips in most of my Dell computers. i.e. both the live CD and
install CD produce unusable configurations even in CLI modes. I have
been using Slackware since 1993, when it replaced my original Soft
Landing Systems 1.02 system (kernel 0.99pl12). But I have not been happy
with many of the recent choices made by that group. These two reasons
finally shoved me past the tipping point to begin leaving Slackware.
14 years, 7 months
RE: ibus still broken
by Stuart McGraw
> From Ed Greshko:
> Stuart McGraw wrote:
> > I asked here a few days ago about ibus
> > which broke after I did a yum update.
> >
> > No one responded but I saw some other posts
> > about different problems with ibus so I
> > waited until some new updates appeared.
> >
> > However after upgrading again just now, it
> > is still broken -- still no input editor
> > appears when I type the enable sequence.
> > However now the (new) ibus icon says "no
> > input window" when left-clicked.
> >
> > Is ibus ever going to work? I write non-
> > english emails everyday and Fedora is
> > useless to me without a working ibus.
> > At this point I wonder if I should blow
> > off Fedora and and just return to Windows?
> >
> >
> Working just fine here....
>
> ibus-table-erbi-1.1.0.20090407-6.fc11.noarch
> ibus-m17n-1.2.0.20090617-2.fc11.i586
> ibus-anthy-1.2.0.20090917-1.fc11.i586
> ibus-table-cangjie-1.1.0.20090309-12.fc11.noarch
> ibus-devel-1.2.0.20090927-1.fc11.i586
> ibus-table-yong-1.1.0.20090422-7.fc11.noarch
> ibus-hangul-1.2.0.20090617-2.fc11.i586
> ibus-devel-docs-1.2.0.20090927-1.fc11.i586
> ibus-table-wubi-1.1.0.20090327-7.fc11.noarch
> ibus-gtk-1.2.0.20090927-1.fc11.i586
> ibus-chewing-1.2.0.20090917-2.fc11.i586
> ibus-table-1.1.0.20090610-1.fc11.noarch
> ibus-sayura-1.2.0.20090703-1.fc11.i586
> ibus-table-additional-1.1.0.20090610-1.fc11.noarch
> ibus-rawcode-1.2.0.20090703-1.fc11.i586
> ibus-pinyin-1.2.0.20090915-1.fc11.noarch
> ibus-table-array30-1.2.0.20090729-1.fc11.noarch
> ibus-libs-1.2.0.20090927-1.fc11.i586
> ibus-1.2.0.20090927-1.fc11.i586
Thanks (to you and also Craig White and Tait Clarridge)
for confirming that the problem is likely specific to
my machine. Those match the versions I have:
ibus-1.2.0.20090927-1.fc11.i586
ibus-anthy-1.2.0.20090917-1.fc11.i586
ibus-gtk-1.2.0.20090927-1.fc11.i586
ibus-libs-1.2.0.20090927-1.fc11.i586
anthy-9100h-8.fc11.i586
kasumi-2.4-2.fc11.i586
> However.... I did "notice" the problem you reported. I didn't do too
> much investigation. But, may have a solution.
>
> It seemed to me that the problem existed on a "saved session". I'm
> running KDE and when I logged out/in it brings up the
> previous windows,
> including a terminal session. What I did, without really
> thinking, was
> to close all open windows, logout and then login. When I did
> this, all
> was well.
I'm using Gnome but tried that and also tried a full reboot
after the updates but that didn't help. I also "rpm -e" all
the packages I listed and reinstalled them.
Last night I updated everything I could see that seemed related
to gnome, gtk, pygtk, Xorg, etc., on the theory that there was
perhaps some unrecognized dependency on a recent package but
it didn't help. (Unfortunately I can't keep everything up to
date over a 3KB/s modem connection that rarely runs unattended
for more than a couple hours.)
The only other thing I notice is when I run ibus-daemon from
a shell with "-v", I see lots of errors like the following that
appear when it's started:
(ibus-daemon:21356): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed :
Can not get value [engine/anthy/shortcut/default->on_off]
(ibus-daemon:21356): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed :
Can not get value [engine/anthy/shortcut/default->circle_input_mode]
...
(ibus-daemon:21356): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed :
Can not get value [engine/anthy/shortcut/wnn->add_word]
(ibus-daemon:21356): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed :
Can not get value [engine/anthy/shortcut/wnn->start_setup]
They all have in common a message about not getting a value
from engine/anthy/shortcut/<something>. Perhaps these are
normal? If not, do they ring a bell with anyone?
I don't see any messages when I type the activate sequence
(alt-grave) in some window.
> FWIW, I saw your earlier query....but since all was working
> for me and I
> was unable to update to your level I just didn't answer.
>
> IMHO, people shouldn't threaten to revert to Windows. It
> just sounds so
> hyperbolic and makes me think that the person isn't committed
> to Linux.
> Almost makes me not want to help them....
In retrospect it did sound a little pissy -- chalk it up to a
high level of frustration. But I have to honestly say that I
have more commitment to using a system that meets my needs than
to FOSS political correctness.
14 years, 7 months