Welcome to the most active Linux Forum on the web.
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 09-09-2007, 09:44 PM   #1
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

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-10-2007, 12:11 AM   #2
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 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.


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

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