- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- GCC compiling
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
Forums
Discussions
Discussions
Discussions
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
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
12-11-2003 04:50 PM
12-11-2003 04:50 PM
I downloaded the gcc compiler from
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.3.2/
which was a tar file. So i untarred the file. How do i compile it now?
As i am running hpux ver11i with 64 bit, i wanted to install lsof which needs this gcc...
Please help
regards
Joyce
Solved! Go to Solution.
- Tags:
- gcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 05:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 05:14 PM
12-11-2003 05:14 PM
Re: GCC compiling
I did download , thus the file is in tar format, so i untar the file and managed to put the compiled version in the machine, but somehow when I install the lsof, it keep saying that the gcc is not compiled for 64 bit...
Any idea????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 05:49 PM
12-11-2003 05:49 PM
Re: GCC compiling
Why don't u try to install the pre-compiled Depot file which is 64 bit . I too installed the same version on 64 bit machine and lsof also running without any problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 06:01 PM
12-11-2003 06:01 PM
Re: GCC compiling
# wget gcc-other-info.depot.gz
# gzip -d gcc-other-info.depot.gz
# swinstall -s `pwd`/gcc-other-info.depot
Now add the path to gcc (I think it is /usr/local/bin/gcc) to /etc/PATH
# perl -pi -e's/$/:/usr/local/bin' /etc/PATH
You don't have to compile anything yourself.
On HP-UX gcc comes in several flavours: HP-UX 10.20 (pa-risc-1.1, 32bit only), HP-UX 11.00 (pa-risc-1.1, 32 bit only or pa-risc-2.0, 32bit or 64bit, and HP-UX 11i, 32bit or 64bit).
You *should* use the compiler that meets the system you run on. For most utils, this does not matter, but for gcc it does. So if you want to compile for 64bit Oracle, on 11i, you *need* the 64bit gcc for 11i. An 32bit gcc compiler cannot generate 64bit code (ELF64) or vise versa.
If you want to install from tar, you should not use a depot. I've got precompiled gcc binaries (including GNU binutils and gdb) available for all above combinations on my ITRC website:
Singapore https://www.beepz.com/personal/merijn/
Rotterdam http://www.cmve.net/~merijn/
Seattle http://ww.hpux.ws/merijn/
There is also installation instructions for those tar packages (these are no depots)
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 03:06 PM
12-14-2003 03:06 PM
Re: GCC compiling
I manage to download and install the gcc, the compilation of the lsof was fine, but when i run 'make', i got the below error
root@emerald: make
(cd lib; make DEBUG="-O" CFGF="-DHAS_CONST -DHPUXV=1100 -DHASVXFS -DHPUX
KERNBITS=64 -I/tmp/lsof_4.69/lsof_4.69_src/dialects/hpux/kmem/hpux11 -DHAS_IPC_S
_PATCH=2 -I/tmp/lsof_4.69/lsof_4.69_src/dialects/hpux/kmem -DHASONLINEJFS -DLSOF
_VSTR=\"B.11.00\"")
/usr/local/pa20_64/bin/gcc -DHAS_CONST -DHPUXV=1100 -DHASVXFS -DHPUXKER
NBITS=64 -I/tmp/lsof_4.69/lsof_4.69_src/dialects/hpux/kmem/hpux11 -DHAS_IPC_S_PA
TCH=2 -I/tmp/lsof_4.69/lsof_4.69_src/dialects/hpux/kmem -DHASONLINEJFS -DLSOF_VS
TR="B.11.00" -O -c ckkv.c
In file included from ../lsof.h:60,
from ckkv.c:43:
/usr/include/sys/stat.h:87: error: syntax error before "int"
/usr/include/sys/stat.h:88: error: syntax error before "int"
/usr/include/sys/stat.h:99: error: syntax error before "int"
In file included from /usr/include/sys/wait.h:83,
from ../lsof.h:61,
from ckkv.c:43:
/usr/include/sys/resource.h:135: error: syntax error before "int"
/usr/include/sys/resource.h:136: error: syntax error before "int"
In file included from /usr/include/fcntl.h:9,
/usr/include/sys/resource.h:135: error: syntax error before "int"
/usr/include/sys/resource.h:136: error: syntax error before "int"
In file included from /usr/include/fcntl.h:9,
from ../dlsof.h:42,
from ../lsof.h:172,
from ckkv.c:43:
/usr/include/sys/fcntl.h:208: error: syntax error before "int"
In file included from /tmp/lsof_4.69/lsof_4.69_src/dialects/hpux/kmem/hpux11/pro
c.h:18,
from ../dlsof.h:64,
from ../lsof.h:172,
from ckkv.c:43:
/usr/include/sys/user.h:144: error: parse error before "label_t"
/usr/include/sys/user.h:205: error: parse error before "u_ssave"
/usr/include/sys/user.h:287: error: parse error before ':' token
/usr/include/sys/user.h:306: error: parse error before '}' token
In file included from /usr/include/sys/vfs.h:31,
from /usr/include/sys/ki_calls.h:20,
from /usr/include/sys/mp.h:28,
from /usr/include/net/netmp.h:24,
*** Error exit code 1
Stop.
*** Error exit code 1
please help
Joyce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 03:57 PM
12-14-2003 03:57 PM
Re: GCC compiling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 04:05 PM
12-14-2003 04:05 PM
Re: GCC compiling
Get the lsof binary from
ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/B.11.11/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 04:31 PM
12-14-2003 04:31 PM
Re: GCC compiling
When i download the lsof binary from the website how do i go about it?
Please help. I have downloaded the make and installed it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 04:41 PM
12-14-2003 04:41 PM
Re: GCC compiling
gunzip on the file
move the lsof to /usr/bin
I think that should work
REvert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 04:49 PM
12-14-2003 04:49 PM
Re: GCC compiling
I have gunzip and moved the file over to /usr/bin.
Then i am suppose to go to the
/lsof_4.69/lsof_4.69_src directory and then run ./Configure hpuxgcc, this went on fine.
Then am i suppose to run
/make-3.80/make ?????
Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 05:01 PM
12-14-2003 05:01 PM
Re: GCC compiling
There is no need to build one again.
Just use that executable to trace processes.
just check whether that file works fine
#/usr/bin/lsof -v
REvert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 05:13 PM
12-14-2003 05:13 PM
Re: GCC compiling
If that exe downloaded from ftp server is not working then
Just do a
#./Configure hpuxgcc
if this is successful.
Make sure you did install the GNU version of make which I pointed before.
Open the make file from the lsof source dir,
then change the path of gcc to the absolute path like /usr/local/bin/gcc.Also change the path of the make to point to the gnu make currently installed.
Then do a
#gmake
(this make should be the GNU version one-give the full path)I think that should be gmake
#gmake install
check whether the lsof is now working
REvert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 05:16 PM
12-14-2003 05:16 PM
Re: GCC compiling
http://hpux.cs.utah.edu/hppd/cgi-bin/wwwtar?/hpux/Sysadmin/lsof-4.69/lsof-4.69-ss-11.00.tar.gz+lsof-4.69/HPUX.Install+text
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 08:08 PM
12-14-2003 08:08 PM
Re: GCC compiling
Thanks for spending time with me, i manage to install the lsof.
Thanks again
rgds
Joyce