I was having an issue with dlopen(),dlsym(),dlclose() in my program. it is giving an error: undefined reference to dlopen,dlsym,dlclose
I know till here that this error occurs when we do not include the required header file or if it does not find the definiton.
But i included the required headerfile #include <dlfcn.h> even then i could not get rid of these errors. i wrote a new c-code t check its functionality, it worked there but when I'm using those functions in another program, which is a part of a makefile, it is giving this undefined reference error.
I've been told to move my code from MFC to linux platform, and so I did, trying to keep as much as I can on the way, now, I had a dll and application, the application I rewrote all anew while the dll I only made changes so it'll be an ".so" file, now, when I try to link using "dlopen", I get the message "undefined symbol: _ZN5ImageC1EiiPh", now, Image is a class in the DLL, which even makes its own ".o" file for the DLL itself. I just can't understand why it happens. I use Image in functions which are not in Extern "C", but the functions I want to use don't use it. Also, I have many globals in the DLL, (because that's how the DLL was written in the past) but none of them is Image...
Is the problem with the fact I include a c++ class in the DLL? How can I solve such a problem? I tried messing with how I link it, but I think that's not the issue here.
I use g++ and -rdynamic --export-dynamic -ldl -lrt for the application
and for the dll I use -shared -Wl,-soname, and -lm, and for the .o files of the dll -Wall -fPIC (although for some reason it doesn't let me do it through the makefile and I needed to do that by hand, which was a little weird. I put it in tag, I put it in line, but it still did nothing...
I am building a queue system (in C on CentOS 5) where each directory queue has a number of process instances 'watching' it. I have a root-permission queue supervisor process which does all the forking, and the instance processes give up root as their first action. For max security each queue is accessible to a different set of users and groups.
I need to keep the RAM requirements as low as possible, so I am relying heavily on copy-on-write (since all memory writes are to shmget() shared memory)
Each process presently dlopen's the libraries it requires after fork, but I'm wondering if I would gain by performing the dlopen before forking a number of instances which all require the same libraries.
Any pointers to mid-level tutorials on dlopen and fork internals would be most appreciated: this is about my third post anywhere since I converted to Linux, but I just can't find the answer to this anywhere online.
The game is quite old (2002!) and I'm trying to mod the old version of it (1.02a), the jk2ded server linux binary.The game engine loads my mod's .so file which I compiled using:
Code:
gcc -shared -static -g -fPIC g_syscalls.c common.c main.c -o out/jk2mpgamei386.so So whilst launching the server for the first time, it loads the .so file using dlopen() without problems and the output is:
Code:
Loading dll file jk2mpgame. Sys_LoadDll(/web/web11/jk2/base/jk2mpgamei386.so)... Sys_LoadDll(jk2mpgame) found **vmMain** at 0xb2ed9413 Sys_LoadDll(jk2mpgame) succeeded! [ NT's Fix ] GAME_INIT
and then it works correctly until I try to change the map the server is on currently.When a map changes on the server,the .so file has to be unloaded.After unloading with dlclose() without errors, when the new map is launched the engine tries to reload the .so into the memory with dlopen() but fails:
If I have a hard-disk with Ubuntu fully installed on it and I want to - all of a sudden - use Windows XP, is it mandatory that I firstly format the hard-disk first? So far, I have used two versions of Windows XP; one of them is from a few years before the other. Both copies of Windows XP when in start-up from booting from CD are causing errors. One of them is a BSOD error (0x0000007B) and the next Windows CD is stopping and giving me an error with setupdd.sys (error code 4). Is it required that the hard-disk is formatted before you even put a Windows boot CD in?
after install slackware with gnome using gnome slack build it is work fine Except some thing :-
the volume it is not work and get this error ((The volume control did not find any elements and/or devices to control. This means either that you don't have the right GStreamer plugins installed, or that you don't have a sound card configured. You can remove the volume control from the panel by right-clicking the speaker icon on the panel and selecting "Remove From Panel" from the menu.
No volume control GStreamer plugins and/or devices found.)) and the System Monitor give me this error when i want check the state of memory and processor ((There was an error executing 'gnome-system-monitor': Failed to execute child process "gnome-system-monitor" (No such file or directory)) and the memory flash not work and give me this error ((Error org.freedesktop.DBus.Error.AccessDenied.))
I am on Ubuntu Lucid (updated till date). I am using Kernel Linux 2.6.32-24-generic Recently I am not being able to run Cheese (webcam tool). When run it is crashing. Upon starting it from prompt I noticed the following error : libv4lconvert: Error decompressing JPEG: fill_nbits error: need 2 more bits The program 'cheese' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'.
[Code]....
I checked in Skype and there the webcam is working fine. I tried with Camorama but that always gives an error "Could not connect to /dev/video0, please check connections."
For some reason (hardware - I am guessing) the LiveCD does not boot on some laptops. The LiveCD worked well on my Dell Inspiron 1525 without any problems but my Fujitsu-Siemens refused to boot up. If you are trying to install or use F12 with the LiveCD ISO image burnt onto a CD on a laptop and fails with the following error:[drm:drm_mode_rmfb] *ERROR* tried to remove a fb that we didn't own Boot has failed, sleeping foreverthis workaround may work for you. Sometimes it will come up with another error about 'Root Device Not Found'
The workaround only works on a bootable USB key for some other reason, created with 'live-usb creator' and not a CD nor a LiveCD image on a USB created on a windows machine. I have tried them all.
I'm not sure what when wrong since I have a few DVDs and they all play well in my normal DVD player, I later attempt to mount it in my Ubuntu 8.10 I'm presented with the following message:
DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
May I know what does this really mean?Is there something in my computer that require a fix?
when ever i give yum update am geting this error. failed to use search generator: failure:repodata/318b9912817ec3309c6defc47d79e878c52a21fd1457d191bb ff060fdb7f7f8d-primary.sqlite.bz2 from rpmfusion-free-updates: [Errno 256] No more mirrors to try. I was trying to install tomcat using yum. Is there any way i can install tomcat other than yum utility. I downloaded he zip folder for tomcat which i downloaded from apace tomcat site.
I have been trying to install MATLAB 2008b as a standalone version; however, every time when the process runs to 18% it shows an error as follows: "There was an error extracting the archives for MATLAB compiler. Chceck that you have enough disk space and rerun the installer."
I did have checked the disk space which is much more than enough. I have also changed few different disks that are way more than enough as well, about 5GB at least, but this error still popped out when it runs to 18%.
I tried to install Fedora 12 on my machine using the Fedora-12-i386-DVD and get the following error: /sbin/load_policy:error while loading shared libraries: lib/libsepol.so.1: cannot read the file data:input/output error exec of anaconda failed install exited abnormally [1/1]
I open an ODS file and edit it and save, fine. But sometimes and for no readily apparent reason it refuses to save the document with the error message:"Error saving the document <filename>: Write error. The file could not be written". I have upgraded my version of OpenOffice but the issue remains. Once it starts with that error the only way to save the file is to actually abandon my change and restart OOffice. Today I lost an hours stuff as the auto save was also failing but not giving me any warning it was failing. I'm not sure if this is an OpenOffice, file system, Fedora or permissions issue though I've not noticed anything similar with other applications. Have set permissions to 777 but still get the error.
I upgraded a system from 10.3 to 11.4 and I get the following error when trying to run mysql:
Will update MySQL now, if you encounter any problems, please read following file: /usr/share/doc/packages/mysql-community-server/README.SuSE Log files inconsistency, please merge following files manually: /var/lib/mysql/mysqld.log /var/log/mysqld.log
How can I correct this? Mysql will not start so I can not run any of the utilities.
Okay, so bear with me for the lack of detail, its 3:46am and I'm really a beginner at this. So here is my issue: I decided I wanted to try Linux, so i got a Disc Image of Opensuse 11.3. while burning this disc image to a DVD-R I had no issues. But after the Validation was done an error appeared stating the disc Image was not burnt due to some error (apologies for not paying too close attention here) although the entire burn completed without issue. So I closed it and figured I would try again with another Disk when i get one.
Well as it turns out I did burn the Disc Image, and decided to try the Install. I have previously installed Ubuntu a few times and figured it was just as easy.. so I restarted my computer and booted from the CD. went through the Installation up to the Partition part.. This kind of confused me at first but I eventually got that it wanted to shrink my existing windows partition in order to make room. so i went along with it and began the install. well about halfway through the installation error messages kept showing telling me there were missing Packs. after about 10 messages I aborted the install for fear of what would happen now i have a shrunken partition and i dont know how to fix or what to do. I would still like to install opensuse but i dont have anymore DVD-R's and my Flash drive is too small. I will try to provide any info i can upon request. Oh, I forgot to mention im Running windows 7. if that helps at all which I doubt it does. I can safely access windows, nothing happened to the information on my drive. Im just missing 50GB of space now.
I'm working with OpenSusse 11.2. I installed and activated the NFS server via yast2. I exported the relevant directory via yast2 (NFS server configurastion) I'm trying to setup my Linux target to boot via NFS. The kernel boots up but fails to mount the file system. When looking on a capture from ethereal it can be found that the NFS server return error when client try to mount the /nfstest directory from this server. The returned error is 13
I am trying a release of Ubuntu has have run into a problem that does not make much sense. I am receiving the following error: Syntax error on line 20 of /etc/apache2/sites-enabled/portal: Invalid command 'ProxyHTMLEnable', perhaps misspelled or defined by a module not included in the server configuration fail! I believe the modules required for this is apt-get install libapache2-mod-proxy-html and it shows under the available modules and it was enabled with a2enmod proxy-html.
The line from the config is ProxyHTMLEnable On. The release is the latest download with updates from, 32bit.
I been running both OS's for a few months now with no major problems besides wireless internet issues. Today, however, as I go to boot my laptop up, the Dell logo loads with the F2 and F12 boot and setup options which both work. Directly after that though I get the message "GRUB loading. Symbol '?' not found. Aborted. Press any key to Exit." then it repeats when I push a key, and then it tells me to press F1 to retry, F2 to go to setup, or F5 to run diagnostics. It passes all the tests in diagnostics. I've tried booting off of the ubuntu cd I used to load it initially with no luck. So I'm stuck at either that error message or in setup but I can't go any further, and it does not change anything when I tried to boot from the cd.
i actually registered here because i'm done with my knowledge of linux, errors which cause my sys to hang and/or reboot randomly after some time. They occur while the system is under heavy cpu, heavy mem-read-write, mediocre mem fill, heavy hdd io (for ~20 seconds every ~5 minutes).
problem background we ordered two identical PCs (specs below), one of them brought those sata errors quoted below from /var/log/messages, the other one runs flawlessly. Same Hardware and Software Configuration. Faulty one brought reallocated sectors right at start, mass seek errors, read errors. 1st try: swap cables, change bios mode ata_piix <-> AHCI. Didn't work. Went away for repair. Stupid Techie did only swap hdd, so problems occured again. Shipping for repair again. Board AND hdd exchanged. no more seek/read errors, no more reallocated sectors. But similar sata problems right after 3 days of previously described workload. Following logs are from after the last repair.
We make everyday a DB Mysql backup on Linux redhat Enterprise. We are using a bash shell script (and putting it in the crontab) to execute it automatically everyday. We added a line to this script telling, once the backup has completed, to find old backup files (stored on hard disk after each backup) older than x days to remove them. We use the find command (search for file type) with the mtime option and in combination with rm command. Everything runs ok but we also want to add some new code to the same line: If find command cannot find anything or fails, for example if it cannot delete file or fails, send the error message (standard error output) to an error file (like error000001 and increasing) and mail the errorxxxx file to an email address for example to admin@companyname.com. What would be the code for this issue to add it to our find command in the same bash shell script??
I am facing some strange problem of mysql replication with ssl, my replications which working fine from more than 6 months currently stopped working after i upgrade mysql in to newver version mysql-5.1.41-2, i create new ssl self singed certs but still no sucess, when client try to connect the master using ssl its gives error SSL connection error ERROR 2026 (HY000), with out ssl its working f9.
I can seeking the problem on net, and i found the below bugzilla url related to that.
[url]
I read it but not get , either new version support x509 ssl certs or not or either new version support ssl replication or not, here below my server configuration for ssl serts
And for client
Both server and clients certs are signed with same ca but still its currently not working after the mysql upgrade first 5.1.41 and then 5.1.41-2
Either as above bugzilla url, currently mysql support ssl replication or not, or either some need to do special for working with ssl. or i wait for newver version of mysql to fix if its bug or not.
I'm unable to change the setting of the actual printer on my system, cant even delete itthe system ask me the root password, after i enter it, i always get this message "There was an error during the CUPS operation:'client-error-not-authorized'."
I'm running 11.2 KDE 4.3.5, recently every time I've tried to use the Updater Applet I get this error after choosing to install an update: PackageKit Error internal-error: Installation aborted by user. Then I run YaST to try to manually install the update and get the following error:
Subprocess failed. Error: RPM failed: error: package kwin-4.3.5-0.2.1.i586 is not installed. Really unsure how to fix this but it's only blocking updates/patches, I can download new programs fine.
Gives error message permission denied. I've seen this in your forums but I still haven't found the fix. I've tried the latest release Wubi downloader too. This one is ran from a CD. Version 10.04
I logged in as user1 with administrative privileges.I right-clicked on a folder on my desktop, then "Sharing Options", then shared the folder as "docs".Then I created a new user with administrative privileges, user2, and logged in as that user.Then, I deleted user1 - account settings, and files.Then I created a folder on my desktop and tried to share it as "docs", but I get the following error: 'net usershare' returned error 255: net usershare add: failed to add share docs. Error was Operation not permitted
I can share the folder as any other name, just not "docs".My smb.conf file doesn't contain the entry.I'd love to know where the configuration file is that's hi-jacked the name "docs".
I recently setup a new server that serves files over samba and is a subversion repository for a number of projects. I did a simple apt-get update/upgrade for which the system requested a reboot. After I rebooted, I got to the login prompt, at which point I ran into a problem. After I enter my correct credentials, it spits out the following error:
sh: error while loading shared libraries libc.so.6: cannot open shared object file: Error 24
and returns me to the login prompt. Samba and Subversion are both still working, I simply can't login to the server either physically or via SSH.
What steps should I be taking to correct this issue? My thoughts are that I may need to use a Live CD to load the system and perhaps do another update, but before I go through that process I just wanted to check in and see if there might be some other solution.
I have tried googling the issue, and while I have seen other posts regarding shared library issues, there was never anything about not being able to login and I never did find anything specific to the error message I received.
I'm running Ubuntu 10.04 with a complete LAMP installation (for local developement purpose).
Everything is OK (I installed phpMyAdmin without problems) except for one big problem: php shows 500 server internal error instead of a complete error report.
I tried editing php.ini and in-script runtime configuration but nothing changed.