thewml / website-meta-language

An old offline HTML preprocessor (which can be used for static site generation), written in Perl and C that is still maintained for legacy reasons, but probably not recommended for new sites.
https://www.shlomifish.org/open-source/projects/website-meta-language/
GNU General Public License v2.0
14 stars 8 forks source link

Please document linking dependencies #29

Closed traumschule closed 5 years ago

traumschule commented 5 years ago

9 implies that some dependency is missing, please document them.

After solving issues in #28 linking fails with

$ cd src/build
$ cmake ..
$ make
...
[ 32%] Linking C executable wml_p3_eperl
/usr/bin/ld: cannot find -lperl
/usr/bin/ld: cannot find -lgdbm
/usr/bin/ld: cannot find -lgdbm_compat
/usr/bin/ld: cannot find -ldb
collect2: error: ld returned 1 exit status
wml_backend/p3_eperl/CMakeFiles/eperl.dir/build.make:437: recipe for target 'wml_backend/p3_eperl/wml_p3_eperl' failed
make[2]: *** [wml_backend/p3_eperl/wml_p3_eperl] Error 1
CMakeFiles/Makefile2:1237: recipe for target 'wml_backend/p3_eperl/CMakeFiles/eperl.dir/all' failed
make[1]: *** [wml_backend/p3_eperl/CMakeFiles/eperl.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
$ dpkg -l|grep gdbm
ii  libgdbm-compat4:i386                  1.18.1-2                                           i386         GNU dbm database routines (legacy support runtime version)
ii  libgdbm3:i386                         1.8.3-14                                           i386         GNU dbm database routines (runtime version)
ii  libgdbm6:i386                         1.18.1-2                                           i386         GNU dbm database routines (runtime version)

$ dpkg -l|grep libdb
ii  libdb5.3:i386                         5.3.28-12+deb9u1                                   i386         Berkeley v5.3 Database Libraries [runtime]
ii  libdbus-1-3:i386                      1.10.26-0+deb9u1                                   i386         simple interprocess messaging system (library)
ii  libdbus-glib-1-2:i386                 0.108-2                                            i386         simple interprocess messaging system (GLib-based shared library)
shlomif commented 5 years ago

This is hard to do because they are specified by the libperl config flags.

traumschule commented 5 years ago

Default flags should work, no?

shlomif commented 5 years ago

Default flags should work, no?

Which default flags?

traumschule commented 5 years ago

You clearly know more here and i can't tell you how to fix the error. Please tell us!

shlomif commented 5 years ago

Hi,

You clearly know more here and i can't tell you how to fix the error. Please tell us!

It cannot be easily fixed AFAIK. Can I resolve this as WONTFIX? Also, why are you not using the debian package?

traumschule commented 5 years ago

Can I resolve this as WONTFIX?

Sure you can but it does not help others in the future. Better you tell us how fix it :)

shlomif commented 5 years ago

Can I resolve this as WONTFIX?

Sure you can but it does not help others in the future. Better you tell us how fix it :)

just install the relevant *-dev / *-devel / etc. packages - see https://github.com/thewml/website-meta-language/blob/master/.travis.yml .

traumschule commented 5 years ago

It also needs libgdbm-dev libgdbm-compat-dev, will add another commit.