On Fri, Oct 30, 2009 at 07:04:23PM +1300, Alister Hood wrote:
> Hi,

Hi,

> I just tried recompiling from cvs to test the fix for bug 338, and make
> is failing like this.  Does anyone have any idea what the problem is?
> This is on Cygwin, and I've built it successfully a number of times this
> year.

Hmm this is little bit strange, because there hasn't been any changes in
this area recently.
Both mkstemp and fdopen are POSIX complient and declared in stdlib.h
which is correctly included in gfile.h which is included in gfile.cc.
One possible (but I don't see why) reason could be -std=c++98 -pedantic
in the CXXFLAGS. Could you try to remove it from Makefile.flags
EXTRA_XPDF_CXXFLAGS (-pedantic) and CONFIG_CXXFLAGS (-std=c++98). I
would start with pedantic and then remove the other flag if it doesn't
help.

> 
> Thanks,
> Alister
> 
> 
> $ make
> cd /pdfedit/src && make
> make[1]: Entering directory `/pdfedit/src'
> cd /pdfedit/src/xpdf && make staticlib
> cd /pdfedit/src/xpdf && make extralib
> make[2]: Entering directory `/pdfedit/src/xpdf'
> cd goo && make
> make[2]: Entering directory `/pdfedit/src/xpdf'
> cd xpdf && make extralib
> make[3]: Entering directory `/pdfedit/src/xpdf/goo'
> g++ -c  -O2   -fmessage-length=0 -D_FORTIFY_SOURCE=2
> -fno-strict-aliasing -fexceptions    -pipe -posix -ansi -std=c++98
> -pedantic -I. -I/pdfedit/src -I/pdfedit/src/xpdf/  -I/usr/include
> -I/usr/include/freetype2  -o gfile.o gfile.cc
> make[3]: Entering directory `/pdfedit/src/xpdf/xpdf'
> make[3]: Nothing to be done for `extralib'.
> make[3]: Leaving directory `/pdfedit/src/xpdf/xpdf'
> make[2]: Leaving directory `/pdfedit/src/xpdf'
> gcc -c  -O2   -fmessage-length=0 -D_FORTIFY_SOURCE=2
> -fno-strict-aliasing   -pipe -posix -ansi -std=c99 -pedantic  -I.
> -I/pdfedit/src -I/pdfedit/src/xpdf/  -I/usr/include
> -I/usr/include/freetype2  -o parseargs.o parseargs.c
> gfile.cc: In function `GBool openTempFile(GString**, FILE**, char*,
> char*)':
> gfile.cc:523: error: `mkstemp' undeclared (first use this function)
> gfile.cc:523: error: (Each undeclared identifier is reported only once
> for each function it appears in.)
> gfile.cc:531: error: `fdopen' undeclared (first use this function)
> make[3]: *** [gfile.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> cd /pdfedit/src/qsa && make staticlib
> make[3]: Leaving directory `/pdfedit/src/xpdf/goo'
> make[2]: *** [libxpdf] Error 2
> make[2]: Leaving directory `/pdfedit/src/xpdf'
> make[1]: *** [xpdf] Error 2
> make[1]: *** Waiting for unfinished jobs....
> ...
> 
> make[5]: Leaving directory `/pdfedit/src/qsa/src/qsa'
> make[4]: Leaving directory `/pdfedit/src/qsa/src'
> make[3]: Leaving directory `/pdfedit/src/qsa'
> make[2]: Leaving directory `/pdfedit/src/qsa'
> make[1]: Leaving directory `/pdfedit/src'
> make: *** [source] Error 2
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Pdfedit-support mailing list
> Pdfedit-support@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pdfedit-support

-- 
Michal Hocko

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Pdfedit-support mailing list
Pdfedit-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to