www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/10/09:24:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: xfce4 - xffm
Date: Thu, 10 Jun 2004 14:23:43 +0100
MIME-Version: 1.0
In-Reply-To: <200406101251.i5ACpfk05340@mailout.despammed.com>
Message-ID: <NUTMEGpTljBOh8s4KWi000002a3@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 10 Jun 2004 13:23:43.0187 (UTC) FILETIME=[26B62230:01C44EEE]

> -----Original Message-----
> From: cygwin-owner On Behalf Of getting_out
> Sent: 10 June 2004 13:52

> I'm trying to compile xfce4 under cygwin. It's almost fine 
> but I have an error while trying to compile xffm.

> like said before I'm having trouble compiling xffm-4.0.5. The 
> error I have is
> 
> /include/glib-2.0 -I/usr/lib/glib-2.0/include 
> -DPACKAGE_DATA_DIR=\"/usr/local/sh
> are\" -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -g -O2 
> -MT libxffm_fstab_
> la-fstab.lo -MD -MP -MF .deps/libxffm_fstab_la-fstab.Tpo -c 
> fstab.c -DPIC -o .l
> ibs/libxffm_fstab_la-fstab.o
> In file included from fstab.c:56:
> /usr/include/mntent.h:29: error: syntax error before '*' token
> /usr/include/mntent.h:30: error: syntax error before '*' token
> /usr/include/mntent.h:31: error: syntax error before '*' token
> /usr/include/mntent.h:32: error: syntax error before '*' token
> fstab.c: In function `is_mounted':
> fstab.c:221: warning: assignment from incompatible pointer type
> fstab.c: In function `open_fstab':
> fstab.c:472: warning: assignment from incompatible pointer type
> fstab.c:501: warning: assignment from incompatible pointer type
> make[2]: *** [libxffm_fstab_la-fstab.lo] Error 1
> make[2]: Leaving directory 
> `/usr/local/src/xfce-4.0.5/src/xffm-4.0.5/libs'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/xfce-4.0.5/src/xffm-4.0.5'
> make: *** [all] Error 2
> 
> I've tried search with google with no result.
> 
> Can anyone help me pls.

   Yep.  The problem is on lines 29-32 of mntent.h.  When you see "syntax
error before '*'", that's almost always something that's trying to declare a
pointer to a type that hasn't yet been defined.  Taking a look at mntent.h,
we see that lines 29-32 are:

dk AT mace /artimi> head -32 /usr/include/mntent.h  | tail -4
FILE *setmntent (const char *__filep, const char *__type);
struct mntent *getmntent (FILE *__filep);
int addmntent (FILE *__filep, const struct mntent *__mnt);
int endmntent (FILE *__filep);

  So the problem is that when compiling fstab.c, this header has been
included, but the FILE type is unknown.  If you edit fstab.c and add
#include <stdio.h> before the line that includes mntent.h, you should get
somewhere.

  That doesn't answer the question of why fstab.c doesn't already do so,
which is probably down to a bug in whatever kind of autoconf-or-similar the
software uses.  But I've no idea what xfce4 is, so I can't advise on that.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019