LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-10-2007, 10:00 AM   #1
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
Compilation Issues x86_64 (rocksaw)


Hello,

I have been trying to compile a program named Rocksaw
http://www.savarese.org/software/rocksaw/index.html

the file is this
http://www.savarese.org/downloads/ro...5.0-src.tar.gz

Under the /src/jni folder
there is a make file.

when I run the make command I get the following error
Quote:
[root@localhost jni]# make
gcc -ansi -Wall -O2 -pipe -pthread -D_REENTRANT -fpic -I/include -I -c RawSocket.c -o RawSocket.o
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../crt1.o: In function `_start': undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [RawSocket.o] Error 1
[root@localhost jni]#
Could someone help me with the problem.

This program has a single c file.
I would be glad if someone could compile this prog. on a 64bit system and give me the compiled librocksaw.so file. Like its urgent...thanks!
 
Old 05-10-2007, 10:35 AM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 69
First off, that package looks like it was intended to be compiled with “ant” from the top-level directory (though it also looks as if you can compile the C portion of the library by manually descending to src/jni and running make as you did). Second, have you tried doing the linking manually? I.e., after the Makefile creates RawSocket.o, try doing
Code:
$ gcc -shared -o librocksaw.so RawSocket.o
If that doesn’t work, try
Code:
$ ld -shared -o librocksaw.so RawSocket.o
 
Old 05-10-2007, 01:53 PM   #3
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Original Poster
Rep: Reputation: 49
the ant part is used for the java compilation. you can compile the C portion alone.
anyhow, I dont think I am getting any RawSocket.o file after the make command. OR I guess I didnt understand what you mean.

Last edited by w3bd3vil; 05-10-2007 at 01:56 PM.
 
Old 05-10-2007, 05:28 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 69
Oh, I see the problem now. You need to have JDK_HOME set and exported so that it can be used by the Makefile.
 
Old 05-10-2007, 07:55 PM   #5
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Original Poster
Rep: Reputation: 49
lol, sometimes reading the README file carefully sorts everything out. Thanks for the pointer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux 32 bit compilation on x86_64 with autoconf skullmunky Programming 3 03-16-2007 03:57 PM
SUSE 10.1, x86_64 performance issues tisource Suse/Novell 1 09-08-2006 01:39 AM
LIRC 0.80 compilation issues thugic Linux - Software 4 08-15-2006 03:28 AM
compilation issues aunquarra Linux - Newbie 1 11-19-2005 03:32 PM
Kernel Compilation issues Dr Croubie Linux - General 3 06-09-2005 05:40 AM


All times are GMT -5. The time now is 09:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration