Opened 9 years ago

Closed 6 years ago

#12367 closed bug (fixed)

Can't build haiku from latest source on

Reported by: eanyx Owned by: nobody
Priority: normal Milestone: R1
Component: - General Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Cannot build haiku from latest source code on git, with RHEL 6.5 (Redhat Enterprise) with proper build dependencies:

mkdir ~/Downloads/HAIKU cd ~/Downloads/HAIKU

git clone https://git.haiku-os.org/buildtools git clone https://git.haiku-os.org/haiku

then cd buidltools cd jam make ./jam0 install

then cd ../haiku make generated.x86gcc2 cd generated.x86gcc2 ../configure --use-xattr-ref --build-cross-tools x86_gcc2 ../../buildtools --build-cross-tools x86 --use-gcc-pipe -j4

then jam -q @nightly-cd > /dev/null

/root/Downloads/HAIKU/haiku/src/kits/package/FetchFileJob.cpp: In member function ‘virtual status_t BPackageKit::BPrivate::FetchFileJob::Execute()’: /root/Downloads/HAIKU/haiku/src/kits/package/FetchFileJob.cpp:95: error: ‘CURLOPT_XFERINFOFUNCTION’ was not declared in this scope

So there seems to be some missing deps.

Attachments (1)

0001-CURLOPT_XFERINFOFUNCTION-is-available-since-libcurl-.patch (1.1 KB ) - added by jackburton 6 years ago.
Fix for building on RedHat Enterprise / CentOS 7

Download all attachments as: .zip

Change History (12)

comment:1 by axeld, 9 years ago

Resolution: invalid
Status: newclosed

You need to update your libcurl-dev package, as noted in https://www.haiku-os.org/guides/building/pre-reqs

comment:2 by diver, 9 years ago

Would it be possible to use Service Kit in Package Kit instead of curl? Are we missing something?

comment:3 by axeld, 9 years ago

libcurl is needed to build on the host. Since the Services Kit builds on top of our Network Kit, it would all have to be ported to Linux to be able to use it there. Not sure if it's worth it, just to lose a dependency.

comment:4 by jackburton, 7 years ago

Since commenting the three lines which reference that option let the build work correctly, couldn't we use that option conditionally ? Depending on the libcurl version, maybe.

comment:5 by pulkomandy, 7 years ago

Apparently it is used only to monitor download progress and show the progress bar, so yes, it could be disabled if not available.

Something like this may work, too: https://github.com/andelf/go-curl/blob/master/compat.h

by jackburton, 6 years ago

Fix for building on RedHat Enterprise / CentOS 7

comment:6 by jackburton, 6 years ago

patch: 01

comment:7 by jackburton, 6 years ago

Resolution: invalid
Status: closedreopened

comment:8 by jackburton, 6 years ago

This patch allows building on RedHat Enterprise / CentOS 7, without upgrading the libcurl library (which can be annoying). I think we should try to support these platforms, especially since the ifdeffed out part only adds "cosmetic" stuff.

comment:9 by pulkomandy, 6 years ago

Please submit paches on Gerrit: http://review.haiku-os.org

Version 0, edited 6 years ago by pulkomandy (next)

comment:10 by jackburton, 6 years ago

Done.

comment:11 by jackburton, 6 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.