Programming :: Add Version Information To An Executable?

Mar 2, 2010

when compiling a c++ program in g++ on Linux, how can I add version information to that executable and if possible is there a Linux utility to read the version information?

View 2 Replies


ADVERTISEMENT

Debian Programming :: How To Include Version Information In SO Library

Oct 8, 2014

Suppose I have the library code in library.cpp. I found that to include the version information in the .so library, I had to use these command forms:

Code: Select allg++ -Wall -fPIC -c library.cpp
g++ -shared -Wl,-soname,library.so.0 -o liblibrary.so.0.1

The howto then continued to recommend creating symbolic links pointing at the newly compiled library. [URL] ....

The result is, during the booting sequence, I am receiving this error:

Code: Select alllibsystemd-login.so.1: no version information available (required by /usr/bin/dbus-daemon).

The library is the one I am working on.

View 5 Replies View Related

Ubuntu :: No Version Information Available?

Mar 23, 2011

When I run apt-get command I get some errors. For example this:

Code:
mahmood@localhost:~$ sudo apt-get update
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)

[code]....

View 14 Replies View Related

Slackware :: /usr/lib/libng12.so.0: No Version Information Available?

Feb 15, 2010

I'm trying to install bibble5pro. The only packages they provide are binaries:x86_64.deb, i386.deb and i386.rpmI converted the rpm binary to tgz and installed it on my slackware-current (works fine).Then I tried to install it on slack64-current and slack64 13 (both multilib). I tried both rpm2tgz and deb2tgz. The .tgz package gets converted and then installs without any errors. When I run bibble5pro I get the following:

Code:
Install Path: /opt/bibble5pro
LD_PATH: /opt/bibble5pro/lib:

[code]....

View 4 Replies View Related

Debian :: Running Synaptic - No Version Information Available

Aug 6, 2010

I have installed Openshot Video editor, then it did not work (due to some python bindings I guess) so I uninstalled it. After that everything seems to start failing including, running aptitude and apt-get. Here is a message when I try to run apt-get from command line (sudo apt-get install -f)

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up shared-mime-info (0.71-3) .....

Here is I am trying to run synaptic from command line:
synaptic: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libxml2.so.2)
/usr/bin/python: /usr/local/lib/libz.so.1: no version information available (required by /usr/bin/python)
/usr/bin/python: /usr/local/lib/libz.so.1: no version information available (required by /usr/bin/python)
synaptic: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64

This is from "/usr/lib$ ls libz* -al"
-rw-r--r-- 1 root root 90284 Dec 28 2009 libz.a
lrwxrwxrwx 1 root root 16 Jun 29 23:18 libzbar.so.0 -> libzbar.so.0.2.0
-rw-r--r-- 1 root root 183284 Jun 9 11:13 libzbar.so.0.2.0
lrwxrwxrwx 1 root root 18 Jun 15 21:13 libzephyr.so.4 -> libzephyr.so.4.0.0
-rw-r--r-- 1 root root 51396 Nov 29 2009 libzephyr.so.4.0.0
lrwxrwxrwx 1 root root 15 Jun 16 20:40 libz.so -> libz.so.1.2.3.4
lrwxrwxrwx 1 root root 15 Jun 15 20:27 libz.so.1 -> libz.so.1.2.3.4
-rw-r--r-- 1 root root 79980 Dec 28 2009 libz.so.1.2.3.4

View 14 Replies View Related

General :: Verify Vmware Drivers To Test Version Information?

Aug 16, 2010

I have noticed kernel.org with kernel releases on the mainline.Example: 2.6.36-rc1 is currently on the mainline. What does it mean? Does it mean that feature changes been freezed.Does it mean "2.6.36-rc1 Released". I have job to verify vmware drivers to test the version information, Can I test it now through compiling for vmware drivers now. Lots of Git activity goes on after kernel comes on mainline. Does it mean our vmware drivers can only be tested after kernel if finally announced

View 4 Replies View Related

Ubuntu Installation :: Catalyst Control Center Displays Incorrect Version Information?

Oct 20, 2010

I have installed Catalyst 10.10 to Ubuntu 10.10 using the following methodology:

Code:
wget http://someplace/ati-driver-installer-8.783_RC1-x86.x86_64.run
chmod +x ati-driver-installer-8.783_RC1-x86.x86_64.run

[code]....

View 1 Replies View Related

Programming :: Cpu Time Taken By An Executable To Run ?

Jun 2, 2010

I want to find the cpu time taken by an executable to run.. the executable is writting the output to a file. i want to write the time takem by cpu to the same output file.

like:

abc is my executable which is taking input as input file and writing the result in output file.. i want to append cpu time information in the same file. can i do it with time command?

View 5 Replies View Related

Programming :: MinGW - Performance Is Degarding - Version To Win32 Version

Jul 10, 2009

I've made a linux app that I'm porting to win32 winth MinGW and MSYS. It's a ticker app that reads then renders a text file to a pixmap (a tall single-line image), then it kind of scrolls the pixmap by drawing a part of it to a drawing_area, using gdk_draw_drawable() within a timeout handler set by g_timeout_add().

The problem is it works fine on linux (the scrolling is really smooth and that's the goal) but the win version is choppy and uses at least 90% of cpu resources (vs 15% with linux) like there is a big performance problem. And I'm not even sure that double buffering is set. Is it related to some mingw config or drawing_area stuff or gtk for win?

View 5 Replies View Related

Programming :: Cannot Run C++ Executable File From Ubuntu GUI?

Apr 17, 2011

I have written C++ programs on Windows. I am now learning Linux to ensure my software is portable. I can compile and run C++ programs from the bash shell, but I cannot run my executable programs from the GUI.Here is my sample program:

Code: #include <iostream>
int main()
{

[code]...

View 3 Replies View Related

Programming :: 32-bit Executable Getting St9bad_alloc @ 3GB Mem Allocation

Jan 13, 2010

I'm maintaining a c++ application running on a 64-bit RHEL5 server w/32GB ram, but compiled to be a 32-bit executable with g++. The application handles large amounts of data, and has lately been throwing a st9bad_alloc exception. "top" shows the application as dieing right around when VIRT=~3GB, SWAP=~1.5GB and RES=~1.5GB. In the core dump I can see that it's consistently failing to push_back() a piece of data onto a std::vector (which already has hundreds of thousands of objects in it).

I know 4GB is the maximum address space for 32-bit applications. I've learned from this lwn article that a 32-bit kernel reserves 1GB of address space, leaving 3GB for user space. However I'm not running a 32-bit kernel, so that really doesn't answer anything.I wrote a dummy app which called malloc() over and over in a for loop, and it is able to allocate right up to the 4GB before it fails. I don't understand why this one seems to be able to allocate more.

The only difference between the two apps (besides malloc vs std::vector:ush_back), is that the 3GB crashing application attaches to 512mb of shared memory.Anyone have any ideas why this application would be crashing at 3GB? Is there any more diagnostics I should be doing? I would ultimately like to port this to 64-bit for a number of reasons, but it is a big undertaking for my organization, and I'd like to better understand what's going on here.

View 3 Replies View Related

Programming :: Call C Executable Inside C

Jan 8, 2010

i have only basic knowledge of C so guys plz help me...is C language support call the C executable inside the C ?example contect mainA.c have a many function define in the struct,when i compile mainA and make a executable the name is ( A ),can i use executable C inside the C <my C program call the executable ( A ) > .

View 9 Replies View Related

Programming :: Run Multiple Instances Of A Jar Executable?

May 5, 2009

It is possible to run multiple instances of a jar executable. Is it possible that only a single instance of the jar runs? Wrappers like JSmooth or Launch4J can be made to run as a single instance. But since there are no such wrappers for linux, I need a way to restrict the jar to a single instance. How to embed the jar file into an executable such it runs a single instance?

View 14 Replies View Related

Programming :: Call The Executable File From The GUI?

Jun 1, 2010

I have created a executable file using c and I have also created a GUI using GTK+. Now how can I call the executable file from the GUI with arguments passing to the executable file.

View 4 Replies View Related

General :: Fatal: Bad Magic Number In Executable `prime' (not An Executable?)

Sep 3, 2010

I am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?

fatal: bad magic number in executable `prime' (not an executable?)

View 1 Replies View Related

Programming :: Calling Gcc From Executable File / (makefile)

Oct 4, 2010

I am trying to use a software package written in ANSI C. It has a makefile which has to be executed first.

As soon as I execute it I get messages like: line i: command not found.

Commands for which I am getting errors :

CC = /usr/bin/gcc
GCCFLAGS = -c -Wall
ROOTDIR = .

My gcc compiler is located in the above directory only. In ROOTDIR also I tried giving the path in which all the required files & folders are present but still I get the command not found error in all the lines.

View 7 Replies View Related

Programming :: Hide C++ Codes In An Executable File?

Apr 4, 2011

I wrote a c++ program but for security reasons I need to make sure that no one can read my codes by my ".out" files. I did everything I could. But everyone can see it by "strings Alpha.cpp".I heard that g++ has some options to do so.

View 7 Replies View Related

Programming :: How To Use Bashrc To Redirect Executable Call?

May 24, 2011

I need to redirect a /usr/sbin/sendmail command to $HOME/bin/msmtp .The sendmail command would be coming from a PHP5 application. I'm assuming the best way is to use .bashrc, but .htaccess is also available.The remote server is a shared web host which is running Debian 4.0.I do not have root access.I have SSH access.

View 2 Replies View Related

Programming :: Random Libraries Are Not Directly Executable?

Jun 30, 2011

Since I read that executing a library could return its version number, I ran "/lib/libc.so.0" on uClinux, but it triggers an error.I'm told that random libraries are not directly executable. Does someone know what a random library is?PS: In case that matters, here's the short version of the error:

Code:
Undefined instruction
<5> - May be used to emulate instructions that are not defined for

[code]....

View 2 Replies View Related

Programming :: Removing Symbols From Binary Executable File

Aug 21, 2010

Arm-linux-strip for removing the symbols from binary executable file after compilation. What exactly the symbols means.

View 1 Replies View Related

Programming :: CVS Client That Comes As A Single Executable File Or Web Interface?

Oct 10, 2010

My senior project team at Penn State is starting to write our code, and I was looking for a revision control system to manage it. I was going to use CVS, but I can't find a client that doesn't have to install something on the local machine(we dont have administrative permissions on school computers). Is there a CVS(or Subversion or anything else) client that comes as a single executable file or web interface?

View 3 Replies View Related

Programming :: Store Executable Code In The Value Part Of A Hash?

May 28, 2010

I was reading about Ruby code blocks, but it's all a bit hazy.My questions:1. Can you store executable code in the value part of a hash (err...associative array)2. If you did, how would you call the code?3. If you executed this stored code, would it be possible when doing soto pass in an object to the code that it could use?

View 1 Replies View Related

Programming :: Query Of Commands That Made Executable With Chmod +x?

Aug 24, 2010

I have written a query of commands that I made executable with chmod +x, but this is an old version of what I'm writing. I'm in need of a way to determine the Operating System the user is using so that the script will run yum or apt-get on the right OS's.

View 11 Replies View Related

Programming :: Linking And Compiling Multiple C++ Files Into One Executable Program?

Dec 17, 2009

I have 3 c++ files, classdef.h (header file with class definition), methods.cpp (class methods) and program.cpp - the program itself. Both .cpp files have

Code:

#include "classdef.h"

in files. How I can link the files together and compile them in one executable program? I am using Geany IDE for coding.

View 4 Replies View Related

Fedora :: Make A Executable (application/x-executable)

Aug 21, 2011

I hope this post stands in the right section.I have a commandline i need to enter in terminal when i want to run a program. i tought lets put that piece of command in an .sh file and just click the file to run the program (then i dont need to open terminal first an give in the command) however the .sh file does not open the program. so i propably need to make a executable (application/x-executable).

View 3 Replies View Related

Ubuntu :: Cannot Open An Executable File Because Of Executable Bit?

Jun 20, 2010

I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?

View 3 Replies View Related

Programming :: Write A Script That Makes File Executable And Writes A Message That It Has Been Done?

Mar 10, 2010

like my alias a retired person, and Its never to late to learn something½ve just installed Ubuntu and found a tutorial online about bash-script.Manage some, but I cant to this one:[Write a script that makes file executable and writes a message that it has been done.If I run the command > <scriptName> <fileName> , then the file fileName should be executable and then it should indicate that fileName have been executable.]

Ive read man pages up-n-down and search the web, and I think I should let the script use chmod and ls -l, but I cant get the hole picture here. Actually I have nothing to show up, so I hope someone could help me with some ideas or a soloution - just to the how it should look.This is my first post, ever, at a forum like this, so please be nice if I didnt follow any rules here, I dont know if you even will answer this post, but at least give me some clues, a skeleton-code ti be based on

View 2 Replies View Related

Programming :: Linking Of Fortran Executable Taking Exorbitant Amounts Of Time?

Mar 24, 2010

The issue I am currently facing is more of an annoyance / curiosity, and it may not even be a problem, but it sure feels like one. Background: I am becoming a computational chemist (grad school begins in the fall) and the code I run is all in fortran. I am currently compiling with gfortran. When I compile the code (on a box running ubuntu server), everything appears to compile fine, but the linking stage is taking five to ten minutes. I ran the time command while making it and got the following results.

Quote:

time make
gfortran -c -O3 -fomit-frame-pointer -finline-functions -ffast-math suijtab.f
Linking testCompile ...
done

[code]...

I just don't understand why it is taking 5 minutes of real time if it only takes 10 - 15 sec of system time?

View 4 Replies View Related

Programming :: Re-mapping Stdio For A Fork'd/exec'd Executable Doesn't Seem To Behave

Jan 27, 2011

I have a monitoring program ( GIT link to sourceforge ) which I'm trying to use to track when a child exits/dies/whatever. I'm calling fork(), then close for 0,1,2, and then opening /dev/null, monitored.stdout, and monitored.stderr as a replacement. I'm not sure if I've done something incorrect (perhaps I should use dup2 for explicit assignment?) but it appears that printf() messages are just being blackholed. I've tried setting the line buffering as a last ditch effort. On a different system, using code similar to the spawn_monitor() function, this appears to work fine, which makes me think I'm relying on some implementation specific detail.

Relevant function, for those who don't click links:

Code:

26 int spawn_monitored(char *argv[])
27 {
28 int exit = 0;
29 pid_t child;
30 const struct rlimit inf = {

[code].....

View 14 Replies View Related

Programming :: Running Gcov When Executable Has Command Line Input Options

Mar 3, 2011

I have an executable with input options, like so:
Code:
./executable -n 42 -s 42
I've added gcov to the makefiles (compiling with --coverage, -fprofile-arcs, and -ftest-coverage, and linking with -lgcov). It builds fine and creates executable.gcno.

When I try to run gcov, gcov things the options belong to it:
Code:
$ gcov ./executable -n 42 -s 42
gcov: invalid option -- 's'
Usage: gcov [OPTION]... SOURCEFILE...
When I use quotes this happens:

Code:
$ gcov './executable -n 42 -s 42'
executable -n 42 -s 42.gcno:cannot open graph file

The command line options must remain. How can I get gcov to generate the same .gcno file it later looks for?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved