Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freebsd port issue #42

Closed
wabkia opened this issue Mar 26, 2020 · 7 comments
Closed

freebsd port issue #42

wabkia opened this issue Mar 26, 2020 · 7 comments
Labels
Milestone

Comments

@wabkia
Copy link

wabkia commented Mar 26, 2020

hello, i'm very new to clang. i was attempting to test out lms on my freebsd box and went to work making the necessary edits to build.

a few hours later, success!! it builds! i went through the rest of the setup but unfortunately it crashes doing something with graphicsmagick. i've attached the output here, but i dont think that it's the real issue.

my thought is that i dont want to edit the libary yet, but that maybe i should to get a more verbose output? attempts to find out where this assertion all failed, but i need to learn more.

any ideas?

ARG = ./src/lms/lms
ARG = --config=/var/lms/wt_config.xml
ARG = --docroot=/usr/local/share/lms/docroot/;/resources,/css,/images,/js,/favicon.ico
ARG = --approot=/usr/local/share/lms/approot
ARG = --resources-dir=/usr/local/share/Wt/resources
ARG = --http-port=8080
ARG = --http-address=0.0.0.0
[2020-Mar-26 02:36:53.075] 61843 - [info] "config: reading Wt config file: /var/lms/wt_config.xml (location = './src/lms/lms')"
[2020-Mar-26 02:38:08.090] 61843 - [error] "SocketNotifier: connect socket1 failed. Error code 60"
[2020-Mar-26 02:38:08.092] 61843 - [info] - [DB] Creating connection pool on file /var/lms/lms.db
[2020-Mar-26 02:38:08.177] 61843 - [info] - [DB] Tables created
[2020-Mar-26 02:38:08.178] 61843 - [info] - [DB] Database version = 13, LMS binary version = 13
[2020-Mar-26 02:38:08.203] 61843 - [info] - [DB] Creating cluster type ALBUMGROUPING
[2020-Mar-26 02:38:08.204] 61843 - [info] - [DB] Creating cluster type ALBUMMOOD
[2020-Mar-26 02:38:08.204] 61843 - [info] - [DB] Creating cluster type GENRE
[2020-Mar-26 02:38:08.204] 61843 - [info] - [DB] Creating cluster type MOOD
[2020-Mar-26 02:38:08.215] 61843 - [info] - [DB UPDATER] Using scan settings version 1
Assertion failed: (copy->signature == MagickSignature), function CopyException, file magick/error.c, line 222.
Magick: abort due to signal 6 (SIGABRT) "Abort"...
Abort (core dumped)```
@epoupon
Copy link
Owner

epoupon commented Mar 27, 2020

I am afraid I will have to give it a try myself to solve this.
How did you install wt4 and imagemagick6?

Edit: to answer your question: you can get more info from lms by setting log-config="*" in lms.conf but i guess it is crashing when setting up the default cover image

@wabkia
Copy link
Author

wabkia commented Mar 28, 2020

here are the changes i made. both wt4 and imagemagick6 are in the pkg repo and can be installed using the pkg utility. i didnt need to go to ports/source for any of the required modules used in lms on freebsd 12.1.

ill set the log-config option and post more in a bit.
freebsd-build-changes.txt

@wabkia
Copy link
Author

wabkia commented Mar 28, 2020

with the logging at "*" no more information is revealed. when i have the chance ill take a look at the "setting up the default cover image" step if i can find it :)

@epoupon
Copy link
Owner

epoupon commented Mar 28, 2020

Ok, I managed to reproduce the issue. I confirm there is indeed a misusage of the ImageMagick++ API.

@epoupon
Copy link
Owner

epoupon commented Mar 28, 2020

Well I have a workaround but there is something I don't understand. I opened an issue here to get more information: ImageMagick/ImageMagick6#79

epoupon added a commit that referenced this issue Mar 29, 2020
epoupon added a commit that referenced this issue Mar 29, 2020
@epoupon epoupon added this to the v3.9.0 milestone Mar 29, 2020
@epoupon
Copy link
Owner

epoupon commented Mar 29, 2020

Ok, it is working fine now on the develop branch (will publish this on 3.9.0).
In order to compile on FreeBSD 12.1, I just installed all the dependencies using pkg as you did (caution: LMS now uses GraphicsMagick++ instead of ImageMagick++).
Then:

mkdir build
cd build
setenv CXXFLAGS -I/usr/local/include
setenv LDFLAGS -L/usr/local/lib
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4
make install

Then I edited lms.conf (which is just an example config file) to adapt the paths to use /usr/local

Thanks again for reporting this!

@epoupon epoupon closed this as completed Mar 29, 2020
@wabkia
Copy link
Author

wabkia commented Mar 30, 2020

word! thank you!

@epoupon epoupon added the bug label Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants