Comments (7)
Looks like there is a patch for zlib-ng from OpenMandriva
https://github.com/OpenMandrivaAssociation/zlib-ng/blob/master/0001-Fix-Z_SOLO-mode.patch
from cmlfs.
For now, will allow Perl to use it's bundled zlib source:
# Ensure that we never accidentally bundle bzip2
rm -rf cpan/Compress-Raw-Bzip2/bzip2-src
sed -i '/\bzip2\-src/d' MANIFEST
from cmlfs.
Without those commands, perl builds with the bundled bzip2 and zlib source in the perl source.
I assume LFS forced perl to not use the bundled sources (zlib & bzip2) in case those bundled sources are out of date.
Main issue is incompatible zlib-ng headers causes the Compress-Raw-Zlib
perl module to not compile... I can't find anyone who has built perl with zlib-ng.
I do not have enough programming experience to fix the Compress-Raw-Zlib` perl module source to work with zlib-ng
from cmlfs.
Normally when building a system from source, one would rather use the freshly built libraries than a package's bundled 3rd-party library source.
The perl source has bundled copies of the sourcecode for bzip2 and zlib. This is handy if building perl on a system that may not have bzip2 or zlib installed. Otherwise, its like compiling zlib and bzip2 twice: once for the system and again for perl.
from cmlfs.
Perl still fails. Only 2 of 7 errors fixed with patch.
In file included from Zlib.xs:34:
/usr/include/zlib.h:1820:13: error: unknown type name 'gzFile'
Z_EXTERN gzFile Z_EXPORT gzopen(const char *, const char *);
^
/usr/include/zlib.h:1821:45: error: unexpected type name 'off_t': expected identifier
Z_EXTERN z_off_t Z_EXPORT gzseek(gzFile, z_off_t, int);
^
/usr/include/zconf.h:159:21: note: expanded from macro 'z_off_t'
# define z_off_t off_t
^
In file included from Zlib.xs:34:
/usr/include/zlib.h:1821:54: error: expected identifier
Z_EXTERN z_off_t Z_EXPORT gzseek(gzFile, z_off_t, int);
^
/usr/include/zlib.h:1822:37: error: a parameter list without types is only allowed in a function definition
Z_EXTERN z_off_t Z_EXPORT gztell(gzFile);
^
/usr/include/zlib.h:1823:39: error: a parameter list without types is only allowed in a function definition
Z_EXTERN z_off_t Z_EXPORT gzoffset(gzFile);
^
449 warnings and 5 errors generated.
make[1]: *** [Makefile:348: Zlib.o] Error 1
make[1]: Leaving directory '/sources/perl-5.34.0/cpan/Compress-Raw-Zlib'
Unsuccessful make(cpan/Compress-Raw-Zlib): code=512 at make_ext.pl line 584.
make: *** [makefile:575: lib/auto/Compress/Raw/Zlib/Zlib.so] Error 2
from cmlfs.
Build successful without these commands. 😄
Lines 10 to 13 in 9ff9373
from cmlfs.
Confusing ..
from cmlfs.
Related Issues (20)
- References to `systemctl` during boot HOT 2
- Gperf fails to compile HOT 43
- Broken stage2 (final system) clang+LLVM HOT 3
- Could we also have Heirloom NG as an alternative to GNU Coreutils in the future? HOT 63
- Python3 need to be rebuilt after final system clang is built HOT 8
- Clarity on CMLFS_TARGET at 1-cgnutools/4-musl HOT 2
- Compiler Warning: "-fuse-ld=' taking a path is deprecated"
- LLVM Compilation Failed HOT 1
- Unable to Compile Kernel HOT 25
- What are the packages that cannot be build without GCC? HOT 4
- Fail at Stage-0 (1-Mussel) HOT 6
- What is the state of CMLFS methods for cross-compiling? HOT 34
- Patch for musl's utmp.h is incomplete HOT 5
- OpenSSL needs certificates HOT 1
- LLVM-17.0.5: Stage 2 Clang has sysroot set as /llvmtools HOT 11
- Udev [from systemd] wont configure for final system; expects util-linux installed HOT 2
- Mention of `systemd-hwdb` when executing `udevadm` HOT 1
- Drop GNU's cpio for bsdcpio [provided by libarchive] HOT 14
- Autotools Broken -- `autoreconf` runs but exits with errors HOT 1
- Binutils: libctf fails to compile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmlfs.