From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3b21806c08e182f7,start X-Google-Attributes: gid1164f8,public From: dfoster Subject: gcc link problem on khoros Date: 1997/05/28 Message-ID: <338BE3B6.33FA@ccnet.com>#1/1 X-Deja-AN: 244374892 Organization: CCnet Communications (510-988-7140 guest) Reply-To: dfoster@ccnet.com Newsgroups: comp.sys.dec Content-Disposition: inline; filename="khoros.txt" I am trying to build Khoros 2.1.0 on Ultrix 4.3 and I have an error linking cantata (which is a very large program). If I were using the standard C compiler which came with the operating system, I could use something like: -Wf,-XNd50000 -Wf,-XNp50000 to build all libraries and then the executable. However, because the instructions for building khoros indicate that you must use an ansi compatible compiler, and gcc 2.7.1 is said to work, this is what I got when I used it: gcc -o cantata cantata.o create.o do_cantata.o do_dist.o do_find.o do_finder.o do_grid.o do_pref.o do_program.o do_routines.o do_variables.o form_drv.o form_info.o form_init.o globals.o usage.o utilities.o -L/usr/local/khoros210/lib -fpcc-struct-return -fwritable-strings -ansi -lxvl -lxvf -lxvu -lxvs -lxvg -lxvm -lxvobj -lkwid -lxvw -lkapu -lkaps -lkdms -lkdac -lkfmt -lkgen -lkcms -lkclui -lkvf -lkexpr -lklibdb -lklm -lku -lXm -lXmu -lXt -lXext -lX11 -lm -ll collect2: ld returned 1 exit status gp relocation out-of-range for small data or bss by, 5229 in the positive direction, 0 in the negative direction. produced (corrective action must be taken) Best -G num value to compile all -count'ed objects creating cantata with is 7 Best -G num value calculation reliable only if all -count'ed objects were compiled with -G num greater or equal to maximum size of a literal pool item (8). *** Error code 1 Are there CFLAGS which I should know about, or is there something missing in my gcc configuration which I need to add? Thanks Dave Foster