nv66-2007-06-24 - oss-v4.1test0-070831-src-cddl build issue

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, cesium, kodachi

nv66-2007-06-24 - oss-v4.1test0-070831-src-cddl build issue

Postby patrick » Sat Sep 22, 2007 2:54 pm

Hi,

I'm trying to compile this version on my OpenSolaris nv66.
i've created an empty directory build1.

# pwd
/oss4.1cddl/build1

sh /oss4.1cddl/configure
after about half a minute it exits on

--SNIP
r/lib/libOSSlib/Readme->d1/origdir/build1/origdir/build1/origdir/build1/origdir/lib/libOSSlib/.nativemake/Readme
FLE /oss4.1cddl/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/lib/libOSSlib/play_event.c->d1/origdir/build1/origdir/build1/origdir/build1/origdir/lib/libOSSlib/.nativemake/play_event.c
FLE /oss4.1cddl/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/lib/libOSSlib/gmidi.h->d1/origdir/build1/origdir/build1/origdir/build1/origdir/lib/libOSSlib/.nativemake/gmidi.h
FLE /oss4.1cddl/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/lib/libOSSlib/midiparser.c->d1/origdir/build1/origdir/build1/origdir/build1/origdir/lib/libOSSlib/.nativemake/midiparser.c
/oss4.1cddl/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/build1/origdir/lib/libOSSlib/midiparser.h: Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS
Cannot create the build tree
cp: cannot access i386/kernel/framework/include/timestamp.h

Did I mis something in the build instructions? I've tried compiling a GPL and the 4.0 versions all exit with same error. The MAXSYMLINKS is kind of weird.

Anyone encounterd this before?

regards,

Patrick
patrick
New Member
 
Posts: 2
Joined: Sat Sep 22, 2007 2:44 pm

Postby cesium » Sat Sep 22, 2007 2:59 pm

From RELNOTES.txt:
NOTE! The build directory must be outside the source directory. Otherwise the configure script will go to endless loop and fail.


You're using /oss4.1cddl/build1 which is a subdirectory of /oss4.1cddl . You need to create an independent directory (e.g. /ossbuild) and then run /oss4.1cddl/configure from there.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

my bad

Postby patrick » Sat Sep 22, 2007 4:39 pm

thanks cesium, kinda missed that note.
patrick
New Member
 
Posts: 2
Joined: Sat Sep 22, 2007 2:44 pm

Issue not solve

Postby partha06 » Wed Nov 07, 2007 6:00 pm

Hi,

I make dir in /opt & source dir in, /Desktop/driver , same issue..

Thanks

Partha
partha06
New Member
 
Posts: 3
Joined: Wed Nov 07, 2007 5:44 pm

Building still fails

Postby arb » Fri Feb 08, 2008 9:46 am

Hi

Building still fails, even outside the oss tree, presumably because of the sub-directories, i386 and amd64 or sparc.

Using Solaris10 specific script
cd sparc;sh ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh -Asparc -U
../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: cannot open

cd i386;sh ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh -Ai386
../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: cannot open
cd amd64;sh ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh -Aamd64 -K
../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: cannot open
cp: cannot access i386/kernel/framework/include/timestamp.h
arb
New Member
 
Posts: 3
Joined: Fri Feb 08, 2008 9:39 am

Postby partha06 » Fri Feb 08, 2008 9:49 am

Use pkg file. it will work..
partha06
New Member
 
Posts: 3
Joined: Wed Nov 07, 2007 5:44 pm

Postby arb » Fri Feb 08, 2008 11:30 am

I haven't tried the pkg file because I don't want it to timeout after a few months. Besides, having open source is not very useful if it won't build :wink:
arb
New Member
 
Posts: 3
Joined: Fri Feb 08, 2008 9:39 am

Postby dev » Fri Feb 08, 2008 5:57 pm

You need to ensure that the C Compiler CC is in the path.

Add /opt/SUNWspro/bin to your path and then run the configure script.



regards
Dev Mazumdar
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby arb » Fri Feb 08, 2008 6:07 pm

The problem is not the C compiler, the configure script doesn't get that far!!

arb% which cc
/opt/SUNWspro/bin/cc
arb% which CC
/opt/SUNWspro/bin/CC
arb% cd /tmp/oss/build-solx86/
arb% ls
amd64/ build.sh@ ddksample@ i386/ Makefile origdir@
arb% \rm -r *
arb% ../oss-v4.0-build1013-src-cddl/configure
Using Solaris10 specific script
cd i386;sh ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh -Ai386
../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: cannot open
cd amd64;sh ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh -Aamd64 -K
../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: ../oss-v4.0-build1013-src-cddl/setup/setupdir.sh: cannot open
cp: cannot access i386/kernel/framework/include/timestamp.h
arb
New Member
 
Posts: 3
Joined: Fri Feb 08, 2008 9:39 am

Postby dev » Fri Feb 08, 2008 9:11 pm

do you have /usr/ccs/bin in your path?

I just downloaded build 1013 CDDL source code
extracted the software in /usr/src
created /usr/src/oss-build
cd /usr/src/oss-build

sh /usr/src/oss-v4.0-build1013-src-cddl/configure
Using Solaris10 specific script
cd i386;sh /usr/src/oss-v4.0-build1013-src-cddl/setup/setupdir.sh -Ai386
srcdir=/usr/src/oss-v4.0-build1013-src-cddl
Source directory is /usr/src/oss-v4.0-build1013-src-cddl
Build directory is /usr/share/src/oss-build/i386
..
..
..

Directory preparation complete.
Build ID will be 1013


make package


Perhaps you should try making as root.

regards
Dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby seawright » Fri Feb 08, 2008 10:58 pm

arb wrote:arb% ../oss-v4.0-build1013-src-cddl/configure

Use absolute path not relative path to the configure script
ie.
/usr/src/oss-v4.0-build1013-src-cddl/configure
regards
Clive
seawright
Member
 
Posts: 93
Joined: Sat Jan 06, 2007 9:10 pm
Location: Hampshire UK


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest

cron