configure problem due to libpng dependency on zlib

2003-07-22 Thread Andrew Marlow
Hi,

I just tried to build dia 0.9.1 on Solaris 8 and found that
configure fails because libpng refers to zlib routines but
test programs that link with libpng do not also link
with zlib. This manifests as can't find a definition
of neither finite nor isinf (sic). The definitions
are there, it's the link that's failed.

Can some knowledgeable person please investigate?

Regards,

Andrew Marlow

There is an emerald here the size of a plover's egg!



___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia



Re: configure problem due to libpng dependency on zlib

2003-07-22 Thread Cyrille Chepelov
Le Tue, Jul 22, 2003, à 11:29:06AM +0100, Andrew Marlow a écrit:
 Hi,
 
 I just tried to build dia 0.9.1 on Solaris 8 and found that
 configure fails because libpng refers to zlib routines but
 test programs that link with libpng do not also link
 with zlib. This manifests as can't find a definition
 of neither finite nor isinf (sic). The definitions
 are there, it's the link that's failed.

Yup, the linker on Solaris does not honour transitive dependencies. If
libfoo is needed by libbar, then to link baz you can't get away with just
providing -lbar like you can on Linux and *BSD.
 
 Can some knowledgeable person please investigate?

Hmmm... I can't do much right now; but basically you have to tell configure
to also supply -lz when checking for libpng. Check the arguments for
AC_CHECK_LIB()

Bizarrely, at least one place of the configure.in does this:
AC_CHECK_LIB(png, png_read_info, ,png_ok=no, -lz -lm)
can you check that there is no redundant png test, and that the test which
fails indeed stems from this specific AC_CHECK_LIB ?

-- Cyrille

-- 
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia



Re: configure problem due to libpng dependency on zlib

2003-07-22 Thread Andrew Marlow
[EMAIL PROTECTED] writes:
Le Tue, Jul 22, 2003, à 11:29:06AM +0100, Andrew Marlow a écrit:
Yup, the linker on Solaris does not honour transitive dependencies. If
libfoo is needed by libbar, then to link baz you can't get away with just
providing -lbar like you can on Linux and *BSD.
Hmmm... I can't do much right now; but basically you have to tell
configure
to also supply -lz when checking for libpng. Check the arguments for
AC_CHECK_LIB()

I found that it thought png was not there.
I added the include dir for libpng to CPPFLAGS and that gets around
the problem. However, it gave a warning that there was no libart
and near the end of the build this is a fatal error, because
render_libart.c fails to compile. Don't you think this means
that a missing libart should be treated as fatal by configure?

Regards,

Andrew Marlow

There is an emerald here the size of a plover's egg!



___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia



Re: configure problem due to libpng dependency on zlib

2003-07-22 Thread Andrew Marlow
[EMAIL PROTECTED] writes:
it gave a warning that there was no libart
and near the end of the build this is a fatal error, because
render_libart.c fails to compile. Don't you think this means
that a missing libart should be treated as fatal by configure?

I should also mention that I got a fatal link error
saaying that it could find the symbol
FT_Get_BDF_Property. Any ideas? Shouldn't configure
check for this as well?

Regards,

Andrew Marlow

There is an emerald here the size of a plover's egg!



___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia



Re: configure problem due to libpng dependency on zlib

2003-07-22 Thread Lars Clausen
On 22 Jul 2003, Andrew Marlow wrote:
 [EMAIL PROTECTED] writes:
 it gave a warning that there was no libart
 and near the end of the build this is a fatal error, because
 render_libart.c fails to compile. Don't you think this means
 that a missing libart should be treated as fatal by configure?

 I should also mention that I got a fatal link error
 saaying that it could find the symbol
 FT_Get_BDF_Property. Any ideas? Shouldn't configure
 check for this as well?

That sounds more like you got a wrong version of FreeType2.  Noticably, Dia
doesn't itself use FT_Get_PDF_Property, so it may be that some other
package (Pango, perchance) requires a higher version of FreeType2 than you
have, but doesn't check properly for it (FT2 has notoriously poor version
handling).

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hrdgrim of Numenor
I do not agree with a word that you say, but I   |
will defend to the death your right to say it.   | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia



Re: configure problem due to libpng dependency on zlib

2003-07-22 Thread Cyrille Chepelov
Le Tue, Jul 22, 2003, à 02:30:28PM +0100, Andrew Marlow a écrit:
 [EMAIL PROTECTED] writes:
 it gave a warning that there was no libart
 and near the end of the build this is a fatal error, because
 render_libart.c fails to compile. Don't you think this means
 that a missing libart should be treated as fatal by configure?
 
 I should also mention that I got a fatal link error
 saaying that it could find the symbol
 FT_Get_BDF_Property. Any ideas? Shouldn't configure
 check for this as well?

I guess it should (Lars?). Maybe you have a slightly too old freetype? 

-- Cyrille

-- 
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia



Re: configure problem due to libpng dependency on zlib

2003-07-22 Thread Lars Clausen
On 22 Jul 2003, Cyrille Chepelov wrote:
 Le Tue, Jul 22, 2003,  02:30:28PM +0100, Andrew Marlow a crit:
 [EMAIL PROTECTED] writes:
 it gave a warning that there was no libart
 and near the end of the build this is a fatal error, because
 render_libart.c fails to compile. Don't you think this means
 that a missing libart should be treated as fatal by configure?

 I should also mention that I got a fatal link error
 saaying that it could find the symbol
 FT_Get_BDF_Property. Any ideas? Shouldn't configure
 check for this as well?

 I guess it should (Lars?). Maybe you have a slightly too old freetype? 

Is this perhaps the lack of recursive linking again?  What's the command
when it tries to link?

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hrdgrim of Numenor
I do not agree with a word that you say, but I   |
will defend to the death your right to say it.   | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia



Re: configure problem due to libpng dependency on zlib

2003-07-22 Thread Andrew Marlow
[EMAIL PROTECTED] writes:
On 22 Jul 2003, Cyrille Chepelov wrote:
 Le Tue, Jul 22, 2003, à 02:30:28PM +0100, Andrew Marlow a écrit:
 I should also mention that I got a fatal link error
 saaying that it could find the symbol
 FT_Get_BDF_Property. Any ideas? Shouldn't configure
 check for this as well?

 I guess it should (Lars?). Maybe you have a slightly too old freetype? 

Is this perhaps the lack of recursive linking again?  What's the command
when it tries to link?

No, that's not the problem. The problem is that configure
doesn't check that freetype2 is present. I didn't have
freetype2 at all. Once I got it built and installed,
dia built fine. Doesn't this mean that configure.in needs
to be fixed?

Regards,

Andrew Marlow

There is an emerald here the size of a plover's egg!



___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia



Re: configure problem due to libpng dependency on zlib

2003-07-22 Thread Lars Clausen
On 22 Jul 2003, Andrew Marlow wrote:
 [EMAIL PROTECTED] writes:
 On 22 Jul 2003, Cyrille Chepelov wrote:
 Le Tue, Jul 22, 2003,   02:30:28PM +0100, Andrew Marlow a crit:
 I should also mention that I got a fatal link error
 saaying that it could find the symbol
 FT_Get_BDF_Property. Any ideas? Shouldn't configure
 check for this as well?

 I guess it should (Lars?). Maybe you have a slightly too old freetype? 

 Is this perhaps the lack of recursive linking again?  What's the command
 when it tries to link?

 No, that's not the problem. The problem is that configure
 doesn't check that freetype2 is present. I didn't have
 freetype2 at all. Once I got it built and installed,
 dia built fine. Doesn't this mean that configure.in needs
 to be fixed?

That's odd, this should check for PangoFT2 and FT2 as well:

PKG_CHECK_MODULES(PANGOFT2,pangoft2,have_pangoft2=true,have_pangoft2=false)
if test $have_pangoft2 = true; then
  dnl On Solaris with Forte C, at least, need to link app/dia with -lfreetype.
  dnl It's not enough that -lpangoft2 implicitly pulls it in.
  have_freetype=false
  
AC_CHECK_LIB(freetype,FT_Init_FreeType,have_freetype=true,have_freetype=false,`freetype-config
 --libs`)
[...]
else
   AC_MSG_ERROR(Can't find PangoFT2 library)
fi

Did it pass the PangoFT2 test before you installed FT2?

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hrdgrim of Numenor
I do not agree with a word that you say, but I   |
will defend to the death your right to say it.   | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia