LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-03-2012, 06:10 AM   #1
rosanna.sordo
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Rep: Reputation: 0
problems with x11 libraries after updates


Hi,

I use a software (MOOG), which requires libX11.a.
This software was working properly on kubuntu (both 64 and on 2 different 32 bit distro). After an update, it doesn't work anymore and it is not possible to compile it again.
The errors are pointing to X11:
-----
In function `x11_setup':
undefined reference to `XSetErrorHandler'
undefined reference to `XSetIOErrorHandler'
...
and a zillion of othere undefined references
-------

libX11.a is installed on my pcs, from libx11-dev (2:1,4,4.2ubuntu1).

Any idea on what went wrong and/or how to solve it?

thanks

Rosanna
 
Old 01-03-2012, 08:57 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You must have missed this post --> http://ubuntuforums.org/archive/inde...t-1856457.html when you tried to search for a solution.
 
Old 01-04-2012, 02:02 AM   #3
rosanna.sordo
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
yes, I definitely missed this, I was blaming x11 actually...
Thank you sooooo much, I will try this immediately

Cheers

Rosanna
 
Old 01-04-2012, 02:26 AM   #4
rosanna.sordo
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
ask for help again...

I am using gfortran. The command line for compiling the program is like:

gfortran -Wall sub1.o sub2.o ..subn.o -o MOOG -L/usr/lib/i386-linux-gnu/ -lX11

all sub1.f & co are compiled in advance with gfortran -Wall, no libraries needed.

any suggestion is again very welcomed

Rosanna
 
Old 01-04-2012, 09:13 AM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by rosanna.sordo View Post
ask for help again...

I am using gfortran. The command line for compiling the program is like:

gfortran -Wall sub1.o sub2.o ..subn.o -o MOOG -L/usr/lib/i386-linux-gnu/ -lX11

all sub1.f & co are compiled in advance with gfortran -Wall, no libraries needed.

any suggestion is again very welcomed

Rosanna
Did that link have the solution to your problem? If so, please mark this thread as SOLVED. This sounds like a different question (actually, there is no question, just statements) so it should be a new thread. If this is a new question, start a new thread in the proper forum. If it is somehow related to your original question, please explain how it is germane to the original question.
 
Old 01-05-2012, 01:47 AM   #6
rosanna.sordo
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Apologies for the last message, it was actually obscure.

no, it is the same question, since the link did not solve my problem.

In the link, the way to solve the problem was to put compiler-options-program.c-libraries in this order.
As I stated in the last message, it seems that in my makefile the things are called in the right order.
I reported the exact command in case I am missing something obvious.
 
Old 01-09-2012, 09:39 AM   #7
rosanna.sordo
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
the problem is solved.
It was something in the makefile, I changed here and there, but I have no idea what and I do not want to mess up again, because of deadlines.
Sorry about that. The bottom line is that it was not related to missing libraries or compiler options, possibly I messed up with the syntax of the makefile.
 
Old 02-03-2012, 05:21 AM   #8
Thin_icE
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by rosanna.sordo View Post
the problem is solved.
It was something in the makefile, I changed here and there, but I have no idea what and I do not want to mess up again, because of deadlines.
Sorry about that. The bottom line is that it was not related to missing libraries or compiler options, possibly I messed up with the syntax of the makefile.
Could you please post your Makefile? I'm having the same problem and I can't figure it out.
 
  


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
linking X11 libraries samqazi1 Linux - Software 2 01-04-2006 01:14 AM
x11 libraries are optional? kgustaf Linux - Software 4 09-06-2005 05:42 PM
problem on linking Xm Xt X11 libraries yaotz Linux - Newbie 9 03-07-2005 11:03 AM
X11 libraries not found dannymacom Linux - Software 6 02-22-2004 06:31 PM
X11 libraries? eduac Linux - Software 4 07-11-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:50 PM.

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