- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- compiling problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2006 10:51 PM
тАО05-18-2006 10:51 PM
I am trying comple a very simple C programm, the program is very simple it creates a glut window and that's all. I compile it using gcc 4.1 and got some problems:
------------------------------
/opt/graphics/OpenGL/include/GL/glHPInt:33:error: thread-local storage not supported for this target
------------------------------
can anyone give some help to me, what's the problem? thanks in advance!
yz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2006 11:00 PM
тАО05-18-2006 11:00 PM
Re: compiling problem
Check this out, http://lists.debian.org/debian-glibc/2006/02/msg00303.html
it could be a bug in GCC.. Try latest available version of GCC or try with HP Ansi C or aCC.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2006 12:32 AM
тАО05-19-2006 12:32 AM
Re: compiling problem
I am using a hp c3000 system running hpux 11i v1, not a debian system. I think the gcc 4.1.0 is the latest. any suggestions on a stable gcc version? thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2006 12:37 AM
тАО05-19-2006 12:37 AM
Re: compiling problem
The gcc is stable, I think this code has included an invalid reference to the file in the error.
Does the file exist?
If not, see about modifying your code to stop including it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2006 02:16 AM
тАО05-19-2006 02:16 AM
Re: compiling problem
the .h files included in my programm are:
#include
#include
nothing else.
I do not know if there really have a file called glHPInt, I will check it when I am home. thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2006 06:11 AM
тАО05-19-2006 06:11 AM
Solutiongcc can't cope with the __thread storage type. You can avoid the entire macro mechanism and use normal function calls by using "-D__glHpInt_h__" to ifdef away the body of
glHpInt.h.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 08:46 PM
тАО05-21-2006 08:46 PM
Re: compiling problem
problems:
------------------
/usr/ccs/bin/ld: Unsatisfied symbols:
glutInitWindowSize(code)
glutInitDisplayMode(code)
glutMainLoop(code)
glutCreateWindow(code)
glutInitWindowPosition(code)
glutInit(code)
collect2:ld returned 1 exit status
gmake: ***[glutw] Error 1
--------------------
So what's the problem? Many thanks in advance.
Yinghui Zhang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 08:58 PM
тАО05-21-2006 08:58 PM
Re: compiling problem
You may need to link your program with OpenGL libraries. Check this out http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6268AA
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 03:19 AM
тАО05-22-2006 03:19 AM
Re: compiling problem
it before the code that used it. It is available on HP-UX as
/opt/graphics/OpenGL/contrib/libglut/libglut.a which you can
use with -L/opt/graphics/OpenGL/contrib/libglut -lglut .
Because it is an archive library it must appear in the link line
after the file that calls the glut functions. If it is listed too
early then the linker won't know to pull in the required functions.
You can use -Wl,+n to ask the HP-UX linker to loop around retrying archive libraries to pick up missing symbols. I don't usually consider the +n option unless the libraries have circular dependencies. Getting the source files and libraries in the correct dependency order is more portable.
The version of glut shipped with HP-UX is quite old. If you have
code that uses newer glut features you will need to compile a newer
version. You can find that at
http://www.opengl.org/resources/libraries/glut/glut_downloads.php
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 09:17 PM
тАО05-22-2006 09:17 PM
Re: compiling problem
-L/opt/graphics/OpenGL/contrib/libglut/libglut.a -lglut
instead of
-L/opt/graphics/OpenGL/contrib/libglut -lglut.
Anyway, I got my glut window!
Many thanks.