Re: Undefined symbol pow (was:Re: OFFTOPIC Re: mailing list questions)

Ethan (
Thu, 18 May 2000 01:50:19 -0700 (PDT)

On Tue, 16 May 2000 wrote:

> >Guys, I'm having a problem and hopefully you can help me out.  I'm attempting
> >to install AfterStep 1.8.0 on an Ultra 10 running Solaris 7.  When I run a 
> >"make", it eventually ends with the following error messages (which now appear 
> >every time I run make):
> What you are missing here is the libm - library of general math functions.
> This is rather standard library and I'm not sure why you have it unavailable.

Actually, with apologies to my esteemed colleague, this is a bug in AS 
which slipped through our pre-release testing.  AS will not compile on a 
machine without libpng, because the gamma-correction code in asimagelib 
(loadimg.c, line 450) requires the math library, which is only included 
if libpng is found.  As a simple workaround, disabling the gamma-correction 
code may be accomplished by applying the following patch.  Please tell 
me if this fixes your problem.

--- AfterStep-current/asimagelib/loadimg.c      Thu May 18 00:37:38 2000
+++ AfterStep-devel/asimagelib/loadimg.c        Thu May 18 01:38:10 2000
@@ -448,6 +448,7 @@
   pParams->m_gc = None;
   pParams->m_img_colormap = NULL;
   {                            /* adjusting gamma correction */
+#ifdef PNG
     char *gamma_str;
     if ((gamma_str = getenv ("SCREEN_GAMMA")) != NULL)
       pParams->m_gamma = atof (gamma_str);
@@ -464,6 +465,7 @@
          pParams->m_gamma_table[i] = ADJUST_GAMMA8_INV ((CARD8) i, gamma_i);
+#endif /* PNG */
       pParams->m_gamma_table = NULL;


Ethan Fischer

To unsubscribe from this mailing list, simply type the following at #
echo "unsubscribe as-users <your_email>" | mail