Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Fri Oct 31, 2014 1:21 am

All times are UTC - 8 hours [ DST ]


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  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
Unread postPosted: Thu Oct 23, 2003 5:39 am 
Offline
User avatar

Joined: Fri Feb 21, 2003 6:29 am
Posts: 786
Location: Ypsitucky, MI
OK, I've managed to compile celesia all the way to the end, but I'm getting one of these stupid "unresolved text" error again. Grrrr.

Quote:
ld32: ERROR 33 : Unresolved text symbol "glXGetProcAddressARB(unsigned char const*)" -- 1st referenced by ../celengine/libcelengine.a(glext.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
gmake[4]: *** [celestia] Error 1
gmake[4]: Leaving directory `/usr/people/semi/code/games/celestia-1.3.0/src/celestia'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/people/semi/code/games/celestia-1.3.0/src/celestia'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/people/semi/code/games/celestia-1.3.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/people/semi/code/games/celestia-1.3.0'


I've tried just about every enviroment compile flags, and I'm pretty sure that "glXGetProcAddressARB(unsigned char const*)" is a standard GL function, so, any ideas?

_________________
configure complete, now type 'make' and pray.


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu Oct 23, 2003 7:04 am 
Offline
Moderator
Moderator
User avatar

Joined: Fri May 09, 2003 6:10 am
Posts: 2931
Location: Maryland, USA
It's in /usr/include/GL/glx.h as:

extern void (* glXGetProcAddressARB (const GLubyte *procName))( void );

so just make sure -lGLU -lGL are on the link command line BEFORE ./celengine/libcelengine.a.

Good luck you IRIX porting maniac!


Last edited by squeen on Fri Oct 24, 2003 4:03 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
Unread postPosted: Thu Oct 23, 2003 8:40 am 
Offline

Joined: Thu Jan 23, 2003 12:34 pm
Posts: 706
Make sure the -lGL and -lGLU come AFTER the .o files in the command line...
It works left-to-right so it will see the .o's and then the libs and pick out the functions from them that it needs, on the other hand if the libs are listed first it will give you errors about how a library is included that's not referenced and will then complaina about functions (in that library) that are missing.


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu Oct 23, 2003 9:24 am 
Offline
Moderator
Moderator
User avatar

Joined: Fri May 09, 2003 6:10 am
Posts: 2931
Location: Maryland, USA
Oh crap! (/me forcing fingers to type A-F-T-E-R)


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu Oct 23, 2003 11:15 am 
Offline
User avatar

Joined: Fri Feb 21, 2003 6:29 am
Posts: 786
Location: Ypsitucky, MI
Thanks everyone! I'll give this is shot soon as I get home from class! =)

_________________
configure complete, now type 'make' and pray.


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Nov 04, 2003 6:19 am 
Offline
Moderator
Moderator
User avatar

Joined: Fri May 09, 2003 6:10 am
Posts: 2931
Location: Maryland, USA
I gave it a quick go and found I needed to build a newer version of Qt, n'est pa?


Top
 Profile  
 
 Post subject:
Unread postPosted: Fri Nov 07, 2003 6:27 pm 
Offline
User avatar

Joined: Fri Feb 21, 2003 6:29 am
Posts: 786
Location: Ypsitucky, MI
squeen wrote:
I gave it a quick go and found I needed to build a newer version of Qt, n'est pa?


I disabled Qt and enabled GTK. =)

_________________
configure complete, now type 'make' and pray.


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Nov 17, 2003 5:25 am 
Offline
Moderator
Moderator
User avatar

Joined: Fri May 09, 2003 6:10 am
Posts: 2931
Location: Maryland, USA
Here's where I am now:
Code:
setenv CC gcc
setenv CFLAGS '-mips3 -O0'
setenv CPPFLAGS '-I/usr/include -I/usr/freeware/include -I/usr/local/include'
setenv LDFLAGS '-L/usr/lib32 -L/usr/local/lib -L/usr/freeware/lib32'

./configure --prefix=/usr/local --with-gtk

gives me the following error:
Code:
gtkmain.cpp: In function `void setupCheckItem(GtkItemFactory*, int, void (*)(),
   CheckFunc*)':
gtkmain.cpp:2036: error: `rindex' undeclared (first use this function)
gtkmain.cpp:2036: error: (Each undeclared identifier is reported only once for
   each function it appears in.)

Since it's a !^%&* C++ app, I havn't a clue as to why it can't find a standard C <strings.h> function. Any help?


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Nov 17, 2003 6:21 am 
Offline
User avatar

Joined: Fri Feb 21, 2003 6:29 am
Posts: 786
Location: Ypsitucky, MI
squeen wrote:
Here's where I am now:
Code:
setenv CC gcc
setenv CFLAGS '-mips3 -O0'
setenv CPPFLAGS '-I/usr/include -I/usr/freeware/include -I/usr/local/include'
setenv LDFLAGS '-L/usr/lib32 -L/usr/local/lib -L/usr/freeware/lib32'

./configure --prefix=/usr/local --with-gtk

gives me the following error:
Code:
gtkmain.cpp: In function `void setupCheckItem(GtkItemFactory*, int, void (*)(),
   CheckFunc*)':
gtkmain.cpp:2036: error: `rindex' undeclared (first use this function)
gtkmain.cpp:2036: error: (Each undeclared identifier is reported only once for
   each function it appears in.)

Since it's a !^%&* C++ app, I havn't a clue as to why it can't find a standard C <strings.h> function. Any help?


Yep, need to include 'strings.h' in the ./src/celestia/gtkmain.cpp file. Unless you've already done that, in which case I don't have a clue, but that worked for me. :)

_________________
configure complete, now type 'make' and pray.


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Nov 17, 2003 9:10 am 
Offline
Moderator
Moderator
User avatar

Joined: Fri May 09, 2003 6:10 am
Posts: 2931
Location: Maryland, USA
OK, that did the trick (I forgot the trailing s in <strings.h>)

Next, I had a bunch of libpng errors to I decided to try and link to the newer version I have from the Written Word in /opt/TWWfws/libpng12. I then set

Code:
setenv CPPFLAGS '-I/opt/TWWfsw/libpng12/include -I/usr/include -I/usr/freeware/include -I/usr/local/include'
setenv LDFLAGS '-L/opt/TWWfsw/libpng12/lib -L/usr/lib32 -L/usr/local/lib -L/usr/freeware/lib32'setenv LD_LIBRARYN32_PATH /opt/TWWfsw/libpng12/lib:/usr/local/lib:/usr/freeware/lib32:/usr/lib32


I compiled the executable (first resolving one linking sntax error in the src/celestia/Makefile).
All is not well however since celestia core dumped when I executed it. :(


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Nov 17, 2003 9:16 am 
Offline
User avatar

Joined: Fri Feb 21, 2003 6:29 am
Posts: 786
Location: Ypsitucky, MI
squeen wrote:
I compiled the executable (first resolving one linking sntax error in the src/celestia/Makefile).




:? Can you please tell me what the syntax error is in the src/celesta/Makefile so I can fix it? That's all I have left and it should compile for me, although we'll see if it actually runs.

:)

_________________
configure complete, now type 'make' and pray.


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Nov 17, 2003 10:45 am 
Offline
Moderator
Moderator
User avatar

Joined: Fri May 09, 2003 6:10 am
Posts: 2931
Location: Maryland, USA
src/celestia/Makefile line 827

was:
Code:
   (cd ../..; ln -s src/celestia/celestia)


should be:
Code:
   (cd ../..; ln -s src/celestia/celestia .)


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Nov 18, 2003 5:27 am 
Offline
User avatar

Joined: Mon Jun 09, 2003 8:27 am
Posts: 356
Location: London, UK
squeen wrote:
OK, that did the trick (I forgot the trailing s in <strings.h>)

Next, I had a bunch of libpng errors to I decided to try and link to the newer version I have from the Written Word in /opt/TWWfws/libpng12. I then set

I compiled the executable (first resolving one linking sntax error in the src/celestia/Makefile).
All is not well however since celestia core dumped when I executed it. :(


Just a suggestion:

ldd your binary and see if it is finding the correct libpng, and not the freeware one...


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Nov 18, 2003 9:57 am 
Offline
Moderator
Moderator
User avatar

Joined: Fri May 09, 2003 6:10 am
Posts: 2931
Location: Maryland, USA
An execellent suggestion nvukovlj, but unfortunately not the culprit I get:

Code:
ldd celestia
        libpng.so.3  =>  /opt/TWWfsw/libpng12/lib/libpng.so.3   
        libjpeg.so  =>   /usr/freeware/lib32/libjpeg.so
        libGLU.so  =>    /usr/lib32/libGLU.so   
        libXmu.so  =>    /usr/lib32/libXmu.so   
        libz.so.3  =>    /opt/TWWfsw/zlib11/lib/libz.so.3
        ...


I also wondered how setting the environment variables would help is distiguish between multiple library and header copies. (I wish someone could explain to me how versioning of the dynamically shared libraaries works!).

Another interesting note is when I use dbx on the core file I get:
Code:
dbx version 7.3.4 (89708_Mar27 patchSG0004885) Mar 27 2003 14:33:10
Elf 32 File Header in core file does not match executable/dso /usr/freeware/lib32/libaudiofile.so (elf header e_entry mismatch) (use of the core file may be misleading!)
Elf 32 File Header in core file does not match executable/dso /opt/TWWfsw/zlib11/lib/libz.so (elf header e_entry mismatch) (use of the core file may be misleading!)
Core from signal SIGABRT: Abort (see abort(3c))


Thanks for the help anyways.


Top
 Profile  
 
 Post subject:
Unread postPosted: Thu Nov 20, 2003 9:49 am 
Offline
Moderator
Moderator
User avatar

Joined: Fri May 09, 2003 6:10 am
Posts: 2931
Location: Maryland, USA
Hey semi-fly....any luck?

(Let me know when you want to play the compile Crossfire game).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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