On Tue, Oct 26, 2010 at 07:31:23PM -0400, Robert S. Kissel wrote:
> On Tue, Oct 26, 2010 at 5:57 AM, Michal Hocko <[email protected]> wrote:
> > please try to remove -ansi parameter from both CONFIG_CFLAGS and
> > CONFIG_CXXFLAGS variables (do not run configure again, just run make).
>
> I'm sorry to report that the build still fails in the same way.
>
> I removed -ansi from CONFIG_CFLAGS and CONFIG_CXXFLAGS in
> Makefile.flags, and ran make again. I include the transcript at the
> end of this e-mail, which has some line-breaks introduced by
> "copy/paste" in Windoze.
>
> Here's the only change I made (line-wrapped by the copy-paste
> operation in Windoze):
>
> # R.S.K. At Michal Hocko's suggestion:
> #CONFIG_CFLAGS = $(DEBUG) $(OPTIM) $(ARCH) $(WARN) $(C_EXTRA) -pipe
> -p
> osix -ansi -std=c99 -pedantic
> #CONFIG_CXXFLAGS = $(DEBUG) $(OPTIM) $(ARCH) $(WARN) $(CXX_EXTRA)
> $(OBSER
> VER_CXXFLAGS) -pipe -posix -ansi -std=c++98
> CONFIG_CFLAGS = $(DEBUG) $(OPTIM) $(ARCH) $(WARN) $(C_EXTRA) -pipe -posix
> -st
> d=c99 -pedantic
> CONFIG_CXXFLAGS = $(DEBUG) $(OPTIM) $(ARCH) $(WARN) $(CXX_EXTRA)
> $(OBSERVER_CXXF
> LAGS) -pipe -posix -std=c++98
>
> Any further suggestions?
Can you try to remove also -std parameters from both variables?
Btw. what if you compile the following program:
test.c
===
#include <stdlib.h>
int main()
{
mkstemp(NULL);
return 0;
}
===
Try the following tests:
gcc -o test test.c
g++ -o test test.c
gcc -o test -posix test.c
g++ -o test -posix test.c
gcc -o test -posix -std=c99 test.c
g++ -o test -posix -std=c++98 test.c
gcc -o test -posix -std=c99 -ansi test.c
g++ -o test -posix -std=c++98 -ansi test.c
All tests pass on my Linux box. The only suspicious output is from:
$ gcc -o test -posix -std=c99 test.c
test.c: In function 'main':
test.c:5: warning: implicit declaration of function 'mkstemp'
But it linked correctly so the function is defined in the library just
the header file needs some macro definitions. The funny thing is that
-std=c99 -ansi combination doesn't print the warning.
I am really interested in your test results.
--
Michal Hocko
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support