Programming :: Compile Iputils Package Statically And Getting Error

Sep 13, 2010

I am trying to compile the iputils package on FC12 statically but badly stuck up on a below error. My requirement is; I need to have ping utility built statically.

Any clue whats missing here? Per my understanding its trying to locate the glibc and when I search for glibc rpm I can see all those packages are properly installed.

[root@bastionNUX iputils-s20100418]# make LDFLAGS="-static -s"
gcc -static -s ping.o ping_common.o -o ping
/usr/bin/ld: cannot find -lc

[Code].....

View 6 Replies


ADVERTISEMENT

General :: Can't Statically Decide Virtual Address Of The Function At Compile Time?

Feb 8, 2010

I have read a couple of articles on how dynamic linking works (those stuff about got, plt and lazy binding), and I am still not sure why you need to do dynamic linking in such a complicated way.Suppose your program uses a function in a shared library that needs to be linked dynamically at run time (like a printf). Why can't you statically decide the virtual address of the function at compile time? After all, all you need to do is to enter the page table entry corresponding to the address of the function if the library has been already loaded to a physical page frame.

View 3 Replies View Related

Programming :: Compile Package C++ With GNU Compiler ?

May 26, 2010

compile package C++ with GNU compiler under Linux, I can share my program's

View 3 Replies View Related

Programming :: Link One Library Statically Others Dynamically - Gcc - G++

Jul 6, 2011

I would like to make gcc to link one lib (pthread in the example) statically, and the rest dynamically.

(See the example .c file at the end of this post.)

compiles fine, but every lib is linked dynamically.


Now every lib is linked statically

Not a dynamic executable

I would like to link the libpthread statically and the rest dynamically. Is it possible?

[url]says if I give the full path to the .a lib then it will be linked statically:

So for me it does not work.

On other sites I found that I should use -Wl,-Bstatic -lpthread -Wl,-Bdynamic, but it also doesn't work:

So, how can I do that?

Machine: Linux 2.6.16.60-0.27-bigsmp #1 SMP Mon Jul 28 13:06:32 UTC 2008 i686 i686 i386 GNU/Linux SLED 10

As an example I used a little demo program from [url]

Here is the code:

View 4 Replies View Related

Programming :: C++ Compiler(G++) Comes Up With Error When Try To Compile A Program Using Qt

May 26, 2010

I am using the C++ compiler G++ to compile my programs on Linux Mint 8 - Gnome.

I recently installed QT and when I tried to compile a simple "Hello World!" program it gave me this error:

Quote:

This is the code in HelloWorldQt.cpp:

Code:

I have tried using GTK instead but I get a similar error.

View 7 Replies View Related

Programming :: Compile EmbeddedQT On My Debian Box For A ARM Processor - Error

Dec 18, 2009

I'm trying to cross compile embeddedQT on my Debian box for a ARM processor.

I've configured with

Everything went OK. I then made, after about 10 mins of compile I get the following error.

View 5 Replies View Related

Programming :: Regular Expression Compile Failed - Throwing Error

Feb 15, 2011

The following command would remove the leading astericks, spaces, slashes, tabs and is present in an awk script.

Code:
gsub(/^[/* ]*/,"")

The above code is working fine when i run in Cygwin on windows machine. But when i run in Ubuntum throws the following error.

Code:
awk: ./Format.awk: line 30: regular expression compile failed (bad class -- [], [^] or [)
^[
awk: 30: unexpected character ''
awk: ./Format.awk: line 30: runaway regular expression /,""); ...

View 2 Replies View Related

Software :: Compile And Install Xmonad Package By Package?

Jul 28, 2011

I originally attempted to compile and install xmonad package by package, and the end result was this:

Code:
$ xmonad /home/adx/.xmonad/xmonad-x86_64-linux: executeFile: does not exist (No such file or directory)
X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8 I figured I left out a flag on the make file or something, so I tried the slackbuild packages next; however, the same error was present at launch.

View 1 Replies View Related

Programming :: Getting Error 'couldn't Compile Regular Expression Pattern: Invalid Character Range'

Nov 19, 2008

I'm having a bit of trouble with a regular expression I'm trying to write and I'm not sure if it's something Tcl specific or my lack of regexp understanding.

[Code]...

I get a number of strings passed to a proc in the format 3|x where x is a number, either 0 or within the range 5-12. My understanding is that that regexp will match the literal '3' followed by a '|', the escapes the special meaning of |, and then 0 or, because of |, a number within the range 5-12. However I'm getting the error 'couldn't compile regular expression pattern: invalid character range'.

View 3 Replies View Related

Programming :: Gpg Error On Upload Deb Package To Ppa

Apr 10, 2010

I have generated a deb package with the python module stdeb and now I am looking to upload it to the Ubuntu PPA. I have a directory listing of:

[Code]...

View 1 Replies View Related

Programming :: Why Is Only Compile Error "'Current:' Undeclared"

Jan 10, 2010

I have a program with a variable named current, but it is not declared. The syntax is current -> othervariable. Theoreticaly there should be no problem with this program. Just wondering what woudl cause this? Which linux include file is current supposed to be declared in?

View 2 Replies View Related

Server :: How To Compile Package In SuSE

Mar 26, 2011

I want to compile a package say firefox, I dont want to use yast or yast2.

View 3 Replies View Related

Fedora X86/64bit :: Get The Statically Linked 64 Bit Libraries For GCC ?

Sep 17, 2009

I am relatively new to fedora. We just install a 64 bit server with FC11. Everything seems to work fine until we start to compile and link some of our existing applications that use statically linked libraries such as libm.a. We are using GCC version 4.4.1 20090725.

I search online and there are a few people reporting similar issues. There are no resolution on those questions. And I can't seem to find any repositories that have those libraries. Would appreciate if anyone can direct me to the right place. This is fairly urgent as it is holdiing up the deployment of the system.

View 3 Replies View Related

General :: Configuring IPv6 Automatically And IPv4 Statically?

May 6, 2011

I've got a Ubuntu Linux box that has two IPv4 addresses and an IPv6 address. This is my current /etc/network/interfaces:

auto lo
iface lo inet loopback
auto eth0 eth0:0

[code]....

View 1 Replies View Related

Debian Configuration :: Compile Sendmail From Source Package

Feb 25, 2010

why it is that when I download the sendmail debian source package for etch and build it using dpkg-buildpackage -b -nc I get a 645543 byte sendmail executable whereas when I download the sendmail binary that is 703292 bytes.

View 1 Replies View Related

OpenSUSE :: Latex Beamer Pstricks Package Will Not Compile Properly

May 6, 2010

I'm experiencing the following problem with latex. A tex file using using the beamer documentclass and the pstricks package will not compile properly. To be more precise, latex-ing results in a dvi file but the pspictures are missing. When using pdflatex I'm repeatedly prompted with a?. Replying with enter all the time gives a pdf file without the pictures again. I'm running 11.2 with KDE and the normal preinstalled texlive. Version 2008-13-15.1-x86_64 from the Update repo that is. A minimal example where this happens would be:

[Code]....

View 1 Replies View Related

General :: Use Compile File Build Package Without Messing Up Library

Apr 11, 2010

I want to build a package from source using src2pkg, but I don't know how to avoid library miss match. Suppose I have Firefox 3.5.2 on Slackware 13.0 64 and I want to upgrade it to 3.6.2. Last time when I venturesomely installed Firefox-3.6.2-current into my Slackware 13.0, I got library miss match. Thus, instead of upgrading the whole packages to current (which is impractical and cumbersome), I want to build 3.6.2 from source. How can I do this? Is there any guideline how to use src2pkg? Or should I rather use makepkg? Do I need to create a Makefile?

View 7 Replies View Related

General :: Compile Programs And Their Dependencies Manually Or Are Package Managers The Only Way?

May 29, 2010

Is there an easier way (without using a package manager) to upgrade programs? For example, I just want to upgrade Amarok. In order to do this, I've had to upgrade every one of it's dependencies because they've all had minor upgrades from the versions I already have installed.

Is there an easier way to compile programs and their dependencies manually or are package managers the only way?

View 1 Replies View Related

General :: Create Linux-libc-dev Package When Compile Ubuntu Kernel?

May 6, 2011

I've compiled the last stable ubuntu kernel (2.6.38-...) following this guide: How to compile a Ubuntu 10.10 kernel but in this guide doesn't explain how create linux-libc-dev package for that kernel? How do I do?

I've tried with fakeroot debian/rules binary-arch-headers but it returns an, IMHO, absurd error:

mkdir /home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/
mkdir: cannot create directory `/home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/': File exists
make: *** [install-arch-headers] Error 1

The error is correct but this folder is created in the same process!

View 1 Replies View Related

Ubuntu :: Package Installation Error / 'E: Unable To Locate Package Xxx'

Feb 3, 2011

I am following this guide to installing eclipse via terminal command-line on Linux. However, this seems to be happening lately with all the packages I try to install..I checked the Synaptic Package Manager and reloaded and rebooted the computer, but to no avail.

View 5 Replies View Related

Fedora Servers :: Make PHP Pages - Shows An Internal Error 500 Page But Doesn't Show On What Line And Compile Error Encountered

Feb 1, 2011

I'm trying to make some pages. For this I try to host them locally. However, when I have an error in my PHP code, the server shows an internal error 500 page and doesn't show on what line and what compile error it encountered. There is no such information in the error log either. What should I do about it, it's not really nice to comment all the lines and then try to uncomment them one by one. I've been googling for a while, but didn't find anything.. I forgot to mention, I;m using Fedora :P, the apache that came with it and mysql and php from the repository...

View 3 Replies View Related

Programming :: RPM: Package Requires Old Version Of Same Package?

Nov 22, 2010

I'm building a certain RPM package that must require an old version of that same package in order to be installed/upgraded. Is this possible?

For example:

For a package foo v5, somewhere in the spec file:
"Requires: foo >= 4"

I'm declaring this on the Requires tag of the spec file, but when I try to install or upgrade the package (without having the previous required version installed) I get no dependency error! As for other dependencies it all works fine. If, instead, I create a package named "bar" that "Requires: foo >= 4", when installing I do get the expected dependency error. I'm thinking it's not possible to require an old version of the same package.

View 2 Replies View Related

Programming :: Can't Compile OS Example?

Apr 22, 2010

I am following this tutorial:But I just can't get it to compile. What do you think is wrong?

Code:
$ nasm -f elf -o loader.o loader.s
[michael:test]$ gcc -o kernel.o -c kernel.c -Wall -Wextra -nostdlib -nostartfiles -

[code]....

View 14 Replies View Related

Programming :: Use G++ To Compile QT Program?

Dec 26, 2010

My Fedora 14 have installed gcc-4.5.1-4.fc14.x86_64,qt-4.7.1-5.fc14.x86_64,
I don't know how to use g++ to compile QT program.
Do I need to set PATH or something else?

View 5 Replies View Related

Programming :: Compile A Program With Gtkmozembed?

Apr 21, 2010

i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and how to compile

[Code]...

View 1 Replies View Related

Programming :: Cannot Compile C++ Code In Terminal

Feb 13, 2011

I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions. I installed g++ for this but the problem persists.

View 4 Replies View Related

Programming :: Can't Compile C++ App *** Exited With Status: 77 ***?

Jan 7, 2009

I'm trying to compile a c++ application in KDevelop in Ubuntu 8.10. I get this error on Distclean:

aclocal
autoheader
automake

[code]....

View 19 Replies View Related

Programming :: Can't Compile F77 Code Using Gfortran Or G77

Nov 17, 2009

I have legacy fortran 77 code that used to compile seamlessly using g77 on an old machine. I've tried to recompile it on a new machine (old one is dead) using the original makefile, but the linker fails under g77, while there are persisting syntax errors using gfortran. I have two source files readmixed.f and subroutines.f. Under g77 the object files are produced using

Quote:

$ f77 -c readmixed.f -o readmixed.o
$ f77 -c subroutines.f -o subroutines.o

but the linking fails with

Quote:

$ f77 readmixed.o subroutines.o -o readmixed
subroutines.o(.text+0x0): In function `norm1_':
: multiple definition of `norm1_'
readmixed.o(.text+0x3987): first defined here

[code].....

View 2 Replies View Related

Programming :: Compile And Install From A Tarball?

May 2, 2011

I recently downloaded a tarball which contains a .src file for a program to convert .ttf fonts to .cxf fonts for use in Qcad drawings. how to compile and install this program in linuxmint 9 or ubuntu lucid. What I downloaded from the ribbonsoft.com website is a tarball called ttf2cxf-0.0.0.1-src.tar.gz. It contains a directory /ttf2cxf-0.0.0.1-src, which contains three files: main.cpp, Makefile, and ttf2cxf. I can post the contents of these files. This is not a high priority problem but i have been messing around with this for a while and have made no progress.

View 9 Replies View Related

Programming :: Compile Function C To Java?

Apr 6, 2010

i want compile function c to java under linux. the bashfile comp :

$ cc -fpic -c $(SRCS)
$ ld -shared $(OBJS) -o module.so

i see in www.swig.org

$ comp -java example.i # line 1
$ gcc -c example.c example_wrap.c -I/usr/java/jdk1.6.0_17/include -I/usr/java/jdk1.6.0_17/include/linux # line 2
$ gcc -shared example.o example_wrap.o -mno-cygwin -Wl,--add-stdcall-alias -o example.so #line 3

error line 3 :

/usr/bin/ld: unrecognized option '--add-stdcall-alias'
/usr/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status

View 1 Replies View Related







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