Linux - Server This forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
11-17-2008, 02:01 PM
#1
LQ Newbie
Registered: Nov 2008
Posts: 7
Rep:
LAMP Server
Hey guys I am working on compiling a LAMP server and I got a specific order i am doing it in
1. MySQL
2. LibJPEG
3. LibPNG
4. FreeType
5. Zlib
6. GD2
7. Apache
8. PHP
So it all works good untill i try and make gd 2 ik configure it with ./configure --with-png --with-jpeg=/usr/local/lib --with-freetype
And it works but when i make it
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgd.la] Error 1
make[2]: Leaving directory `/lampServerFiles/gd-2.0.35'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/lampServerFiles/gd-2.0.35'
make: *** [all] Error 2
THats the error i get. Any ideas?? Thanks
John
11-17-2008, 02:12 PM
#2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
The cause of the error is porobably a bit earlier in the make output. What distro you are using would help too.
11-17-2008, 02:27 PM
#3
LQ Newbie
Registered: Nov 2008
Posts: 7
Original Poster
Rep:
Fedora
I am using Fedora9 and i didnt get any errors in any previous uses I think i did SOMETHING wrong with zlib but i am not sure. I am new to this so yeah
11-17-2008, 02:38 PM
#4
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
Somehow I doubt that "/usr/local/lib/libz.a: could not read symbols: Bad value" is the first line of make's output.
Why aren't you using yum to install this stuff?
11-17-2008, 02:50 PM
#5
LQ Newbie
Registered: Nov 2008
Posts: 7
Original Poster
Rep:
[root@localhost gd-2.0.35]# make
make all-recursive
make[1]: Entering directory `/lampServerFiles/gd-2.0.35'
Making all in config
make[2]: Entering directory `/lampServerFiles/gd-2.0.35/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/lampServerFiles/gd-2.0.35/config'
Making all in test
make[2]: Entering directory `/lampServerFiles/gd-2.0.35/test'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/lampServerFiles/gd-2.0.35/test'
make[2]: Entering directory `/lampServerFiles/gd-2.0.35'
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -L/usr/local/lib -L/usr/local/lib -L/usr/lib64 -L/usr/local/lib/lib -o libgd.la -rpath /usr/local/lib -version-info 2:0:0 gd.lo gdfx.lo gd_security.lo gd_gd.lo gd_gd2.lo gd_io.lo gd_io_dp.lo gd_gif_in.lo gd_gif_out.lo gd_io_file.lo gd_io_ss.lo gd_jpeg.lo gd_png.lo gd_ss.lo gd_topal.lo gd_wbmp.lo gdcache.lo gdfontg.lo gdfontl.lo gdfontmb.lo gdfonts.lo gdfontt.lo gdft.lo gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo wbmp.lo -ljpeg -lfreetype -lpng12 -lz -lm
gcc -shared .libs/gd.o .libs/gdfx.o .libs/gd_security.o .libs/gd_gd.o .libs/gd_gd2.o .libs/gd_io.o .libs/gd_io_dp.o .libs/gd_gif_in.o .libs/gd_gif_out.o .libs/gd_io_file.o .libs/gd_io_ss.o .libs/gd_jpeg.o .libs/gd_png.o .libs/gd_ss.o .libs/gd_topal.o .libs/gd_wbmp.o .libs/gdcache.o .libs/gdfontg.o .libs/gdfontl.o .libs/gdfontmb.o .libs/gdfonts.o .libs/gdfontt.o .libs/gdft.o .libs/gdhelpers.o .libs/gdkanji.o .libs/gdtables.o .libs/gdxpm.o .libs/wbmp.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib64 -L/usr/local/lib/lib /usr/local/lib/libjpeg.so /usr/local/lib/libfreetype.so /usr/local/lib/libpng12.so -lz -lm -Wl,-soname -Wl,libgd.so.2 -o .libs/libgd.so.2.0.0
/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgd.la] Error 1
make[2]: Leaving directory `/lampServerFiles/gd-2.0.35'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/lampServerFiles/gd-2.0.35'
make: *** [all] Error 2
Is the whole thing I cant use yum because its part of a project for school
we have to compile it all ourselves
11-17-2008, 02:53 PM
#6
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
11-17-2008, 02:55 PM
#7
LQ Newbie
Registered: Nov 2008
Posts: 7
Original Poster
Rep:
how can i do that??? I am fairly new with linux
Last edited by ematrix; 11-17-2008 at 03:07 PM .
11-17-2008, 03:43 PM
#8
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
You'll need to read the install/readmes etc with the zlib source
All times are GMT -5. The time now is 09:54 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News