terraform

IRIX and IRIX software discussion including open source and commerical offerings.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
coyote
Posts: 11
Joined: Sun Aug 03, 2003 8:11 am
Location: canada
Contact:

terraform

Unread postby coyote » Sun Aug 03, 2003 8:59 am

Hi I am a new to the forum and SGI.
I was wondering if anyone had tried compiling "Terraform" I tried with and failed.
Said I needed lib trio, which I compiled and installed but no matter what I do autoconfig can't find it and it won't generate a makefile.
I am also new to this compling business.

Source http://terraform.sourceforge.net/

User avatar
nvukovlj
Posts: 356
Joined: Mon Jun 09, 2003 8:27 am
Location: London, UK
Contact:

Re: terraform

Unread postby nvukovlj » Mon Aug 04, 2003 2:40 am

coyote wrote:Hi I am a new to the forum and SGI.
I was wondering if anyone had tried compiling "Terraform" I tried with and failed.
Said I needed lib trio, which I compiled and installed but no matter what I do autoconfig can't find it and it won't generate a makefile.
I am also new to this compling business.

Source http://terraform.sourceforge.net/


Where did you install libtrio ? Is the directory where it is installed in your path ?
What is the output of running configure ?
I haven't tried compiling this software as yet, but it would be good to see the list of errors you
have encountered.

Nik.

User avatar
coyote
Posts: 11
Joined: Sun Aug 03, 2003 8:11 am
Location: canada
Contact:

terraform

Unread postby coyote » Mon Aug 04, 2003 7:05 am

I first used the standard makeinstall for lib trio which installed
it by default in /usr/local/lib/.
I have also installed it in /usr/lib .

The autoconfig error simply states no lib trio installed, and that is the only reported error.

User avatar
nvukovlj
Posts: 356
Joined: Mon Jun 09, 2003 8:27 am
Location: London, UK
Contact:

Unread postby nvukovlj » Mon Aug 04, 2003 8:12 am

Have a look in the config.log file - should show you the error there

Nik.

User avatar
coyote
Posts: 11
Joined: Sun Aug 03, 2003 8:11 am
Location: canada
Contact:

Unread postby coyote » Tue Aug 05, 2003 9:19 pm

here is the config.log (the main error part) any suggestions.? I think there maybe something wrong with
the "lib trio".

; return 0; }
configure:4769: checking for trio_printf in -ltrio
configure:4788: gcc -o conftest -g -O2 -Wall -Wunused -I/usr/freeware/include/gtk-1.2 -I/usr/freeware/include/glib-1.2 -I/usr/freeware/lib32/glib/include conftest.c -ltrio 1>&5
ld32: ERROR 33: Unresolved text symbol "pow" -- 1st referenced by /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/../../../libtrio.a(trio.o).
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "log10" -- 1st referenced by /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/../../../libtrio.a(trio.o).
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "floor" -- 1st referenced by /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/../../../libtrio.a(trio.o).
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "fmod" -- 1st referenced by /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/../../../libtrio.a(trio.o).
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
collect2: ld returned 2 exit status
configure: failed program was:
#line 4777 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char trio_printf();

int main() {
trio_printf()
; return 0; }

User avatar
nvukovlj
Posts: 356
Joined: Mon Jun 09, 2003 8:27 am
Location: London, UK
Contact:

Unread postby nvukovlj » Wed Aug 06, 2003 2:33 am

This seems to be related to your paths in LD_LIBRARY_PATH environment variable.
Seems like /usr/freeware/lib32 is in front of /usr/local/lib and libtrio from gcc is being found
instead...
Hmm, what I'm surprised about is that it isn't picking it up from /usr/lib since you say you installed it there as well...

Try putting /usr/local/lib in your LD_LIBRARY_PATH before /usr/freeware/lib32 and see if that helps.

Nik.

User avatar
dexter1
Moderator
Moderator
Posts: 2062
Joined: Thu Feb 20, 2003 6:57 am
Location: Voorburg, The Netherlands
Contact:

Unread postby dexter1 » Wed Aug 06, 2003 7:27 am

coyote wrote:ld32: ERROR 33: Unresolved text symbol "pow" -- 1st referenced by /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/../../../libtrio.a(trio.o).
Use linker option -v to see when and which objects, archives and dsos are loaded.


Smells like libm is missing in the linking stage. Try adding -lm to the compile command

User avatar
nicolas
Posts: 146
Joined: Thu Apr 10, 2003 5:33 pm
Location: Sherbrooke, Quebec, Canada

Unread postby nicolas » Wed Aug 06, 2003 7:32 am

I second that. try something like:

% setenv CFLAGS -lm
% ./configure

User avatar
coyote
Posts: 11
Joined: Sun Aug 03, 2003 8:11 am
Location: canada
Contact:

Unread postby coyote » Wed Aug 06, 2003 8:46 pm

thanks for the tips but I still get the same results

( You don't have libtrio to provide missing libc xxscanf methods. Please get it from http://sourceforge/projects/ctrio)

end of file

User avatar
nicolas
Posts: 146
Joined: Thu Apr 10, 2003 5:33 pm
Location: Sherbrooke, Quebec, Canada

Unread postby nicolas » Thu Aug 07, 2003 5:28 am

is there a configure script option like
--disable-libtrio-test

and is the error in config log still the same ?

User avatar
coyote
Posts: 11
Joined: Sun Aug 03, 2003 8:11 am
Location: canada
Contact:

Unread postby coyote » Thu Aug 07, 2003 9:09 pm

the config log error is still the same. I tried to diable the lib trio test, but still get the same results.

I now think there is somehing wrong with the lib trio??

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8041
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Thu Aug 07, 2003 11:02 pm

I was able to build it without issue by just setting a couple of environment variables:

setenv CFLAGS '-I/usr/freeware/include'
setenv LDFLAGS '-L/usr/freeware/lib32'

However, the program crashes anytime you try to generate terrain with it.

Code: Select all

[Koyori:~] neko 1% ldd /usr/local/bin/terraform
        libpng.so  =>    /usr/freeware/lib32/libpng.so 
        libz.so  =>      /usr/freeware/lib32/libz.so   
        libm.so  =>      /usr/lib32/libm.so     
        libgnomeui.so.33  =>     /usr/freeware/lib32/libgnomeui.so.33   
        libart_lgpl.so.3  =>     /usr/freeware/lib32/libart_lgpl.so.3   
        libgdk_imlib.so.1  =>    /usr/freeware/lib32/libgdk_imlib.so.1 
        libXt.so  =>     /usr/lib32/libXt.so   
        libgtk-1.2.so.1  =>      /usr/freeware/lib32/libgtk-1.2.so.1   
        libgdk-1.2.so.1  =>      /usr/freeware/lib32/libgdk-1.2.so.1   
        libgmodule-1.2.so.1  =>  /usr/freeware/lib32/libgmodule-1.2.so.1       
        libXi.so  =>     /usr/lib32/libXi.so   
        libXext.so  =>   /usr/lib32/libXext.so 
        libX11.so.1  =>  /usr/lib32/libX11.so.1
        libgnome.so.33  =>       /usr/freeware/lib32/libgnome.so.33     
        libgnomesupport.so.1  =>         /usr/freeware/lib32/libgnomesupport.so.1       
        libesd.so.1  =>  /usr/freeware/lib32/libesd.so.1       
        libaudio.so  =>  /usr/lib32/libaudio.so
        libaudiofile.so.1  =>    /usr/freeware/lib32/libaudiofile.so.1 
        libdb-4.1.so  =>         /usr/freeware/lib32/libdb-4.1.so       
        libglib-1.2.so.1  =>     /usr/freeware/lib32/libglib-1.2.so.1   
        libxml.so.2  =>  /usr/freeware/lib32/libxml.so.2       
        libgnomeprint.so.16  =>  /usr/freeware/lib32/libgnomeprint.so.16       
        libgdk_pixbuf.so.3  =>   /usr/freeware/lib32/libgdk_pixbuf.so.3
        libfreetype.so.7  =>     /usr/freeware/lib32/libfreetype.so.7   
        libintl.so.3  =>         /usr/freeware/lib32/libintl.so.3       
        libc.so.1  =>    /usr/lib32/libc.so.1   
        libdb.so.2  =>   /usr/freeware/lib32/libdb.so.2
        libgen.so  =>    /usr/lib32/libgen.so   delay-load
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
coyote
Posts: 11
Joined: Sun Aug 03, 2003 8:11 am
Location: canada
Contact:

Unread postby coyote » Sun Aug 10, 2003 7:02 am

no lib trio?


Return to “IRIX and Software”

Who is online

Users browsing this forum: No registered users and 1 guest