Coder Social home page Coder Social logo

Comments (10)

RosenGeorgiev avatar RosenGeorgiev commented on May 13, 2024 3

I did manage to hit that bug too. Seems to only happen when you link statically with the library. That is a weird one! Also the bug seems to be absent with older versions of the library, so whatever is causing it was introduced in the more recent commits(my guess is 1f07964).

from mailio.

karastojko avatar karastojko commented on May 13, 2024 2

I got it too. Seems like a consequence of the static initialization order fiasco. I will fix it soon. Thanks for your effort.

from mailio.

karastojko avatar karastojko commented on May 13, 2024 1

@triccyx @RosenGeorgiev Please check the latest commit, it works for me in both static and dynamic linking.

from mailio.

triccyx avatar triccyx commented on May 13, 2024 1

We can close this issue.

from mailio.

karastojko avatar karastojko commented on May 13, 2024

It works fine in my case, also Ubuntu and Gmail. Is there a chance to test it with another mail server?

from mailio.

karastojko avatar karastojko commented on May 13, 2024

Hmm, all tests passed otherwise I would not commit. Probably a corner case which is not covered, I will double check. Is there a chance to give me the complete example except the credentials?

from mailio.

triccyx avatar triccyx commented on May 13, 2024

Yes, very strange but I can confirm. With .so lib all works.

from mailio.

RosenGeorgiev avatar RosenGeorgiev commented on May 13, 2024

It's the smtps_simple_msg.cpp, but I pass -DMAILIO_BUILD_SHARED_LIBRARY=OFF to cmake (actually I set in in ccmake, but it's the same). That breaks it. If you set it to ON, then it works. The example code is exactly the same (except the creds). I guess @triccyx will confirm that he compiles it the same way, that's why he hits the error too. I've got no idea why the way I link to the library triggers the bug. Again - this is a very weird one.

from mailio.

triccyx avatar triccyx commented on May 13, 2024

I use a different approach but the result should be the same:

#MAIL
FetchContent_Declare(
	mailio
	GIT_REPOSITORY https://github.com/karastojko/mailio.git
	GIT_TAG        origin/master
)
FetchContent_GetProperties(mailio)
if(NOT mailio)
	FetchContent_Populate(mailio)
	add_subdirectory(${mailio_SOURCE_DIR} ${mailio_BINARY_DIR})
endif()

This download and compile static.
But if I use the advanced trigger with ccmake:
Screenshot from 2020-08-21 15-31-33

All works.

from mailio.

triccyx avatar triccyx commented on May 13, 2024

I have tested and it works for me.

from mailio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.