Solved

Compiling xlock under Solaris 2.5.1

Posted on 1997-04-20
4
273 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
Comment Utility

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
Comment Utility
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
Comment Utility

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
Comment Utility
Would you please delete your question if it is already answered?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
UNiX Script filesystem space usage 19 59
canBalance challenge 34 65
Write an app 10 60
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 45
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now