Skip to content

Trying to compile laxkit on FreeBSD (fails) #7

@probonopd

Description

@probonopd

Trying to compile laxkit on FreeBSD with the ultimate objective of compiling Laidout on FreeBSD.

Issue 1: Hardcoded path to cups

FreeBSD% ./configure     
(...)
Checking for cups......You need to install the development package of Cups.

Debugging using truss, it turns out /usr/include/cups is hardcoded:

FreeBSD% truss ./configure --disable-sqlite --relocatable 2>&1 | grep cups
Checking for cups......write(1,"Checking for cups......",23) = 23 (0x17)
fstatat(AT_FDCWD,"/usr/include/cups",0x7fffffffe0f8,0x0) ERR#2 'No such file or directory'

On FreeBSD, the string /usr/include/cups must be changed to /usr/local/include/cups in configure. Then it runs without issues.

A better solution would be not to hardcode this string.

Issue 2: Includes are not found

gmake
(...)
fileutils.cc:815:10: error: use of undeclared identifier 'get_current_dir_name'   

I don't know how to fix this. Adding #define _GNU_SOURCE at the top of the file did not help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions