Thread: Strange error messages

Strange error messages

From
Guillaume Lelarge
Date:
Hi all,

I keep getting these error messages when I compile pgAdmin from scratch :

src/Makefile.am:43: SUN_CC does not appear in AM_CONDITIONAL
src/Makefile.am:49: SUN_CXX does not appear in AM_CONDITIONAL
xtra/pgagent/Makefile.am:33: SUN_CC does not appear in AM_CONDITIONAL
xtra/pgagent/Makefile.am:39: SUN_CXX does not appear in AM_CONDITIONAL

If I delete the offending lines in src/Makefile.am and
xtra/pgagent/Makefile.am, it simply works. I don't think this is really
the good way to fix this but I don't find another way to do it.

Regards.


--
Guillaume.
<!-- http://abs.traduc.org/
     http://lfs.traduc.org/
     http://docs.postgresqlfr.org/ -->
Index: pgadmin/Makefile.am
===================================================================
--- pgadmin/Makefile.am    (révision 5875)
+++ pgadmin/Makefile.am    (copie de travail)
@@ -40,18 +40,6 @@
 include $(srcdir)/ui/module.mk
 include $(srcdir)/utils/module.mk

-if SUN_CC
-  __CFLAGS=""
-else
-  __CFLAGS=-Wall
-endif
-
-if SUN_CXX
-  __CXXFLAGS=""
-else
-  __CXXFLAGS=-Wall -Wno-non-virtual-dtor
-endif
-
 if !APPBUNDLE

 nobase_dist_pkgdata_DATA = $(TMP_ui)
Index: xtra/pgagent/Makefile.am
===================================================================
--- xtra/pgagent/Makefile.am    (révision 5875)
+++ xtra/pgagent/Makefile.am    (copie de travail)
@@ -28,18 +28,6 @@
         $(srcdir)/include/misc.h \
         $(srcdir)/include/pgAgent.h

-if SUN_CC
-  __CFLAGS=""
-else
-  __CFLAGS=-Wall
-endif
-
-if SUN_CXX
-  __CXXFLAGS=""
-else
-  __CXXFLAGS=-Wall -Wno-non-virtual-dtor
-endif
-
 if !APPBUNDLE

 AM_CXXFLAGS = -DDATA_DIR=\"$(pkgdatadir)/\" $(__CXXFLAGS) -I$(srcdir)/include

Re: Strange error messages

From
"Dave Page"
Date:

> ------- Original Message -------
> From: Guillaume Lelarge <guillaume@lelarge.info>
> To: pgadmin-hackers@postgresql.org
> Sent: 1/19/07, 7:22:14 PM
> Subject: [pgadmin-hackers] Strange error messages
>
> Hi all,
>
> I keep getting these error messages when I compile pgAdmin from scratch :
>
> src/Makefile.am:43: SUN_CC does not appear in AM_CONDITIONAL
> src/Makefile.am:49: SUN_CXX does not appear in AM_CONDITIONAL
> xtra/pgagent/Makefile.am:33: SUN_CC does not appear in AM_CONDITIONAL
> xtra/pgagent/Makefile.am:39: SUN_CXX does not appear in AM_CONDITIONAL
>
> If I delete the offending lines in src/Makefile.am and
> xtra/pgagent/Makefile.am, it simply works. I don't think this is really
> the good way to fix this but I don't find another way to do it.
>

Did you re-run the bootstrap scrlpt?

Regards, Dave

Re: Strange error messages

From
Guillaume Lelarge
Date:
Dave Page a écrit :
>> I keep getting these error messages when I compile pgAdmin from scratch :
>>
>> src/Makefile.am:43: SUN_CC does not appear in AM_CONDITIONAL
>> src/Makefile.am:49: SUN_CXX does not appear in AM_CONDITIONAL
>> xtra/pgagent/Makefile.am:33: SUN_CC does not appear in AM_CONDITIONAL
>> xtra/pgagent/Makefile.am:39: SUN_CXX does not appear in AM_CONDITIONAL
>>
>> If I delete the offending lines in src/Makefile.am and
>> xtra/pgagent/Makefile.am, it simply works. I don't think this is really
>> the good way to fix this but I don't find another way to do it.
>>
>
> Did you re-run the bootstrap scrlpt?
>

No I didn't. I just tried and now it works great. Thanks Dave :)


--
Guillaume.
<!-- http://abs.traduc.org/
     http://lfs.traduc.org/
     http://docs.postgresqlfr.org/ -->