LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2008, 02:32 PM   #16
mike rodent
LQ Newbie
 
Registered: Dec 2004
Posts: 24

Original Poster
Rep: Reputation: 15

Hi,

thanks again.

Firstly, why did you download Xnee-3.01.tar.gz rather than xnee-3.02.tar.gz (note capital "X" and small "x"...am I meant to grasp the significance of a capital letter on a release? Does one mean "working version" and the other mean "sthg else"?)... the latter (3.02) when it unpacks unpacks only 3 files, as described earlier in this thread. When I unpack 3.01 I do indeed get all the files you do. Including "configure"... joy.

BUT... things go wrong immediately:

chris@chris-laptop:~/Desktop/Xnee-3.01$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

This is as far as I get. Repeat runs of ./configure get the same output
 
Old 04-13-2008, 05:01 PM   #17
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, first, I just went to the GNU site and downloaded the latest stable release. Hence Xnee-3.01/

Second, you need the development tools in order to compile and install applications. Start the Adept Manager and look for the "Development" group. (I don't think that Ubuntu installs them by default.) The easiest way to get the tools you need may be to install one of the IDEs for C++ development. (An IDE is usually a nice tool to have around in any case, and IIRC the tools you need will be installed as dependencies of the IDE.) You'll also need to lots of libraries, so keep the Adept Manager open so you can go bacl and install libraries as ./configure complains. Then you re-run ./configure and install the next library it complains about. (The "search" function in the Adapt Manager is very handy.)

Installing the kernel headers )for driver applications) is also a "nice to have," but not necessary for *nee.

Oh, another thought: you might see if the documentation lists the libraries you need, and see if you can download then in one shot. That might save some time, eh? Sorry - I haven't looked. Since I only had two libraries missing, it was no problem for me. But it seems to me that you dis a "user" installation of Ubuntu instead of the "developer" one. Of course, I'm working on Fedora, not Ubuntu, and - as I intimated - I do have a "developer" installation of Fedora.
 
Old 04-14-2008, 03:45 AM   #18
mike rodent
LQ Newbie
 
Registered: Dec 2004
Posts: 24

Original Poster
Rep: Reputation: 15
thanks

OK I've installed the Anjuta IDE, which is a C++ IDE.

Unfortunately I get EXACTLY the same output on going "./configure".

If you want to see what configure.log says, the relevant passage is:

gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:2691: $? = 0
configure:2698: gcc -V >&5
gcc: '-V' option must have argument
configure:2701: $? = 1
configure:2724: checking for C compiler default output file name
configure:2751: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2754: $? = 1
configure:2792: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Xnee"
| #define PACKAGE_TARNAME "xnee"
| #define PACKAGE_VERSION "3.01"
| #define PACKAGE_STRING "Xnee 3.01"
| #define PACKAGE_BUGREPORT "bug-xnee@gnu.org"
| #define PACKAGE "Xnee"
| #define VERSION "3.01"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2799: error: C compiler cannot create executables

Quote:
You'll also need to lots of libraries, so keep the Adept Manager open so you can go bacl and install libraries as ./configure complains. Then you re-run ./configure and install the next library it complains about. (The "search" function in the Adapt Manager is very handy.)
Ok... but the present complaint says nothing to me about what I should install/do next...

sorry to be so clueless... maybe my strivings will, however, be of use to others if I can in the end crack this (with your help)
 
Old 04-14-2008, 08:59 AM   #19
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The error message is, as you probably know, telling you that the gcc command is not working correctly.

Here's what a test on my Fedora system yields:
Code:
$ kate test.c
$ cat test.c
int
main ()
{;
return 0;
}
$ gcc -o test test.c
$ ls
test  test.c
$ ./test
$
Try the same code on your system, both from the command line (as above) and from within Ajunta. The error messages you get should be suggestive. (Oh, the kate command at the top of my output is just to start the editor I used to past in the code in your post. If you're on a GNOME system, use gedit or any editor with which you're familiar.)

<edit>
Hum. I just logged on to my Kubuntu installation and tried to compile the test program. It failed to load because the library linker (/usr/bin/ld) was missing,

I went to Adept Manager, and selected the [compiler] tag. Only the old gcc3.3 compiler was installed, so I installed the gcc 4.2 one (along with ADA and F95, 'cause I sometimes want them too), and now the test program compiles and links with no problem.

I guess I should see if I can buld the cnee package here now. (As I mentioned before, I've been working on my Fedora system since I hadn't set up Kubuntu for any development.
</edit>
<edit 2>
Well, I couldn't get it to compile. First I had to install the X library and the pagkage manager:
Code:
$ sudo apt-get install libxtst-dev
$ sudo apt-get install pkg-config
but I couldnt find the gtk+-2.0 that was needed:
Code:
$ ./configure -q
configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:

No package 'gtk+-2.0' found
Where that package is to be found, I have no clue. Nor does Adept Manager.

Perhaps because I'm running Kubuntu.
</edit 2>

Last edited by PTrenholme; 04-15-2008 at 09:17 AM. Reason: Added info
 
Old 04-17-2008, 01:55 AM   #20
mike rodent
LQ Newbie
 
Registered: Dec 2004
Posts: 24

Original Poster
Rep: Reputation: 15
thanks... finally got around to following your actions.

I got the same message about /usr/bin/ld

I went to Synaptic (adept manager) and reinstalled gcc... (although it was already there, version 4:4.1.2-9ubuntu2 (what the significance of the colon here is, no clue)...

got the same message about /usr/bin/ld

at this point I am way out of my depth... my next step is going to be to contact the people who are responsible for the whole xnee bundle (I have registered to post to their site... pending approval!) and ask them if they can help.

thanks for giving it a try anyway!
 
Old 04-17-2008, 02:07 AM   #21
mike rodent
LQ Newbie
 
Registered: Dec 2004
Posts: 24

Original Poster
Rep: Reputation: 15
just a follow-up which you might be able to help with:

doing > gcc -o test test.c
led to the following output:


Code:
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
so... there is a file crt1.o missing when I try to compile. Do you have an idea what this is about?
 
Old 04-17-2008, 07:02 AM   #22
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
No. If you used the "test.c" program I listed above:
Code:
int
main ()
{;
return 0;
}
there is no mention of "crtl.o," so the message you display should be impossible. (I do note that the code generated by the Xnee ./configure file does write its output to ctrl.o, but I simplified that for the test.)

Were you trying ./configure again after you reinstalled gcc? The output you quote looks like something that would have been generated by ./configure if you ran it in a directory to which you did not have write permission. (You can use the directory listing command with the "long" option (ls -l) to se the permissions set on the files in a directory. (Remember that a directory is a file in a Linux system, and you need "write" permission to that file beore you can create a data file in the directory, so you need to do the ls -l in the parent directory of the Xnee directory.)

In any case, the message does show that the ld command is now installed on your computer.
 
Old 04-19-2008, 03:17 AM   #23
mike rodent
LQ Newbie
 
Registered: Dec 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Hi,

Yes, I know there is no mention of "ctrl.o"... in fact this is "ctr1.o" (the figure "one", not "L").

I simply made the test.c as you told me to and ran gcc -o test test.c.

Let's forget about Xnee for the minute... where is this instruction to use/run/do sthg with ctr1.o coming from, I wonder? Is it the linker looking for this file? Why?

It seems gcc is not working properly and this is the first thing I need to try and sort out. You say the linker has been installed. So would this be some header file asking to "#include ctr1.o", perhaps?

NB my C++ is rusty, I prefer java. But if I want to achieve Xnee looks like I'll have to get my fingers dirty at this point.

NB2 my attempt to get in touch with the Xnee people is not proving successful so far... http://www.sandklef.com has a link to create a new account... I tried this a few days ago but they have not responded. Will continue to try
 
Old 04-19-2008, 08:30 AM   #24
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
At this point, I'd suggest that you start a new thread in the Programming sub-forum. Include a copy of the test.c code, the command you used to compile and link it, and the output you got.

Obviously, I make this suggestion because I've got no clue about what's causing your error. Again, obviously, the test.c program compiled and ran with no problem on my Kubuntu system.

Oh, when you present the output, try the command gcc -v -o test test.c so the compiler version is printed, and don't forget to surround the output you paste into your thread starter with code tags. (I.e., start with code inside square brackets, and finish with /code inside square brackets.)

Last edited by PTrenholme; 04-19-2008 at 08:31 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Automator For Linux: Xnee LXer Syndicated Linux News 0 01-18-2008 12:50 PM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM
unpin a package in synaptic sterrenkijker Debian 2 03-01-2006 02:21 PM
Seamonkey package in synaptic smiley_lauf Ubuntu 2 02-15-2006 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration