Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Tue Jul 22, 2014 9:46 pm

All times are UTC - 8 hours


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: terraform
Unread postPosted: Sun Aug 03, 2003 7:59 am 
Offline
User avatar

Joined: Sun Aug 03, 2003 7:11 am
Posts: 11
Location: canada
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/


Top
 Profile  
 
 Post subject: Re: terraform
Unread postPosted: Mon Aug 04, 2003 1:40 am 
Offline
User avatar

Joined: Mon Jun 09, 2003 7:27 am
Posts: 356
Location: London, UK
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.


Top
 Profile  
 
 Post subject: terraform
Unread postPosted: Mon Aug 04, 2003 6:05 am 
Offline
User avatar

Joined: Sun Aug 03, 2003 7:11 am
Posts: 11
Location: canada
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.


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Aug 04, 2003 7:12 am 
Offline
User avatar

Joined: Mon Jun 09, 2003 7:27 am
Posts: 356
Location: London, UK
Have a look in the config.log file - should show you the error there

Nik.


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Aug 05, 2003 8:19 pm 
Offline
User avatar

Joined: Sun Aug 03, 2003 7:11 am
Posts: 11
Location: canada
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; }


Top
 Profile  
 
 Post subject:
Unread postPosted: Wed Aug 06, 2003 1:33 am 
Offline
User avatar

Joined: Mon Jun 09, 2003 7:27 am
Posts: 356
Location: London, UK
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.


Top
 Profile  
 
 Post subject:
Unread postPosted: Wed Aug 06, 2003 6:27 am 
Offline
Moderator
Moderator
User avatar

Joined: Thu Feb 20, 2003 6:57 am
Posts: 2062
Location: Voorburg, The Netherlands
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


Top
 Profile  
 
 Post subject:
Unread postPosted: Wed Aug 06, 2003 6:32 am 
Offline
User avatar

Joined: Thu Apr 10, 2003 4:33 pm
Posts: 146
Location: Sherbrooke, Quebec, Canada
I second that. try something like:

% setenv CFLAGS -lm
% ./configure


Top
 Profile  
 
 Post subject:
Unread postPosted: Wed Aug 06, 2003 7:46 pm 
Offline
User avatar

Joined: Sun Aug 03, 2003 7:11 am
Posts: 11
Location: canada
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


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu Aug 07, 2003 4:28 am 
Offline
User avatar

Joined: Thu Apr 10, 2003 4:33 pm
Posts: 146
Location: Sherbrooke, Quebec, Canada
is there a configure script option like
--disable-libtrio-test

and is the error in config log still the same ?


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu Aug 07, 2003 8:09 pm 
Offline
User avatar

Joined: Sun Aug 03, 2003 7:11 am
Posts: 11
Location: canada
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??


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu Aug 07, 2003 10:02 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Jan 23, 2003 1:31 am
Posts: 7970
Location: Pleasanton, California
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:
[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.


Top
 Profile  
 
 Post subject:
Unread postPosted: Sun Aug 10, 2003 6:02 am 
Offline
User avatar

Joined: Sun Aug 03, 2003 7:11 am
Posts: 11
Location: canada
no lib trio?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group