Problem compiling SDL

Am trying to compile SDL on Ubuntu Breezy so that I can create and run a
dosbox which has the printer extension.

In the midst of “./configure” the following error is produced in config.log

configure:3057: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before 'me’
configure:3063: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

I can’t find conftest.c and wouldn’t no what to do if I did. Can
someone on the list help?

TIA

Paul

Am trying to compile SDL on Ubuntu Breezy so that I can create and run a
dosbox which has the printer extension.

In the midst of “./configure” the following error is produced in config.log

configure:3057: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before 'me’
configure:3063: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

That error is expected.
Did configure fail at this point, or does it
contiune onwards?On Mon, 8 May 2006, paul wrote:

— Mattias Karlsson wrote:> On Mon, 8 May 2006, paul wrote:

Am trying to compile SDL on Ubuntu Breezy so that
I can create and run a
dosbox which has the printer extension.

In the midst of “./configure” the following error
is produced in config.log

configure:3057: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before 'me’
configure:3063: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

That error is expected.
Did configure fail at this point, or does it
contiune onwards?

It continues. The next error is

configure:4278: gcc -E conftest.c
conftest.c:11:28: error: ac_nonexistent.h: No such
file or directory
configure:4284: $? = 1
configure: failed program was:
| /* confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE “SDL”
| #define VERSION “1.2.9”
| /
end confdefs.h. */
| #include <ac_nonexistent.h>

followed by

conftest.c:11:28: error: ac_nonexistent.h: No such
file or directory
configure:4391: $? = 1
configure: failed program was:
| /* confdefs.h. */

followed by

configure:5323: g++ -E conftest.cc
./configure: line 5324: g++: command not found
configure:5329: $? = 127
configure: failed program was:
| /* confdefs.h. */

then

configure:5323: /lib/cpp conftest.cc
cpp: installation problem, cannot exec ‘cc1plus’: No
such file or directory
configure:5329: $? = 1
configure: failed program was:
| /* confdefs.h. */

and more …

I must be missing something, but don’t know what.

TIA

Paul


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

— Mattias Karlsson wrote:> On Mon, 8 May 2006, paul wrote:

Am trying to compile SDL on Ubuntu Breezy so that
I can create and run a
dosbox which has the printer extension.

In the midst of “./configure” the following error
is produced in config.log

configure:3057: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before 'me’
configure:3063: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

That error is expected.
Did configure fail at this point, or does it
contiune onwards?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I may have omitted the most important failure, i.e.,
the last one

configure:5430: /lib/cpp conftest.cc
cpp: installation problem, cannot exec ‘cc1plus’: No
such file or directory
configure:5436: $? = 1
configure: failed program was:
| /* confdefs.h. */

HTH

Paul


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Am trying to compile SDL on Ubuntu Breezy so that
I can create and run a
dosbox which has the printer extension.

In the midst of “./configure” the following error
is produced in config.log

configure:3057: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before 'me’
configure:3063: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

That error is expected.
Did configure fail at this point, or does it
contiune onwards?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I may have omitted the most important failure, i.e.,
the last one

configure:5430: /lib/cpp conftest.cc
cpp: installation problem, cannot exec ‘cc1plus’: No
such file or directory
configure:5436: $? = 1
configure: failed program was:
| /* confdefs.h. */

This means that you have not installed g++, but that should not be
nececarry. Does the configure produce a valid makefile?On Thu, 11 May 2006, Paul Schwartz wrote:

— Mattias Karlsson wrote:> On Thu, 11 May 2006, Paul Schwartz wrote:

Am trying to compile SDL on Ubuntu Breezy so
that

I can create and run a

dosbox which has the printer extension.

In the midst of “./configure” the following
error

is produced in config.log

configure:3057: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before 'me’
configure:3063: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

That error is expected.
Did configure fail at this point, or does it
contiune onwards?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I may have omitted the most important failure,
i.e.,
the last one

configure:5430: /lib/cpp conftest.cc
cpp: installation problem, cannot exec ‘cc1plus’:
No
such file or directory
configure:5436: $? = 1
configure: failed program was:
| /* confdefs.h. */

This means that you have not installed g++, but that
should not be
nececarry. Does the configure produce a valid
makefile?

There does not appear to be a makefile.

paul at paulsbox:~/dbproject/SDL-1.2.9$ make
make: *** No targets specified and no makefile found.
Stop.

Paul


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

I think libtool (as of latest stable v1 release) requires c++ compiler;
and also uselessly checks for fortran compiler.
IIRC, the alpha libtool v2 doesn’t do c++ checks unless required.
JulienOn 12/05/2006 10:12, Mattias Karlsson wrote:

On Thu, 11 May 2006, Paul Schwartz wrote:

I may have omitted the most important failure, i.e.,
the last one

configure:5430: /lib/cpp conftest.cc
cpp: installation problem, cannot exec ‘cc1plus’: No
such file or directory
configure:5436: $? = 1
configure: failed program was:
| /* confdefs.h. */

This means that you have not installed g++, but that should not be
necessary. Does the configure produce a valid makefile?

— Julien Lecomte wrote:> On 12/05/2006 10:12, Mattias Karlsson wrote:

On Thu, 11 May 2006, Paul Schwartz wrote:

I may have omitted the most important failure,
i.e.,

the last one

configure:5430: /lib/cpp conftest.cc
cpp: installation problem, cannot exec ‘cc1plus’:
No

such file or directory
configure:5436: $? = 1
configure: failed program was:
| /* confdefs.h. */

This means that you have not installed g++, but
that should not be
necessary. Does the configure produce a valid
makefile?

I think libtool (as of latest stable v1 release)
requires c++ compiler;
and also uselessly checks for fortran compiler.
IIRC, the alpha libtool v2 doesn’t do c++ checks
unless required.
Julien

Great! Installing g++ allowed the compile & install
process to complete.

Now back to the problem of trying to get dosbox to
access my printer. :slight_smile:

Thanks again.

Paul


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com