|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
Is /usr/X11R6/include/ supposed to be in $CPATH
When I try to build certain non-openbsd packages I manually have to set CPATH to include /usr/X11R6/include for the makefiles to work.
Since the makefiles are made for generic os'es I assume that there is something wrong in my configuration. I once had similar troubles with building ports in netbsd, I had the X-headers but when I made the ports, it did not find the X-headers. The error then, was that I had not installed with the option X11 distfiles. Have I missed something similar in openbsd? How can I set this after the install. |
|
||||
I have ported a few applications to OpenBSD, but never an X-based one.
But .... If you look at any Makefile for an existing port that uses X -- along with a bunch of X libraries in WANTLIB, you should see USE_X11=Yes. According to bsd.port.mk(5), this is required to build ports that require X facilities. Some analysis, such as: may help you uncover information about how X applications are ported. You should note tools like build/resolve-lib and db/config.x11.site that set library and include paths for X, respectively. Based on my cursory review of this -- perhaps 30 seconds worth of find commands, CPATH is not set within the ports infrastructure. You may want to start with an existing port with similar infrastructure requirements, and build your own based on its Makefile structure. See www.openbsd.org/porting.html for the start of many web pages on porting applications. Last edited by jggimi; 3rd December 2008 at 01:51 AM. Reason: typo |
|
|||
To begin with, I would like to express my appreciation for you taking the time to help out.
Quote:
The package from http://hackage.haskell.org did have a configure script that I guess was generated by configure.ac, so from what I understand it should have set the correct include libraries. Anyway it worked when I set CPATH manually, so I guess the error was in the configure script. I was trying to install xmonad-contrib and xmobar, I guess xmonad-contrib worked but not xmobar since it needs a newer haskell compiler. In my humble newbie opinion it is a pity that there is not more xmonad in openbsd, since it is sucha nice windowmanager, but I guess http://www.openbsd.org/faq/faq1.html#HowAbout rules Quote:
|
|
|||
To answer the question.. none of the base package sets depend on each other.. the version of gcc in the comp44.tgz package is the "system compiler", i.e: for the kernel and base userland.
So.. by default, the only path it looks in is /usr.. which is guaranteed to always be there. I hope that helps.. just manually point to the paths using the -I and -L arguments. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What include and shared library directories are searched by gcc | kasse | FreeBSD General | 3 | 16th July 2008 08:44 PM |