Errors compiling Wingz 1.4 Add-ins (Linux 1.3.99, GCC 2.6)

Errors compiling Wingz 1.4 Add-ins (Linux 1.3.99, GCC 2.6)

Post by Shaun Lawso » Sat, 29 Jun 1996 04:00:00



I use the Wingz spreadsheet under a SunOs 4.1.3 at work, and am trying
to set up a similar environment on my Linux system.  To do this I need
to compile Wingz external add-ins.

(Nice spreadsheet by the way. See the homepage at:
 http://www.wingz.com/Welcome.html)

The problem is that I am unable to link after compiling.  The add-in
code has no 'main', as it is in a file $WINGZ/lib/libwztools.a.  On
SunOs, doing a:

gcc -O -I$(WINGZ)/include -c TestFunc.c -o TestFunc.o
gcc -O -I$(WINGZ)/include -o great_zot TestFunc.o \
       -L$(WINGZ)/lib -lwztools -lm            

works great, but under Linux the link fails with a message like:

/usr/lib/crt1.o (...) undefined symbol 'main'

'nm' shows 'main' as being defined in $WINGZ/lib/libwztools.a, so
I am at a loss to how to get this to compile.

        Linux Kernel:   1.3.99
        Wingz version:  1.4
        GCC version:    2.6

Any hints would be greatly appreciated.

Shaun
----------------------------------------------------------------------
Shaun Lawson           Tel:    [+81]3-5571-7388
Assistant Vice Pres.   WWW:    http://www.atrium.com/shaun


 
 
 

Errors compiling Wingz 1.4 Add-ins (Linux 1.3.99, GCC 2.6)

Post by Stuart Ho » Sat, 29 Jun 1996 04:00:00


: The problem is that I am unable to link after compiling.  The add-in
: code has no 'main', as it is in a file $WINGZ/lib/libwztools.a.  On
: SunOs, doing a:

: gcc -O -I$(WINGZ)/include -c TestFunc.c -o TestFunc.o
: gcc -O -I$(WINGZ)/include -o great_zot TestFunc.o \
:        -L$(WINGZ)/lib -lwztools -lm            

: works great, but under Linux the link fails with a message like:

: /usr/lib/crt1.o (...) undefined symbol 'main'

: 'nm' shows 'main' as being defined in $WINGZ/lib/libwztools.a, so
: I am at a loss to how to get this to compile.

:       Linux Kernel:   1.3.99
:       Wingz version:  1.4
:       GCC version:    2.6

"libwztools.a" for Wingz 1.4.1 was built with gcc 2.5.8
and is in a.out format.  Your "/usr/lib/crt1.o" appears
to be in ELF format.

You can usually compile in a.out format using:

        gcc -bi486-linuxaout ...

which uses /usr/lib/gcc-lib/i486-linuxaout rather than
the default ELF location.

Stuart.
-
--
Stuart Hood === IISC, Ceybank House, 22 City Rd, London, UK

Fax  : + 44-0171 638 7528         WWW: http://www.wingz.com
- Never let ignorance stand in the way of a good argument -

 
 
 

1. Problems compiling e2fsprogs-1.02 with 1.3.99

Hi,

i have a problem when compiling e2fsprogs-1.02 under kernel 1.3.99.
I get the following error messages :

/../lib   -c ../../../lib/ext2fs/alloc.c -o alloc.o
../../../lib/ext2fs/alloc.c: In function `ext2fs_new_inode':
../../../lib/ext2fs/alloc.c:46: `EXT2_FIRST_INO' undeclared (first use
this function)
../../../lib/ext2fs/alloc.c:46: (Each undeclared identifier is reported
only once
../../../lib/ext2fs/alloc.c:46: for each function it appears in.)
make[1]: *** [alloc.o] Error 1

It seems that there are changes in the kernelcode. Is a patch available
for the e2fsprogs ?

And if so, where can i find the patch.

Greetings
Uli

--
----------------------------------------------------------

W.-Liebknecht Str. 53
64846 Gross - Zimmern
Germany

2. Sendmail, DNS, Dial-on-demand

3. Dosemu 60.4 and linux 1.3.99

4. Problems creating a binary image from an elf32-powerpc kernel image

5. Help: IP_MASQUERADING doesn't work with Kernel 1.3.99

6. FreeS/WAN install problems...

7. Using UFS with 1.3.99 kernel

8. Redhat 4.2 kernel 2.0.30 problem

9. Something wrong with 1.3.99 !

10. Big problems with 1.3.99, everything OK vith .98

11. 1.3.99 + ps -aux == Floating point exception

12. 1.3.99 Kernel Problem

13. G++ 2.7.2 fails to work (1.3.99)