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)
Change History (12)
comment:1 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 9 years ago
Would it be possible to use Service Kit in Package Kit instead of curl? Are we missing something?
comment:3 by , 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 , 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 , 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 , 6 years ago
Attachment: | 0001-CURLOPT_XFERINFOFUNCTION-is-available-since-libcurl-.patch added |
---|
Fix for building on RedHat Enterprise / CentOS 7
comment:6 by , 6 years ago
patch: | 0 → 1 |
---|
comment:7 by , 6 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:8 by , 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 , 6 years ago
Please submit paches on Gerrit: http://review.haiku-os.org
comment:11 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
You need to update your libcurl-dev package, as noted in https://www.haiku-os.org/guides/building/pre-reqs