07-21-2008
Request help to debug errors while running in 'C'
I run, 2 'C' Files, gapw.c and getkey.c, but I get the following errors :-
I) $ gcc gapw.c
gapw.c: In function `main':
gapw.c:96: warning: cast to pointer from integer of different size
/tmp/cck4I8mW.o(.text+0x227): In function `main':
: undefined reference to `getprofilestring'
/tmp/cck4I8mW.o(.text+0x2f6): In function `main':
: undefined reference to `getprofilestring'
collect2: ld returned 1 exit status
II) $gcc getkey.c
getkey.c: In function `main':
getkey.c:65: warning: cast to pointer from integer of different size
/tmp/ccQlGq7C.o(.text+0xea): In function `main':
: undefined reference to `getprofilestring'
/tmp/ccQlGq7C.o(.text+0x1ab): In function `main':
: undefined reference to `getallappkey'
/tmp/ccQlGq7C.o(.text+0x26c): In function `main':
: undefined reference to `getappkeys'
/tmp/ccQlGq7C.o(.text+0x321): In function `main':
: undefined reference to `getallapp'
/tmp/ccQlGq7C.o(.text+0x3f1): In function `main':
: undefined reference to `writeprofilestring'
collect2: ld returned 1 exit status
I included the following header files in my code, but still the errors are not removed :-
#include <stdlib.h>
#include <libgen.h>
I think these are some generic errors. Request you to please help me to debug the errors.
Thanks in advance.
Regards,
Marconi.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am running some shell scripts through a foll cron job, the script works fine and there are no errors in the log file but I receive the following error in mail for the jobs:
stty: no such device or address
What does the above error indicate, here is the cron job:
0 22 * * 0... (2 Replies)
Discussion started by: knarayan
2 Replies
2. Post Here to Contact Site Administrators and Moderators
Please post the 'Style" you are using and what activity you were doing if have received any database error recently.
I'm not getting any errors, but they are in the log files.
Thanks, Neo (0 Replies)
Discussion started by: Neo
0 Replies
3. AIX
Is there a way I can execute an installp command in debug mode, so that I can see whats happening when a fileset is being installed or updated? (What files are being replace etc etc).
I have an installp command failing for unknown reason. (7 Replies)
Discussion started by: balaji_prk
7 Replies
4. Shell Programming and Scripting
I have written shell script to find out pairsuspends in our environment.But when i run the script iam getting an error for the Pair which are not active.Below are the error am getting
pairvolchk -g up1012 -I11
pairvolchk : execution error.
pairvolchk: Unmatched CTGID within the group
Refer... (3 Replies)
Discussion started by: zeebala1981
3 Replies
5. Shell Programming and Scripting
Hello everyone,
I have a small expect script as follows;
#!/usr/bin/expect -f
set force_conservative 0 ;# set to 1 to force conservative mode even if
;# script wasn't run conservatively originally
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg}... (1 Reply)
Discussion started by: randeel
1 Replies
6. Programming
Is there any possibility of running the PHP script in a debug mode ?
If so, do i have to download any package? Any free downloads available?
Can anyone please guide me through? Am a newbie in PHP scripting.
Thanks in Advance! (1 Reply)
Discussion started by: vidhyaS
1 Replies
7. Shell Programming and Scripting
Hello,
is it possible to debug a script that is already running "on-demand"?
Somehow a command like "set -x" but once you've executed the script. And another one to disable debugging?
Thank you (0 Replies)
Discussion started by: asanchez
0 Replies
8. Linux
Hello all,
I have several vhost and not sure which vhost is serving the requests to my url
http://www.mydomain.tld i have ssh access to the web server
is there a way e.g curl to know exactly which vhost served the request.
one of my friend suggested logs but i want to find another... (4 Replies)
Discussion started by: coolatt
4 Replies
9. Shell Programming and Scripting
When I run this
#!/bin/bash
Block count: 421958912
Reserved block count: 4219589
perl -e "printf(\"%.1lf%%\n\", ($Reserved block count * 100.0 ) / $Block count);"
I get these error messages. Can someone please help me?
andyk_~/Downloads$ Show_Percent_Reserved_Blocks.sh... (4 Replies)
Discussion started by: drew77
4 Replies
LEARN ABOUT X11R4
thr_exit
thr_exit(3C) Standard C Library Functions thr_exit(3C)
NAME
thr_exit - terminate the calling thread
SYNOPSIS
cc -mt [ flag... ] file...[ library... ]
#include <thread.h>
void thr_exit(void *status);
DESCRIPTION
The thr_exit() function terminates the calling thread, in a similar way that exit(3C) terminates the calling process. If the calling thread
is not detached, then the thread's ID and the exit status specified by status are retained. The value status is then made available to any
successful join with the terminating thread (see thr_join(3C)); otherwise, status is disregarded allowing the thread's ID to be reclaimed
immediately.
Any cancellation cleanup handlers that have been pushed and not yet popped are popped in the reverse order that they were pushed and then
executed. After all cancellation cleanup handlers have been executed, if the thread has any thread-specific data, appropriate destructor
functions will be called in an unspecified order. Thread termination does not release any application visible process resources,including,
but not limited to, mutexes and file descriptors, nor does it perform any process level cleanup actions, including, but not limited to,
calling any atexit() routines that might exist.
If any thread, including the main() thread, calls thr_exit(), only that thread will exit.
If main() returns or exits (either implicitly or explicitly), or any thread explicitly calls exit(), the entire process will exit.
The behavior of thr_exit() is undefined if called from a cancellation cleanup handler or destructor function that was invoked as a result
of either an implicit or explicit call to thr_exit().
After a thread has terminated, the result of access to local (auto) variables of the thread is undefined. Thus, references to local vari-
ables of the exiting thread should not be used for the thr_exit() status parameter value.
If any thread (except the main() thread) implicitly or explicitly returns, the result is the same as if the thread called thr_exit() and it
will return the value of status as the exit code.
The process will terminate with an exit status of 0 after the last non-daemon thread has terminated (including the main() thread). This
behavior is the same as if the application had called exit() with a 0 argument at thread termination time.
RETURN VALUES
The thr_exit() function cannot return to its caller.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
exit(3C), thr_create(3C), thr_join(3C), thr_keycreate(3C), attributes(5), standards(5)
NOTES
Although only POSIX implements cancellation, cancellation can be used with Solaris threads, due to their interoperability.
The status argument should not reference any variables local to the calling thread.
SunOS 5.10 27 Mar 2000 thr_exit(3C)