Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Compiling xlock under Solaris 2.5.1

Posted on 1997-04-20
4
Medium Priority
?
299 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 450 total points
ID: 1292615
Would you please delete your question if it is already answered?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses

618 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