02-17-2009
Try to include the -Ae option on the compile line.
e.g. cc -Ae -D FLAG -o OBJ_FILE converter.c
The -Ae option indicates Extended ANSI mode. Same as -Aa -D_HPUX_SOURCE +e.
This would define the names (macros and typedefs) provided by the HPUX
Operating System and, in addition, allow the following extensions: $ characters
in identifier names, sized enums, sized bit-fields, and 64-bit integral type
long long. ( Info From HP Knowledge base...)
10 More Discussions You Might Find Interesting
1. AIX
Hi All,
I am trying to run sqlplus on my AIX 5L box but following errors are thrown:
$ sqlplus
exec(): 0509-036 Cannot load program sqlplus because of the following errors:
0509-130 Symbol resolution failed for /usr/lib/libc.a because:
0509-136 Symbol kaio_rdwr64 (number 0)... (5 Replies)
Discussion started by: run_time_error
5 Replies
2. Programming
Undefined first referenced
symbol in file
std::basic_ostream<char, std::char_traits<char> >::operator<<(int)/var/tmp//ccTR
std::cerr /var/tmp//ccTRcjui.o
std::cout /var/tmp//ccTRcjui.o... (1 Reply)
Discussion started by: suhasini
1 Replies
3. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
4. Programming
Hey everyone, I can't figure out this symbol referencing error after looking at it for the longest time, and I figured some fresh eyes might be able to point something out I am overlooking.
Undefined first referenced
symbol in... (1 Reply)
Discussion started by: fromatz
1 Replies
5. Programming
Hi, i've compiled my app on x86_64 with -m32 gcc option. Can anybody tell me what is/would typically cause the 'undefined symbol: clock_gettime' error??
-1
k){0N!x y}
'/home/da71336/simon/mkvfh/mkv.so: undefined symbol: clock_gettime
@
"q"
"subr:mkv 2:`subr,3; subc:mkv 2:`subc,1;... (4 Replies)
Discussion started by: dpa078
4 Replies
6. Shell Programming and Scripting
My script is throwing the error 'Syntax error: redirection unexpected'
My line of code..
cat nsstatustest.html | sed s/<tr><td align="left">/<tr><td align="left" bgcolor="#000000"><font color="white">/ > ztmp.Ps23zp2s.2-Fpps3-wmmm0dss3
HTML tags are getting in the way but they're needed to... (3 Replies)
Discussion started by: phpfreak
3 Replies
7. Shell Programming and Scripting
Hello Experts,
I am trying to setup a crontab with 2 jobs but getting the familiar error
0481-079 Reached a symbol that is not expected
I would like to know if the below code is the only way to show a fixed interval. Don't we have something more efficient.
... (2 Replies)
Discussion started by: hkansal
2 Replies
8. Solaris
deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies
9. Programming
I have a C code which i am trying to compile using gcc. When i am trying to compile it i get the error undefined symbol error though i am providing the -l*** option where *** refers to the module where the object files for those symbols are present.
Can someone help me on the same. (4 Replies)
Discussion started by: manaankit
4 Replies
10. Shell Programming and Scripting
Hello,
I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time.
My script:
returned=`tail -50 SapLogs.log | grep -i "Error"`
echo $returned
if ; then
echo "There is no errors in the logs"
fi
And after... (10 Replies)
Discussion started by: jedzio
10 Replies
LEARN ABOUT REDHAT
gethostid
GETHOSTID(2) Linux Programmer's Manual GETHOSTID(2)
NAME
gethostid, sethostid - get or set the unique identifier of the current host
SYNOPSIS
#include <unistd.h>
long gethostid(void);
int sethostid(long hostid);
DESCRIPTION
Get or set a unique 32-bit identifier for the current machine. The 32-bit identifier is intended to be unique among all UNIX systems in
existence. This normally resembles the Internet address for the local machine, as returned by gethostbyname(3), and thus usually never
needs to be set.
The sethostid call is restricted to the superuser.
The hostid argument is stored in the file /etc/hostid.
RETURN VALUE
gethostid returns the 32-bit identifier for the current host as set by sethostid(2).
CONFORMING TO
4.2BSD. These functions were dropped in 4.4BSD. POSIX.1 does not define these functions, but ISO/IEC 9945-1:1990 mentions them in
B.4.4.1. SVr4 includes gethostid but not sethostid.
FILES
/etc/hostid
SEE ALSO
hostid(1), gethostbyname(3)
Linux 0.99.13 1993-11-29 GETHOSTID(2)