LinuxQuestions.org
Review your favorite Linux distribution.
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 09-09-2007, 08:44 PM   #1
bad_gui
LQ Newbie
 
Registered: Mar 2003
Distribution: vector, Debian
Posts: 17

Rep: Reputation: 0
can I mix gcc3.2.2 with version 3.3.4 of gcc-java and libgcj-devel?


I am trying to build a pdf editor called pdftk

http://www.accesspdf.com/article.php/20041129180128366

I have gcc3.2.2 and I installed gcc-java-3.2.2-i386-1 and libgcj-devel-3.2.2-5.i386 but the build failed with the following errors:

pdftk.o(.rodata+0x0): undefined reference to `pthread_create'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/libgcj.a(jni.o)(.text+0x2363): In function `_Jv_JNI_AttachCurrentThread(_Jv_JavaVM*, java::lang::String*, void**, void*)':
: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/libgcj.a(jni.o)(.text+0x23ef): In function `_Jv_JNI_DestroyJavaVM(_Jv_JavaVM*)':
: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/libgcj.a(jni.o)(.text+0x249b): In function `_Jv_JNI_GetEnv(_Jv_JavaVM*, void**, int)':
: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/libgcj.a(jni.o)(.text+0x26f8): In function `_Jv_GetJavaVM()':
: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/libgcj.a(natThread.o)(.text+0xff): In function `java::lang::Thread::currentThread()':
: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/libgcj.a(natThread.o)(.text+0x9df): more undefined references to `pthread_getspecific' follow
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/libgcj.a(posix-threads.o)(.text+0x393): In function `_Jv_ThreadInterrupt(_Jv_Thread_t*)':
: undefined reference to `pthread_kill'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/libgcj.a(posix-threads.o)(.text+0x3e2): In function `_Jv_InitThreads()':

Can I keep gcc3.2.2 and just install the 3.3.4 versions of gcc-java and libgcj-devel?

If I have to also add gcc3.3.4 how do I specify which version to use for configure?
 
Old 09-09-2007, 11:11 PM   #2
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 157

Rep: Reputation: 15
I have FC4 with gcc4.0.0. I needed to install gcc3x to install a VHDL simulator. Since I needed gcc3x only for this application, I created a folder gcc3 in /. I configured gcc3.3.6 specifying /gcc3 in the --with-prefix=/gcc3 and --with-local-prefix=/gcc3.

This installed gcc3.3.6 in /gcc3 with all the bin,lib,etc inside it. I edited my PATH to include /gcc3/bin first and added /gcc3/lib in my ld.so.conf and ran ldconfig.

When I don't want gcc3.3.6, I change the name gcc3 to oldgcc. And I get back my gcc4.0.0.
 
  


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
libgcj-java-placeholder.sh and Java captainObvious Linux - General 6 07-25-2008 01:42 AM
Java version mix up trebek Ubuntu 3 05-24-2007 10:55 AM
Problem with GCC 3.4.3 and libgcj Draco098 Linux - Software 2 03-01-2005 07:21 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 02:13 PM
GCC3.3-version C Compiler not working etto2004 Linux - Newbie 2 03-04-2004 07:55 AM


All times are GMT -5. The time now is 01:44 PM.

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