Opened 4 years ago

Closed 12 months 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:
Has a Patch: yes 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 13 months ago.
Fix for building on RedHat Enterprise / CentOS 7

Download all attachments as: .zip

Change History (12)

comment:1 by axeld, 4 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, 4 years ago

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

comment:3 by axeld, 4 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, 17 months 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, 17 months 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, 13 months ago

Fix for building on RedHat Enterprise / CentOS 7

comment:6 by jackburton, 13 months ago

Has a Patch: set

comment:7 by jackburton, 13 months ago

Resolution: invalid
Status: closedreopened

comment:8 by jackburton, 13 months 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, 13 months ago

Please submit paches on Gerrit: http://review.haiku-os.org We are not using Trac for patch tracking anymore. The "patch" checkbox is still there until we're done migrating old patches to Gerrit and we can remove the plugin.

Last edited 13 months ago by pulkomandy (previous) (diff)

comment:10 by jackburton, 13 months ago

Done.

comment:11 by jackburton, 12 months ago

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