Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> HELP ASAP need to static link net-tools-1.60
adagre
post Sep 23 2006, 07:20 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 23-September 06
Member No.: 7,300



HI all I am a Computer Security student and my current lab entails me to compile certain binaries as statically linked for purposes of a forensic examination toolkit.

So my problem is I can't for the life of me get net-tools-1.60 to statically link when I run make CC="gcc -static"

I run the file command against arp in /sbin and it still says dynamically linked

I also get an error at the end of the make command output:

inet_sr.c: In function ‘INET_setroute’:
inet_sr.c:108: error: label at end of compound statement
inet_sr.c:200: error: ‘HZ’ undeclared (first use in this function)
inet_sr.c:200: error: (Each undeclared identifier is reported only once
inet_sr.c:200: error: for each function it appears in.)
make[1]: *** [inet_sr.o] Error 1
make[1]: Leaving directory `/tmp/net-tools-1.60/lib'
make: *** [subdirs] Error 2

Does this have anything to do with it??

What should I do I am running out of time to get this thing done

I am running openSuse 10.2 alpha 4

Thanks in advance
Go to the top of the page
 
+Quote Post
adagre
post Sep 23 2006, 11:03 PM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 23-September 06
Member No.: 7,300



Having similar problem with Recode... I think the porblem with recode is the usage of systax to set the libraries to compile statically?

I have tried LDFLAGS="-static"
export LDFLAGS

tried ./configure --enable-static-link

tried CFLAGS=-static
export CFLAGS

It compiles with no errors but when I go to /recode-3.6/src and run file against the executable recode, it comes back as dynamically linked eveytime, I find I am having alot of sucess with LDFLAGS on other source packages.
Any help out there?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 01:58 PM