LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Thread Tools
Old 11-09-2009, 08:10 AM   #1
smartgupta
Member
 
Registered: Sep 2008
Posts: 68
Thanked: 0
Error during making a shared library


[Log in to get rid of this advertisement]
Hi all,

I am working with opensolaris and I am trying create a shared native library via using make but I am getting the following error--

Quote:
make -f /envs/mldev/common/src/com/liebert/dpg/rs232/Lx232/Makefile.SunOS debug
javah -jni SerialPort
javah -jni SerialInputStream
javah -jni SerialOutputStream
gcc -mno-app-regs -DSUN -DPOSIX_DEV_LOCK -I/usr/java/include -I/usr/java/include/solaris -I/test/as232/Bs232 -I. -g -DENABLE_CC_SHTDN -c /test/as232/Bs232/lib232so.c
cc1: error: invalid option `no-app-regs'
*** Error code 1
make: Fatal error: Command failed for target `lib232so.o'

ERROR: Buildrs232lib failed!
I am unable to find out the exact cause of error.
So Please take a look on it and help me to fix it.

Thanks in Advance...
solaris smartgupta is offline     Reply With Quote
Old 11-09-2009, 10:21 AM   #2
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,882
Thanked: 267
Just guessing : leave out the option " -mno-app-regs "
in the Makefile :

1) make a backup of the Makefile
2) delete ' -mno-app-regs '
linuxpclinuxos knudfl is online now     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shared library : libfg.so: cannot open shared object file error 40 x_gaurav Programming 2 06-28-2009 07:29 AM
Shared library error an_sush Linux - Newbie 7 01-09-2009 10:26 AM
Making a static library from a given shared library vro Programming 1 07-27-2007 05:07 PM
error while loading shared library lucky6969b Programming 2 02-08-2006 01:41 AM
Shared library error olscratch Slackware 3 11-05-2004 04:46 PM


All times are GMT -5. The time now is 05:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration