Solved

Compiling xlock under Solaris 2.5.1

Posted on 1997-04-20
4
282 Views
Last Modified: 2013-12-26

I have recently installed Solaris 2.5.1 and am in the process of
recompiling many applications.  I easily compiled X11R6.3, but am having
problems with xlock.

This is the linker error that I am receiving:

        LD_RUN_PATH=/opt/local/X11R6.3/lib gcc -fpcc-struct-return -o xlock
        -O2      -L/opt/local/X11R6.3/lib xlock.o hsbramp.o usleep.o
        resource.o hopalong.o qix.o life.o image.o blank.o swarm.o -lXext
        -lX11   -lm -lsocket -lnsl  xlock.o: In function `error':
        xlock.o(.text+0xf44): undefined reference to `sigmask'
        xlock.o(.text+0xf50): undefined reference to `sigmask'
        xlock.o(.text+0xf5c): undefined reference to `sigmask'

        xlock.o(.text+0xf68): undefined reference to `sigmask'
        xlock.o(.text+0xf78): undefined reference to `sigblock'
        xlock.o(.text+0xfc8): undefined reference to `sigsetmask'
        make: *** [xlock] Error 1

The problem is that I can not find the object library which has these
objects in them.  Can anyone help out here?

0
Comment
Question by:cjw
  • 2
4 Comments
 
LVL 1

Expert Comment

by:flisakow
ID: 1292612

sigmask and the ilk are not actual system calls under solaris,
but are rather #defined macros.  You need to include <signal.h>
in xlock.c to solve your troubles.

Shaun
0
 

Author Comment

by:cjw
ID: 1292613
I was able to solve my problem, before seeing this answer. This
answer is not correct. It is apparent that the person who answered this problem did not actually try to compile
xlock on a Solaris 2.5.1 machine to reproduce the problem, but
just gave an answer, which is wrong.
0
 
LVL 1

Expert Comment

by:flisakow
ID: 1292614

Then by all means answer your own question.

I don't feel the "experts" have a responsiblity to try out their
advice; especially considering there is little to gain, and I
for one simply like helping people.

Perhaps what you really desire is a consultant?


0
 

Accepted Solution

by:
prade earned 150 total points
ID: 1292615
Would you please delete your question if it is already answered?
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question