Makefile on SunOS 5.11 Openindiana Hipster


 
Thread Tools Search this Thread
Operating Systems Solaris Makefile on SunOS 5.11 Openindiana Hipster
# 1  
Old 09-15-2018
Makefile on SunOS 5.11 Openindiana Hipster

SOLVED NOW


Solution:

Using bmake was the key. Ran into some few errors when using the compilers and the trick here was to first install the pkg system/header and then assign the working compiler in command line like this:


bmake CC=/path/to/relevant/gcc CXX=/path/to/relevant/g++ install clean



Original post:

Hello! My name is Peter and I am new to this forum. I mainly operate with FreeBSD since a year back and is always growing my knowledge towards Unix.

I have an HP Laptop I decided to put SunOS 5.11 Openindiana Hipster on and it is working very well. I have put some time and effort into configuring Xorg and I got it running quite well at one occasion (most out of luck). So now I am reconfiguring it to get it working in a stable way.

I have tried two methods of doing this and one is to compile the xf86-video-ati driver for my video card (disabling kms) and I get this error message from gmake:


Code:
Makefile:32: "../../mk/bsd.pkg.mk": No such file or directory

(Actual path: /usr/pkgsrc/mk/bsd.pkg.mk)


And an easy tabcompletion as well as ls ../../mk outputs the file in question, so it seems to exist by all means. The only thing I can think of is if it's a symlink pointing to a place where the bsd.pkg.mk doesn't exist. The name itself says that it could be BSD-specific, though pkgsrc is cross platform so I hold to account that most necessary files will be given.

Also I had the same problem with Xorg not finding another existing file even though it was in the correct directory after install.

If not bsd.pkg.mk can be used on SunOS 5.11, what file can be used in its place for gmake?

The other files in the Makefile are included properly and I attach the Makefile to this thread. I have tried retyping line which gives the error to nullify hidden characters but still no avail.


Cheers!

Peter


Addition: If my memory doesn't fail I read that the pkg for the driver is compiled against a BSD system and is then available to other platforms through pkgin to a repo. In that case I could compile it on my BSD and make a pkg out of it. But it could be more steps than necessary doing that.

Tips? Smilie


Update: Searching for compiling on Solaris I found the use of bmake instead of gmake. Still running into some errors but these should be easily stepped through.

Namely these two sites:
perkin.org.uk/posts/pkgsrc-on-smartos-creating-new-packages.html
pkgsrc.joyent.com/ (Under: Build From Source)

//Sorry for this, having the 5 post regulation as new user


Also the Makefile is reconfigured to be used with bmake, putting .include instead of include.

Last edited by sometimespeter; 09-16-2018 at 02:41 PM..
This User Gave Thanks to sometimespeter For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

SunOS 5.5.1 usage of Makefile command in make file

I am new to Solaris and compilation using make files. I have a code base which is organized into different folders. At the root folder is a master make file and in the sub directories, there are make files for that particular folder. In the make files present in subdirectories, I am seeing... (2 Replies)
Discussion started by: rajujayanthy
2 Replies

2. UNIX for Dummies Questions & Answers

[Solved] Boot Failure - Openindiana w/ Napp-it - Full Root?

Came home the other day to a Napp-it Gui that would not load. Login would appear but when i attempted I would get the following Set default permissions and reading disk and pool parameter, please wait.. in case of problems, try a reboot after Power-Off or check disk and pool status at CLI.... (1 Reply)
Discussion started by: fastedd27
1 Replies

3. Solaris

OpenIndiana: Can't mount ext2 filesystem

I have oi_151a7 and installed from sfe fuse-ext, libfuse and e2fsprogs. Mount e.g. # mount -F ext2fs /dev/dsk/c4t0d0p1 /mnt returns "mount: Operation not applicable to FSType ext2fs" and $ fuse-ext2 /dev/dsk/c4t0d0p1 ~/tmp/a/ does not output anything but the filesystem seems not to be... (3 Replies)
Discussion started by: bsdx
3 Replies

4. Solaris

Openindiana + Android permissions

Hi, I use Openindiana with napp-it. I am able to access and modify the zfs folders from windows but not from android. I ve used several apps like ES File Exporer and AnsSMB with no success. I can see the server but when I try to login it complains about wrong credentials. Any help will be very... (5 Replies)
Discussion started by: iliakos
5 Replies

5. Solaris

openindiana bridging problem (brctl)

Hello all, I was trying to hooking up several computers into my openindiana server box, the server box has few RJ45 gigabit ethernet. The desired hierarchy of the network will be shown as on the picture attached. I would like to connect each host into my gigabit ethernet because of me and my... (2 Replies)
Discussion started by: enno
2 Replies

6. Solaris

Solaris Express or OpenIndiana

Simply question which should I use. correct me if I'm wrong but Solaris Express is taking the place of Opensolaris and is officially sanctioned by Oracle and OpenIndiana is what used to be OpenSolaris. If I opt for OpenIndiana is it going to follow the official Oracle Solaris releases or are... (3 Replies)
Discussion started by: michael78
3 Replies

7. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies

8. UNIX for Advanced & Expert Users

Makefile problem - How to run module load in a Makefile

Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error: make: module: command not found Why is this? Is there any way to run this command in a Makefile? NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies

9. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies
Login or Register to Ask a Question