logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: APR - CMake build fails on 1.8.x (solved)
Author
nono303



Joined: 20 Dec 2016
Posts: 205
Location: Lille, FR, EU

PostPosted: Wed 22 Jun '22 14:38    Post subject: APR - CMake build fails on 1.8.x (solved) Reply with quote

Hi,
I currently have an issue compiling APR on branch 1.8.X (https://github.com/apache/apr/tree/1.8.x)
I've opened a bug describing the issue on https://bz.apache.org/bugzilla/show_bug.cgi?id=66121 but no answer at this time:
Quote:
Since Revision 1901932 for /apr/apr/branches/1.8.x
> Merge r1897895 from trunk
CMake MSVC build fails with error:
Code:

Creating library .\x64\Release\libapr-1.lib and object .\x64\Release\libapr-1.exp
wakeup.obj : error LNK2001: unresolved external symbol apr_socket_pipe_close
wakeup.obj : error LNK2001: unresolved external symbol apr_socket_pipe_create
.\x64\Release\libapr-1.dll : fatal error LNK1120: 2 unresolved externals

Here are my check & to qualify it:
- network_io/win32/socket_pipe.c & poll/unix/wakeup.c are present in CMakeLists.txt and compiled without errors before linking
- include/arch/win32/apr_arch_networkio.h define as extern apr_socket_pipe_create & apr_socket_pipe_close
- poll/unix/wakeup.c include apr_arch_networkio.h
- include/apr_networkio.h does NOT mention apr_socket_pipe_create & apr_socket_pipe_close


Note: diff of this merge: https://github.com/apache/apr/commit/55f413526c6864b666f241c079c6a4f2d836cf7d

Any idea to fix this linking issue? (APR_DECLARE or public header export missing, useless external...)
It might be a simple trick but didn't find-it yet...
Thx!


Last edited by nono303 on Thu 30 Jun '22 11:35; edited 1 time in total
Back to top
nono303



Joined: 20 Dec 2016
Posts: 205
Location: Lille, FR, EU

PostPosted: Mon 27 Jun '22 11:46    Post subject: Reply with quote

Found the issue & had a patch proposal (see https://bz.apache.org/bugzilla/show_bug.cgi?id=66121)
Back to top


Reply to topic   Topic: APR - CMake build fails on 1.8.x (solved) View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads