LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-26-2006, 01:17 PM   #1
marcelo61
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
Gaussian03 on Suse 10.1


just created this thread to clean a previous thread, a bit more elemental.
-----------

The thing is to install Gaussian03 on Suse 10.1

When compiling it stops with this error:

util.so: undefined reference to `pthread_kill_other_threads_np'

Any ideas?

Thanks, Marcelo.

Last edited by marcelo61; 09-26-2006 at 01:20 PM.
 
Old 09-27-2006, 11:10 AM   #2
marcelo61
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
a bit of advance

but still working on it.
I'm posting this for the record, since there has no been any interest in this thread yet.

----------

1. edit mdutils.c, and delete the line 1315:

" pthread_kill_other_threads_np();"

2. edit i386.make

RUNCC=pgcc
OPTOI = -tp $(MACHTY) -Mdalign
OPTFLAGO = $(OPTOI) -O3 -Munroll

3. compile as usual

-----

This will actually finish with no errors. However, when you call g03 to run any job, it exit with segmentation fault.

If instead you start gaussian with l1.exe, it will run with no problem,
except that at the end it delete the input file.

Anyone knows what exactly is this g03?
It looks as a driver for the whole program, but is kind of ridiculous that such small portion crashes and the rest of the program goes ok.

Ideas?

Thanks, Marcelo
 
Old 10-18-2006, 04:23 PM   #3
Xiaohu
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
Hi, Marcelo,
Recently, I'm also trying my best to install Gaussian 03 on my SUSE 10.1 desktop, and i had exactly the same problem as you encountered.
What I also tried is to install the Gaussian 03 on my groupmate's desktop with SUSE 9.3, and it turns out it works. I did a little bit research on google, and found the following information:
pthread_kill_other_threads_np() is obviously part of pthread, the
posix threads. Posix does not define such a function.
Linuxthreads added an extention because linuxthreads is a hack,
and had no better way to deal with the problem. The problem is
that on linuxthreads you need to kill all other threads in some
cases which aren't normally needed, like for instance before calling
exec*(). On NPTL this is done automaticly and you do not need to
go and kill them manually.

On all arches in Debian, we have linuxthreads, except for the
amd64. Amd64 does not have it because we only support a 2.6
kernel, and on a 2.6 kernel you use NPTL. There is no reason for
us to have linuxthreads. On other arches, it selects either
linuxthreads or nptl at runtime depending on your kernel version.
This is even a problem for some programs and you might need to
set LD_ASSUME_KERNEL to get some programs working properly.

In version 1.3.0 you'll find this code in
../src/sighandler.c:licq_handle_sigsegv():

#ifdef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
// only available in LinuxThreads, not in NPTL
pthread_kill_other_threads_np();
#endif

although this is from a federa forum, i thought it maybe helpful,
then i tried to type man pthread_kill_other_threads on the SUSE 9.1 desktop, and it find the manuel page for it, but when i typed the same command on my SUSE 10.1 desktop, it doest not find any manuel page, so which kind of confirm what i've found on the forum. So i went to mdutil.c,comment out the
#ifndef linux86_64
pthread_kill_other_threads_np();
#endif

and add
#ifdef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
pthread_kill_other_threads_np();
#endif

and recompiles, it works, and i can run gaussian on my desktop, so i guess it's pretty much the same problem as in the federa forum. So i suggest you type man pthread_kill_other_threads_np on your desktop to confirm it. I think it's the universal SUSE 10.1 problem, if i have it, then you will probably have it. Hope this helps.
 
Old 10-24-2006, 03:23 PM   #4
marcelo61
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Xiaohu,

thanks! I just tried your solution and works just fine on Suse 10.1
It is cleaner than my previous solution so I certainly recommend this one.

Marcelo.

------------
As a summary, the only thing to do is to modify mdutil.c
replacing:

#ifndef linux86_64
pthread_kill_other_threads_np();
#endif

by this:

#ifdef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
pthread_kill_other_threads_np();
#endif
 
  


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
How do I get gaussian 03 (a quantum chemical program) to work on Fedora Core 5? martinr Linux - Software 13 12-14-2006 02:43 PM
Need Help Installing Gaussian on SUSE 10 flanker12k Linux - Software 12 09-29-2006 06:24 AM
How do I get Gaussian03 working on FC5-i386? martinr Fedora 0 06-17-2006 05:37 AM
Problem in installing a gaussian03.tgz file on my redhat 8.0 Salina Linux - Software 0 02-20-2004 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:05 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