LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
Search this Thread
Old 03-05-2011, 07:41 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
hwere can i find sys/dir.h in Solaris 11 Express...?


Hi

I am trying to compile this piece of code, http://www.dhondt.de/cgx_2.2.all.tar.bz2

and i get this error along the build :

Code:
readFoam.c:7:21: sys/dir.h: No such file or directory
readFoam.c:14:1: warning: "MAXFLOAT" redefined
In file included from ./extUtil.h:15,
                 from ./cgx.h:25,
                 from readFoam.c:6:
/usr/include/math.h:98:1: warning: this is the location of the previous definition
readFoam.c: In function `readFoam':
readFoam.c:306: error: `DIR' undeclared (first use in this function)
readFoam.c:306: error: (Each undeclared identifier is reported only once
readFoam.c:306: error: for each function it appears in.)
readFoam.c:306: error: `dirp' undeclared (first use in this function)
readFoam.c:306: error: `dirp1' undeclared (first use in this function)
readFoam.c:306: warning: left-hand operand of comma expression has no effect
readFoam.c:742: warning: implicit declaration of function `opendir'
readFoam.c:744: warning: implicit declaration of function `readdir'
readFoam.c:744: warning: assignment makes pointer from integer without a cast
readFoam.c:751: error: dereferencing pointer to incomplete type
readFoam.c:755: warning: assignment makes pointer from integer without a cast
readFoam.c:758: error: dereferencing pointer to incomplete type
readFoam.c:758: error: dereferencing pointer to incomplete type
readFoam.c:764: warning: implicit declaration of function `closedir'
readFoam.c:782: warning: assignment makes pointer from integer without a cast
readFoam.c:786: error: dereferencing pointer to incomplete type
readFoam.c:788: error: dereferencing pointer to incomplete type
readFoam.c:791: error: dereferencing pointer to incomplete type
readFoam.c:903: warning: assignment makes pointer from integer without a cast
readFoam.c:906: error: dereferencing pointer to incomplete type
readFoam.c:908: error: dereferencing pointer to incomplete type
readFoam.c:911: error: dereferencing pointer to incomplete type
readFoam.c:306: warning: statement with no effect
make: *** [readFoam.o] Error 1
still

Code:
alex@solaris:~/Desktop/pkg/CalculiX/cgx_2.2/src$ ls /usr/include | grep dir
dirent.h
netdir.h
nss_netdir.h
alex@solaris:~/Desktop/pkg/CalculiX/cgx_2.2/src$ ls /usr/include | grep dir
dirent.h
netdir.h
nss_netdir.h
alex@solaris:~/Desktop/pkg/CalculiX/cgx_2.2/src$ ls /opt/csw/usr/include | grep dir
ls: cannot access /opt/csw/usr/include: No such file or directory
alex@solaris:~/Desktop/pkg/CalculiX/cgx_2.2/src$ ls /opt/csw/gcc4/include | grep dir
alex@solaris:~/Desktop/pkg/CalculiX/cgx_2.2/src$ ls /opt/csw/include | grep dir
H5FDdirect.h
alex@solaris:~/Desktop/pkg/CalculiX/cgx_2.2/src$ find / -name sys.h
alex@solaris:~/Desktop/pkg/CalculiX/cgx_2.2/src$ sudo find / -name sys.h
Password: 
alex@solaris:~/Desktop/pkg/CalculiX/cgx_2.2/src$
What can i do about this...?

BRGDS

Alex
 
Old 03-05-2011, 07:50 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
All I have, from Google and your previous post here on this same subject is that it's probably dirent.h on Solaris.

Last edited by AlucardZero; 03-05-2011 at 07:51 PM. Reason: removing wrong information
 
1 members found this post helpful.
Old 03-06-2011, 04:17 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by AlucardZero View Post
All I have, from Google and your previous post here on this same subject is that it's probably dirent.h on Solaris.
WHOAAAA

I did it

I grepped for dir.h in my source tree and changed to dirent... this would still throw errors in compile time... so i changed #include <sys/dir.h> for #include <dir.h> in my source tree, and dropped a dir.h inside

Code:
/*
 * Copyright (c) 1982, 1986, 1989, 1993
 *    The Regents of the University of California.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *    This product includes software developed by the University of
 *    California, Berkeley and its contributors.
 * 4. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 *    @(#)dir.h    8.2 (Berkeley) 1/4/94
 * $FreeBSD: src/sys/sys/dir.h,v 1.6 1999/08/28 00:51:39 peter Exp $
 */

#ifndef _SYS_DIR_H_
#define    _SYS_DIR_H_

#if __GNUC__
#warning "The information in this file should be obtained from <dirent.h>"
#warning "and is provided solely (and temporarily) for backward compatibility."
#endif

#include <dirent.h>

/*
 * Backwards compatibility.
 */
#define    direct        dirent
#define    DIRSIZ(dp)    _GENERIC_DIRSIZ(dp)

#endif /* !_SYS_DIR_H_ */

...now, ain't open source a wonderful thing... ?

Now, will try to build BrlCad, Blender, Code Aster and OpenFoam.
 
Old 03-07-2011, 07:15 PM   #4
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
I have Packed those binaries i built with the sources from here, http://www.dhondt.de/, and posted them in their yahoo group, in the files section... should someone be interested in using these in Solaris...

Grace builds fine in Solaris also... http://plasma-gate.weizmann.ac.il/Grace/

Still have to build :

Brl-Cad, Code_aster, Blender, OpenFOAM, AVL, XFoil, gmsh, netgen, and , last but not the least, the broadcom driver using Ndiswrapper for 64bits

... I have 3 VMs running solaris :

OpenSolaris 0906
OpenIndiana
Solaris 11 Express

So far i have only built this in the OpenSolaris 0906, using ndis-1.2.5 from http://hub.opensolaris.org/bin/view/...up+laptop/ndis

seems that this is a bit version dependent... same thing which works under OpenSolaris does not work under Solaris 11 Express or OpenIndiana...

Only if i build these stuff may i consider the possibility of shifting one of my machines from Debian to Solaris...

ZFS and snapshots are unique features allright... but i need my tools to work...

BTW, does Solaris has SciPy, and NumPy, and SciTools...?

BRGDS

Alex

Last edited by Alexvader; 03-07-2011 at 07:17 PM.
 
Old 03-08-2011, 01:44 AM   #5
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 266

Rep: Reputation: 30
It should work in openindiana since it's not too changed from opensolaris yet.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solaris Cluster on Solaris 11 Express jim0112 Solaris / OpenSolaris 1 01-02-2011 03:38 AM
Can't find .ssh dir in home dir bobby953 Linux - Newbie 5 03-09-2009 04:00 AM
Choosing between Solaris 10 and Solaris Express to run sun xVM hypervisor crisostomo_enrico Solaris / OpenSolaris 1 09-26-2008 01:39 PM
LXer: Marvell Yukon Driver (SK-9E22) for Solaris (x64) 8.19.1.3 installation procedure in Solaris Express LXer Syndicated Linux News 0 04-22-2007 03:16 AM
Solaris 9 to Solaris 10/Express upgrade SteveK1979 Solaris / OpenSolaris 1 02-21-2007 07:49 PM


All times are GMT -5. The time now is 10:17 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration