?
Solved

Compiling xlock under Solaris 2.5.1

Posted on 1997-04-20
4
Medium Priority
?
298 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.
Suggested Courses

762 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