LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-14-2023, 06:26 AM   #1
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Rep: Reputation: 20
Can't build 2geom from slackbuilds.org on Slackware 15.0


When I try to build 2geom, I get:
Code:
[ 45%] Building CXX object src/2geom/CMakeFiles/2geom.dir/utils.cpp.o
[ 45%] Linking CXX shared library lib2geom.so
[ 45%] Built target 2geom
[ 45%] Building CXX object tests/CMakeFiles/intersection-graph-test.dir/intersection-graph-test.cpp.o
[ 48%] Linking CXX executable intersection-graph-test
/usr/bin/ld: CMakeFiles/intersection-graph-test.dir/intersection-graph-test.cpp.o: in function `void testing::internal::DefaultPrintTo<Geom::Path>(testing::internal::WrapPrinterType<(testing::internal::DefaultPrinterType)0>, Geom::Path const&, std::ostream*) [clone .isra.0]':
intersection-graph-test.cpp:(.text._ZN7testing8internal14DefaultPrintToIN4Geom4PathEEEvNS0_15WrapPrinterTypeILNS0_18DefaultPrinterTypeE0EEERKT_PSo.isra.0[_ZN7testing8internal18CmpHelperEQFailureIN4Geom10PathVectorENS2_4PathEEENS_15AssertionResultEPKcS7_RKT_RKT0_]+0x10b): undefined reference to `testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)'
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [tests/CMakeFiles/intersection-graph-test.dir/build.make:101: tests/intersection-graph-test] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:501: tests/CMakeFiles/intersection-graph-test.dir/all] Fehler 2
make: *** [Makefile:146: all] Fehler 2
Is this just me or is there a general problem?
 
Old 12-14-2023, 10:50 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
It should built fine on latest stable
https://github.com/SlackBuildsOrg/slackbuilds/pull/4063
 
Old 12-14-2023, 02:54 PM   #3
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Rep: Reputation: 187Reputation: 187
I built 2geom 5 days ago, worked fine.

Did you install the dependencies ok?
 
Old 12-15-2023, 07:55 AM   #4
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Rebuild the dependencies, double-conversion, and gtest, did not help.
 
Old 12-15-2023, 09:55 AM   #5
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 402

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Quote:
Originally Posted by M0M0 View Post
When I try to build 2geom, I get:
Code:
[ 45%] Building CXX object src/2geom/CMakeFiles/2geom.dir/utils.cpp.o
[ 45%] Linking CXX shared library lib2geom.so
[ 45%] Built target 2geom
[ 45%] Building CXX object tests/CMakeFiles/intersection-graph-test.dir/intersection-graph-test.cpp.o
[ 48%] Linking CXX executable intersection-graph-test
/usr/bin/ld: CMakeFiles/intersection-graph-test.dir/intersection-graph-test.cpp.o: in function `void testing::internal::DefaultPrintTo<Geom::Path>(testing::internal::WrapPrinterType<(testing::internal::DefaultPrinterType)0>, Geom::Path const&, std::ostream*) [clone .isra.0]':
intersection-graph-test.cpp:(.text._ZN7testing8internal14DefaultPrintToIN4Geom4PathEEEvNS0_15WrapPrinterTypeILNS0_18DefaultPrinterTypeE0EEERKT_PSo.isra.0[_ZN7testing8internal18CmpHelperEQFailureIN4Geom10PathVectorENS2_4PathEEENS_15AssertionResultEPKcS7_RKT_RKT0_]+0x10b): undefined reference to `testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)'
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [tests/CMakeFiles/intersection-graph-test.dir/build.make:101: tests/intersection-graph-test] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:501: tests/CMakeFiles/intersection-graph-test.dir/all] Fehler 2
make: *** [Makefile:146: all] Fehler 2
Is this just me or is there a general problem?
It seems your extract is too short to tell something. Were the 2 dependencies correctly generated and installed ? Have you a full Slackware install (maybe without one or other desktop) ?
 
1 members found this post helpful.
Old 12-16-2023, 06:41 AM   #6
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,215

Rep: Reputation: 298Reputation: 298Reputation: 298
would be good to see the verbose output of cmake and even the configure phase.
 
Old 12-27-2023, 08:44 AM   #7
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Since the routines which could not be linked had the namespace `testing::`, I added `-D2GEOM_TESTING=OFF` to the Slackbuild's cmake line. Using this modification, it build (and works) fine.

Not sure what the actual problem was, but since the tests are not run anyway, their building should probably be removed from the Slackbuild script anyway.
 
Old 12-27-2023, 09:35 AM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
It seems you missed gtest?
 
Old 12-29-2023, 05:35 AM   #9
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
No, gtest is installed. I can also link arbitrary objects against it without any problem (so the linker does normally find it). The header files are also found when building 2geom. Just the linking seems to fail.
 
Old 12-29-2023, 06:15 AM   #10
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
Although not really understanding why, but sometimes, when compiling inkscape I had to remove the old inkscape package first as 2geom did not get built properly (it was omitted/skipped).

Does it help to remove the old 2geom package first, before compiling the new one?

(hmmm; at my end on current the error does not show up, and compiling works when 2geom is present; so dunno whether this would work)
 
Old 12-30-2023, 03:27 AM   #11
litelinux
Member
 
Registered: Sep 2018
Location: Taipei/Taichung, TW
Distribution: Slackware
Posts: 102

Rep: Reputation: 58
When compiling Inkscape 1.3.2 with a modified SlackBuild from SBo, it didn't build successfully until I enabled -DWITH_INTERNAL_2GEOM=ON in the cmake options. I forgot what was causing the original to not build though.

--ltlnx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] runc from slackbuilds.org does not build on Slackware 15.0 M0M0 Slackware 12 04-30-2022 11:40 PM
Build error when running the SlackBuilds.org script for LMMS Crushing Belial Slackware 1 08-05-2009 05:01 PM
libsndfile from Slackbuilds.org fails to build... Lufbery Slackware 10 01-09-2009 08:41 AM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration