LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 07-13-2010, 07:31 AM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 91
Post processing application fails to build in OpenSolaris... dir.h issue


Hi

Where is dir.h supposed to live in a (O)Sol system...?

I have this application... http://www.dhondt.de/cgx_2.1.all.tar.bz2

This compiles cleanly undes Slackware, Arch... But when trying to build under (O)Sol, the build stops missing the dir.h header...

Do i need to install some package to get that header...?

BRGDS

Alex


EDIT :


In a Linux, this lives in /usr/include/sys/dir.h

I am not around my Solaris Box right now... does this exist in a Solaris box...? where...?

Last edited by Alexvader; 07-13-2010 at 07:45 AM.
 
Old 07-13-2010, 09:18 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,459

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
I believe <sys/dir.h> is obsolete and/or was conflicting with other use. Replace its reference(s) by <sys/dirent.h>.
 
1 members found this post helpful.
Old 07-13-2010, 09:33 AM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 91
Thx jlliagre
 
Old 07-14-2010, 10:32 AM   #4
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 91
Hi,

I hacked into the sources, and replaced all occurences of dir.h for dirent.h, tried to rebuild... no avail...

There were bon resolved references to DIR plus lots of other stuff... ( I do not have my solaris box around ), so I grepped for 'DIR' in /usr/include/sys/* and found nothing satisfactory so refer to...

Is it likely that the code must be patched to compile under Solaris...?

I thought that after having installed gcc stuff such problems would not happen...

BRGDS

Alex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Root Dir Change and New Dir Added issue in CentOS 5 Ginnyz Linux - Server 2 06-01-2009 08:29 PM
RAW photo post processing tmbigrigg Programming 4 06-04-2008 07:30 AM
xine 'eq' post processing lowebb Linux - Software 1 01-27-2007 05:36 AM
best options for video post-processing? theYinYeti Linux - Software 2 02-06-2006 05:39 AM
amaroK sound post processing it-s Linux - Software 1 01-25-2006 02:29 PM


All times are GMT -5. The time now is 07:07 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration