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
Solved

Compiling xlock under Solaris 2.5.1

Posted on 1997-04-20
4
288 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix, date minus 1, 2 or 3 days (last working day) 11 67
changeXy challenge 13 88
problem creating new luks volume on new VM disk 5 108
Install MySQL 5.6 and PHP on Centos Linux 6 138
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 …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

856 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