LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-09-2005, 12:58 PM   #1
zypo
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
x86_64 library compile problem


I have the 2.6.11-1.1369_FC4 kernel and have problems when trying to compile certain programs such as opengl screensavers. I receive the following when compiling certain things...


Quote:
make[2]: Entering directory `/home/zypo/download/kfiresaver3d-0.6/kfiresaver3d'
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -o kfiresaver3d -L/usr/X11R6/lib64 -L/usr/lib64/qt-3.3/lib -L/usr/lib -R /usr/lib -R /usr/lib64/qt-3.3/lib -R /usr/X11R6/lib64 particle.o main.o kfiresaverkss.o kfiresaver.o kfiresaversetup.o -lkscreensaver -lqt-mt -lpng -lz -lm -lXext -lX11 -lresolv -lSM -lICE -lpthread -lresolv
libtool: link: cannot find the library `/usr/lib/libfam.la'
make[2]: *** [kfiresaver3d] Error 1
make[2]: Leaving directory `/home/zypo/download/kfiresaver3d-0.6/kfiresaver3d'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zypo/download/kfiresaver3d-0.6'
make: *** [all] Error 2
I have this problem with more than one program.

after some research, I found that libfam.la wasn't in /usr/lib, but in /usr/lib64. Also, If I understand correctly, the /usr/lib64 in other 64 bit distros just point to /usr/lib and have a separate /usr/lib32 directory for 32 bit programs, but FC4 has the 32 bit libs in /usr/lib and the 64 bit ones in /usr/lib64 . Am I right?

does this have anything to do with libtool?

I have also tried things such as configuring with:
./configure LDFLAGS="-R/usr/lib64 -L/usr/lib64"
which seems to semi-work for one program and then give opengl errors, but doesn't work w/ another program and still gives the same exact error above.

Does anyone know of a quick and easy solution to my problem?
 
Old 10-10-2005, 04:46 AM   #2
jlo_sandog
Member
 
Registered: Jul 2005
Location: USA
Distribution: F10 (x86_64)
Posts: 549

Rep: Reputation: 32
I haven't tried to compile your specific application. I have compiled 32 bit applications by sending the following commands prior to ./configure

export CC="gcc -m32"
export LDFLAGS ='-L/usr/X11R6/lib'

To compile in 64 bit mode, nothing should be passed since 64 bit mode is the default.

Don't forget also that sometimes the -devel libraries might be missing and you will need them to compile.
 
  


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
GCC 2.95.3 won't compile, Fedora Core 4 x86_64 slantoflight Linux - Software 3 08-31-2005 07:21 PM
kernel compile on x86_64 fails acidjuice Linux - Software 1 05-06-2005 04:30 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
Compile errors on x86_64 SUSE marsonist Linux - Software 5 05-20-2004 05:21 PM
Can't get kernel to compile as x86_64 arch... Electrode Linux - Software 22 12-18-2003 09:11 AM

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

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