gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Re: Shell games


From: John O Goyo
Subject: [Gm2] Re: Shell games
Date: Thu, 13 Nov 2008 13:25:22 -0500
User-agent: Thunderbird 2.0.0.17 (X11/20080914)

Michel De Rosa wrote:
[...]

Back when I ran FreeBSD, I used to do the following, to compile gm2:

  env CONFIG_SHELL=/usr/local/bin/bash CC=gcc32 ../gcc-version/configure
      --with-system-zlib --disable-nls --enable-languages=c,c++,gm2
      --program-prefix=m2 --host=i386-gm2bld-freebsd5.3

The important bit here, for this issue, is the CONFIG_SHELL
environment var, which tells configure that this is the shell we want
to use for building purposes.  There was then no need to again specify
which shell to use when invoking make..

Hopefully this isn't changed since then (that was a few years ago).

No, this has not changed, Michel.

I failed to read the error message properly and garbled my report.  I
had CONFIG_SHELL set on the Solaris build but not on the Ubuntu
build.  However, the real problem is that gm2/tools-src/makeversion
is not passed through a shell but invoked directly and its specified
SOMETHING is /bin/sh.  When I changed this to /bin/bash, the build
succeeded on both systems.

On the other hand, sckt.c no longer compiles on Solaris for
gm2.paranoid.

gcc -c -O -g -I../../../src/gcc-4.1.2/gcc/gm2 -Igm2/gm2-libs-boot
-I. -Igm2/gm2-libs-paranoid -I../../../src/gcc-4.1.2/gcc
-I../../../src/gcc-4.1.2/gcc/gm2/gm2-libs-paranoid
-I../../../src/gcc-4.1.2/gcc/../include -I./../intl
-I../../../src/gcc-4.1.2/gcc/../libcpp/include
../../../src/gcc-4.1.2/gcc/gm2/gm2-libs-ch/sckt.c
-o gm2/gm2-libs-paranoid/sckt.o

../../../src/gcc-4.1.2/gcc/gm2/gm2-libs-ch/sckt.c:89: error: field
'sa' has incomplete type
../../../src/gcc-4.1.2/gcc/gm2/gm2-libs-ch/sckt.c:89: error: field
'isa' has incomplete type
../../../src/gcc-4.1.2/gcc/gm2/gm2-libs-ch/sckt.c: In function
'tcpServerEstablishPort':
../../../src/gcc-4.1.2/gcc/gm2/gm2-libs-ch/sckt.c:120: warning:
assignment makes pointer from integer without a cast
../../../src/gcc-4.1.2/gcc/gm2/gm2-libs-ch/sckt.c:132: error:
dereferencing pointer to incomplete type
../../../src/gcc-4.1.2/gcc/gm2/gm2-libs-ch/sckt.c:132: error:
'SOCK_STREAM' undeclared (first use in this function)

and so on...

It seems that sys/socket.h is not being included.  (To be certain, I
put some garbage in the included scope and the compiler did not reach
it.)  However, this header file at some point includes the evil bcopy.

Sincerely,
john




reply via email to

[Prev in Thread] Current Thread [Next in Thread]