Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-31-2009, 01:03 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 14

Rep: Reputation: 0
make error. mex: compile of ' "mfitsio.c"' failed.

Sorry to keep posting make error questions, but it keeps choking and I don't know what to do. Now I have a new errror:

./bin/adetect binaries
make[1]: Entering directory `/usr/local/mfitsio-1.2.1-src/mfitsio'
mex fits_read_image.c mfitsio.c -lcfitsio
mfitsio.c: In function ‘mfitsio_check_coordinate’:
mfitsio.c:1442: error: missing terminating " character
mfitsio.c:1443: error: ‘less’ undeclared (first use in this function)
mfitsio.c:1443: error: (Each undeclared identifier is reported only once
mfitsio.c:1443: error: for each function it appears in.)
mfitsio.c:1443: error: expected ‘)’ before ‘than’
mfitsio.c:1443: error: stray ‘\’ in program
mfitsio.c:1443: error: missing terminating " character
mfitsio.c:1445: error: expected ‘;’ before ‘}’ token

mex: compile of ' "mfitsio.c"' failed.

make[1]: *** [fits_read_image.mexglx] Error 1
make[1]: Leaving directory `/usr/local/mfitsio-1.2.1-src/mfitsio'
[root@supernova2 mfitsio]# emacs mfitsio.c &

Is there any tutorial I can view to understand how and where the libraries should be pointing?

thanks for your help
Old 07-31-2009, 10:56 PM   #2
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 230
Blog Entries: 2

Rep: Reputation: 41
First off I want to let you know that I am fairly new to modifying source code, but I thought I might try to help.

I looked over the code for mfitsio.c and I noticed at line 1442 where the error stated
mfitsio.c:1442: error: missing terminating " character
Here's the code in the mfitsio.c file. Lines 1436 to 1445.

    if (data2[ i ] < 1 || data2[ i ] > naxes[ i ]) {
      MFITSIO_PRINTF("37 Invalid component at index %d of ending"
		     " pixel: %d\n", i + 1, (int)data2[ i ]);
      MFITSIO_ERR("Ending coordinate out of range.");
    if (data2[ i ] < data1[ i ]) {
      MFITSIO_PRINTF("38 Component at index %d of starting pixel must be
                      less than or equal to component %d of ending pixel.\n");
      MFITSIO_ERR("Invalid subset (hyper)region.");
If you look at the first MFITSIO_PRINTF() you can see that each part of the string ends in ", however, the second one, doesn't. I wrote a simple program to see what would happen if I had strings like those in a printf() and sure enough, the " had to be on both lines, also, when I tried to compile the simple program I wrote with the lines broken it generated quite a few errors that were just not there. So maybe this will fix it, and probably be a good idea to write to the people who work on the software about it, too, if this fixes it.

<Edit> I just checked the newer files for mfitsio 1.2.4, it has this problem fixed. So you might try to compile that one instead.

Last edited by Mol_Bolom; 07-31-2009 at 11:10 PM.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing mfitsio. Error: make[1]: mex: Command not found mmateen Linux - Software 2 07-30-2009 08:48 PM
"Failed Dependency error" while installing RPM for "DateTime" perl modules giridhargopal.cj Linux - Newbie 7 11-19-2008 01:05 AM
"failed to make symlink " error adoniskhandu Linux - Newbie 2 06-16-2007 02:27 PM

All times are GMT -5. The time now is 12:36 AM.

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