- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gcc on HPUX 11i. Question.
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
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
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
тАО09-11-2002 12:24 PM
тАО09-11-2002 12:24 PM
gcc on HPUX 11i. Question.
Command executed:
/usr/local/bin/gcc -v -I . -I /opt/java1.4/include -I /opt/java1.4/include/hp-ux UnixIO.cc -o libfrpro3.so
The errors I get are:
UnixIO.cc: In function `int set_all(const char*, const char*, const char*,
int)':
UnixIO.cc:26: `getpwnam_r' undeclared (first use this function)
UnixIO.cc:26: (Each undeclared identifier is reported only once for each
function it appears in.)
UnixIO.cc:32: `getgrnam_r' undeclared (first use this function)
UnixIO.cc: In function `char* get_all(const char*)':
UnixIO.cc:60: `getpwuid_r' undeclared (first use this function)
UnixIO.cc:62: `getgrgid_r' undeclared (first use this function)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2002 08:44 PM
тАО09-11-2002 08:44 PM
Re: gcc on HPUX 11i. Question.
Seems the
I'm not too familiar with "gcc", but does it include the standard include paths during compilation?
Maybe you could add an explicit
"-I /usr/include"
at the front of the gcc command to test.
Alternatively, you could build a small C routine and compile it with the built-in "cc" command just to see that the functions are available.
Good luck,
Ollie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2002 10:01 PM
тАО09-11-2002 10:01 PM
Re: gcc on HPUX 11i. Question.
Did you use it to *rebuild* it itself on your own system? (you should)
Read instructions on https://www.beepz.com/personal/merijn (but don't get the gcc from there for 11i, it's an 11.00 port that prooved not to work on 11i)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2002 12:05 PM
тАО09-12-2002 12:05 PM
Re: gcc on HPUX 11i. Question.
I have verified the location of pwd.h. My search path finds it without issue.
Here is the full command line and its results. I have clean installed gcc 3.1 and 3.2 from both hp and the porting center from depot and compiled without changing the error. I tested a program using calls to the pwd.h library without issue. (Ran fine).
Thanks for any and all insights.
eg.
gcc -v -I . -I /opt/java1.4/include -I /opt/java1.4/include/hp-ux UnixIO.cc
Reading specs from /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.2/specs
Configured with: ../gcc/configure --prefix=/usr/local/pa20_64 --enable-languages=c,c++ --host=hppa64-hp-hpux11.00 --target=hppa64-hp-hpux11.00 --with-ld=/usr/ccs/bin/ld --with-gnu-as --enable-libstdcxx-v3 --disable-checking
Thread model: single
gcc version 3.2 20020708 (experimental)
/usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.2/cc1plus -quiet -v -I . -I /opt/java1.4/include -I /opt/java1.4/include/hp-ux -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem=unix -Asystem=hpux -Acpu=hppa -Amachine=hppa -D_HPUX_SOURCE -D_HIUX_SOURCE -D__STDC_EXT__ -D_INCLUDE_LONGLONG -D_PA_RISC1_1 -D__hp9000s700 -D_PA_RISC2_0 -D__hp9000s800 -D__LP64__ UnixIO.cc -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase UnixIO.cc -version -o /var/tmp//ccswuqjh.s
GNU C++ version 3.2 20020708 (experimental) (hppa64-hp-hpux11.00)
compiled by GNU C version 3.2 20020708 (experimental).
ignoring nonexistent directory "/usr/local/pa20_64/hppa64-hp-hpux11.00/include"
#include "..." search starts here:
#include <...> search starts here:
.
/opt/java1.4/include
/opt/java1.4/include/hp-ux
/usr/local/pa20_64/include/c++/3.2
/usr/local/pa20_64/include/c++/3.2/hppa64-hp-hpux11.00
/usr/local/pa20_64/include/c++/3.2/backward
/usr/local/include
/usr/local/pa20_64/include
/usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.2/include
/usr/include
End of search list.
UnixIO.cc: In function `int set_all(const char*, const char*, const char*, int)
':
UnixIO.cc:25: error: `getpwnam_r' undeclared (first use this function)
UnixIO.cc:25: error: (Each undeclared identifier is reported only once for each
function it appears in.)
UnixIO.cc:31: error: `getgrnam_r' undeclared (first use this function)
UnixIO.cc: In function `char* get_all(const char*)':
UnixIO.cc:59: error: `getpwuid_r' undeclared (first use this function)
UnixIO.cc:61: error: `getgrgid_r' undeclared (first use this function)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2002 03:17 AM
тАО09-16-2002 03:17 AM
Re: gcc on HPUX 11i. Question.
# gcc -L/usr/lib -lc_r ...
help? It's looking for *reentrant* versions of getpwnam (), getpwuid (), and such (which - of course - is only important if you have thread support.
If you do not need threads, or don't want them, just remove the _r parts of the function calls. Look at the man pages for the implications