| Author |
Fly make problem on FC3
|
|
| Mark D Smith 2005-08-02, 2:51 am |
| Hi
I have some old sites that ran on RH6.2 with fly 2.0.0 I need to move them
to FC3 server but fly will not build.
below is the output from make
make
gcc -c -O -pedantic -Wall -Igd-2.0.28 -I/usr/include -Lgd-2.0.28 -L/usr/lib
fly.c
fly.c:69: warning: string length `1227' is greater than the length `509' ISO
C89 compilers are required to support
gcc -O -pedantic -Wall -Igd-2.0.28 -I/usr/include -Lgd-2.0.28 -L/usr/lib -o
fly fly.o -lgd -lm -lz -lttf -lpng -ljpeg
/usr/bin/ld: cannot find -lttf
collect2: ld returned 1 exit status
make: *** [fly] Error 1
Any help appreciated.
Mark
| |
| Spamless 2005-08-02, 5:47 pm |
| On 2005-08-02, Mark D Smith <usenet@NOSPAM.obantec.net> wrote:
> Hi
>
> I have some old sites that ran on RH6.2 with fly 2.0.0 I need to move them
> to FC3 server but fly will not build.
> below is the output from make
> gcc -O -pedantic -Wall -Igd-2.0.28 -I/usr/include -Lgd-2.0.28 -L/usr/lib -o
> fly fly.o -lgd -lm -lz -lttf -lpng -ljpeg
> /usr/bin/ld: cannot find -lttf
Well, do a "locate libttf".
I find:
/usr/lib/libttf.a
/usr/lib/libttf.la
/usr/lib/libttf.so.2
/usr/lib/libttf.so.2.3.0
/usr/lib/libttf.so
provided by freetype-devel-2.1.9-3.
I am using FC2.
| |
| Mark D Smith 2005-08-04, 7:51 am |
| "Spamless" <Spamless@Nil.nil> wrote in message
news:OKKHe.3287$Q75.651844@newshog.newsread.com...
> On 2005-08-02, Mark D Smith <usenet@NOSPAM.obantec.net> wrote:
them[vbcol=seagreen]
gcc -O -pedantic -Wall -Igd-2.0.28 -I/usr/include -Lgd-2.0.28 -L/usr/lib -o[vbcol=seagreen]
>
>
> Well, do a "locate libttf".
> I find:
> /usr/lib/libttf.a
> /usr/lib/libttf.la
> /usr/lib/libttf.so.2
> /usr/lib/libttf.so.2.3.0
> /usr/lib/libttf.so
> provided by freetype-devel-2.1.9-3.
>
> I am using FC2.
>
Hi
now cannot find -lpng despite it looking like its installed to me!
/usr/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make: *** [fly] Error 1
[root@proteus2a admin]# cd /home/src/fly-2.0.0
[root@proteus2a fly-2.0.0]# make
gcc -c -O -pedantic -Wall -I/usr/lib -I/usr/include -L/usr/lib -L/usr/lib
fly.c
fly.c:69: warning: string length `1227' is greater than the length `509' ISO
C89 compilers are required to support
gcc -O -pedantic -Wall -I/usr/lib -I/usr/include -L/usr/lib -L/usr/lib -o
fly fly.o -lgd -lm -lz -lttf -lpng -ljpeg
/usr/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make: *** [fly] Error 1
[root@proteus2a fly-2.0.0]# locate libttf
/usr/lib/libttf.so.2
/usr/lib/libttf.so.2.3.0
[root@proteus2a fly-2.0.0]# locate libpng
/usr/share/doc/libpng-1.2.8
<snip docs>
/usr/share/doc/libpng-1.2.8
/usr/share/doc/libpng10-1.0.16
<snip docs>
/usr/share/doc/libpng10-1.0.16
/usr/lib/libpng.so.2
/usr/lib/libpng12.so.0
/usr/lib/libpng10.so
/usr/lib/libpng12.so.0.1.2.8
/usr/lib/libpng.so.3
/usr/lib/libpng10.a
/usr/lib/libpng.so.3.1.2.8
/usr/lib/pkgconfig/libpng10.pc
/usr/lib/libpng.so.2.1.0.16
/usr/include/libpng10
/usr/include/libpng10/png.h
/usr/include/libpng10/pngconf.h
/usr/include/libpng10
/var/cache/yum/updates-released/packages/libpng-1.2.8-1.fc3.i386.rpm
/var/cache/yum/updates-released/headers/libpng-1.2.8-1.fc3.i386.hdr
/home/FC3/libpng10-devel-1.0.16-1.i386.rpm
/home/FC3/libpng-devel-1.2.7-1.i386.rpm
/home/FC3/libpng-1.2.7-1.i386.rpm
/home/FC3/libpng10-1.0.16-1.i386.rpm
| |
| Lenard 2005-08-04, 5:50 pm |
| Mark D Smith wrote:
> Hi
>
> I have some old sites that ran on RH6.2 with fly 2.0.0 I need to move
> them to FC3 server but fly will not build.
<snip>
> Any help appreciated.
Builds just fine on my FC4 system;
$ rpm -qa libpng
libpng-1.2.8-2
$ rpm -qa '*jpeg*'
mjpegtools-1.6.3-0.1.rc1.2.fc4
libjpeg-6b-34
libjpeg-devel-6b-34
mplayer-codecs-win32-mjpeg2k-20040704-1
$ rpm -qa 'zlib*'
zlib-1.2.2.2-5.fc4
zlib-devel-1.2.2.2-5.fc4
$ rpm -qa 'libtiff*'
libtiff-devel-3.7.1-6
libtiff-3.7.1-6
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -- B. Franklin, 1759
| |
| Spamless 2005-08-04, 5:50 pm |
| On 2005-08-04, Mark D Smith <usenet@NOSPAM.obantec.net> wrote:
>
> now cannot find -lpng despite it looking like its installed to me!
>
> /usr/bin/ld: cannot find -lpng
> collect2: ld returned 1 exit status
> make: *** [fly] Error 1
>
> [root@proteus2a fly-2.0.0]# locate libpng
> /usr/share/doc/libpng-1.2.8
><snip docs>
> /usr/share/doc/libpng-1.2.8
> /usr/share/doc/libpng10-1.0.16
><snip docs>
> /usr/share/doc/libpng10-1.0.16
> /usr/lib/libpng.so.2
> /usr/lib/libpng12.so.0
> /usr/lib/libpng10.so
> /usr/lib/libpng12.so.0.1.2.8
> /usr/lib/libpng.so.3
> /usr/lib/libpng10.a
> /usr/lib/libpng.so.3.1.2.8
> /usr/lib/pkgconfig/libpng10.pc
> /usr/lib/libpng.so.2.1.0.16
> /usr/include/libpng10
> /usr/include/libpng10/png.h
> /usr/include/libpng10/pngconf.h
> /usr/include/libpng10
> /var/cache/yum/updates-released/packages/libpng-1.2.8-1.fc3.i386.rpm
> /var/cache/yum/updates-released/headers/libpng-1.2.8-1.fc3.i386.hdr
> /home/FC3/libpng10-devel-1.0.16-1.i386.rpm
> /home/FC3/libpng-devel-1.2.7-1.i386.rpm
> /home/FC3/libpng-1.2.7-1.i386.rpm
> /home/FC3/libpng10-1.0.16-1.i386.rpm
No /usr/include/png.h? No /usr/include/libpng12/png.h?
You've got /usr/lib/libpng12.so.0.1.2.8 (which comes from
libpng-1.2.8-1) and /usr/include/libpng10/png.h (which comes from
libpng10-devel-1.0.16-1) but not /usr/include/libpng12/png.h
(which comes from libpng-devel-1.2.8-1)
So, it looks like you have the libpng12 shared libraries
(libpng-1.2.8-1) which a compiled programme can use but
not the "-devel" package, libpng-devel-1.2.8-1, which is
needed by source code to find out how to use the libraries
(in FC2, /usr/include/png.h is a symbolic link to
/usr/include/libpng12/png.h).
/home/FC3/libpng-devel-1.2.7-1.i386.rpm seems to show that you
had libpng-devel-1.2.7, but the updates show:
/var/cache/yum/updates-released/packages/libpng-1.2.8-1.fc3.i386.rpm
I see that you used
/var/cache/yum/updates-released/packages/libpng-1.2.8-1.fc3.i386.rpm
to upgrade from libpng-1.2.7 to libpng-1.2.8.
I don't see an upgrade of libpng-devel-1.2.7 to libpng-devel-1.2.8.
It may be that, due to conflicts, libpng-1.2.8-1, uninstalled
libpng-1.2.7 to install itself and also uninstalled
libpng-devel-1.2.7 since it was the wrong version and is not needed
unless you compile programmes.
I think you want to do get libpng-devel-1.2.8-1.fc3.i386.rpm
Try:
rpm -q libpng
rpm -q libpng-devel
You should get 1.2.8 for both. If you don't have the devel package,
get the one *which matches* the binary you have installed
(probably libpng-1.2.8-1.fc3.i386.rpm/
libpng-devel-1.2.8-1.fc3.i386.rpm).
| |
| Spamless 2005-08-04, 5:50 pm |
| On 2005-08-04, Lenard <Lenard@127.0.0.1> wrote:
> Mark D Smith wrote:
>
>
><snip>
>
>
> Builds just fine on my FC4 system;
>
> $ rpm -qa libpng
You should have used libpng*
> libpng-1.2.8-2
He seems to be missing the devel packate.
| |
| Mark D Smith 2005-08-04, 5:50 pm |
|
"Spamless" <Spamless@Nil.nil> wrote in message
news:1tpIe.767$Gm6.166498@monger.newsread.com...
> On 2005-08-04, Mark D Smith <usenet@NOSPAM.obantec.net> wrote:
<snip>[vbcol=seagreen]
>
> I think you want to do get libpng-devel-1.2.8-1.fc3.i386.rpm
>
> Try:
>
> rpm -q libpng
> rpm -q libpng-devel
>
> You should get 1.2.8 for both. If you don't have the devel package,
> get the one *which matches* the binary you have installed
> (probably libpng-1.2.8-1.fc3.i386.rpm/
> libpng-devel-1.2.8-1.fc3.i386.rpm).
Hi
I am a fan of yum and got the libpng-devel-1.2.8-1.fc3.i386.rpm uploaded to
the server and now fly complies!
Thanks
Mark
| |
| Lenard 2005-08-04, 5:50 pm |
| Spamless wrote:
> On 2005-08-04, Lenard <Lenard@127.0.0.1> wrote:
>
> You should have used libpng*
>
> He seems to be missing the devel packate.
Did, but silly me copied the wrong output to the to the post.
I'm glad the OP got it working, and thanks for the heads up 
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -- B. Franklin, 1759
|
|
|
|