Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43749 - [openscenegraph] undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'

Attached to Project: Community Packages
Opened by Michael Kapelko (kornerr) - Monday, 09 February 2015, 05:06 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 10 February 2015, 08:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The simplest OSG application (https://bitbucket.org/kornerr/osg-z-problem) cannot be built (as of 09 Feb 2015) due to 'undefined reference' errors:

/home/kornerr/p/osg-z-problem/main.cpp:40: undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'

Additional info:
community/openscenegraph 3.2.1-3 [installed]

Steps to reproduce:
* hg clone https://bitbucket.org/kornerr/osg-z-problem
* mkdir build_osgzproblem
* cd build_osgzproblem
* cmake ../osg-z-problem
* make
This task depends upon

Closed by  Sergej Pupykin (sergej)
Tuesday, 10 February 2015, 08:19 GMT
Reason for closing:  Not a bug
Comment by Michael Kapelko (kornerr) - Monday, 09 February 2015, 05:07 GMT
As a side note, custom built OpenSceneGraph libraries link fine.
Comment by Michael Kapelko (kornerr) - Monday, 09 February 2015, 08:13 GMT
Also, after using more OSG functionality, more things turn up to be undefined.
Comment by Sergej Pupykin (sergej) - Monday, 09 February 2015, 11:12 GMT
Cannot be reproduced, do you have updated x86_64?

$ hg clone https://bitbucket.org/kornerr/osg-z-problem
...
5 files updated, 0 files merged, 0 files removed, 0 files unresolved

$ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/osg-z-problem/build_osgzproblem

$ make
Scanning dependencies of target osgZProblem
[100%] Building CXX object CMakeFiles/osgZProblem.dir/main.cpp.o
Linking CXX executable osgZProblem
[100%] Built target osgZProblem
Comment by Michael Kapelko (kornerr) - Monday, 09 February 2015, 15:54 GMT
I've updated Arch install today. I've noticed we have different compiler paths. I have multilib GCC installed, if that matters.

My output:

$ cmake ~/p/osg-z-problem/
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kornerr/b/osg-z-problem
$ make
Scanning dependencies of target osgZProblem
[100%] Building CXX object CMakeFiles/osgZProblem.dir/main.cpp.o
Linking CXX executable osgZProblem
CMakeFiles/osgZProblem.dir/main.cpp.o: In function `main':
/home/kornerr/p/osg-z-problem/main.cpp:40: undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
collect2: error: ld returned 1 exit status
CMakeFiles/osgZProblem.dir/build.make:85: recipe for target 'osgZProblem' failed
make[2]: *** [osgZProblem] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/osgZProblem.dir/all' failed
make[1]: *** [CMakeFiles/osgZProblem.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
Comment by Sergej Pupykin (sergej) - Monday, 09 February 2015, 17:33 GMT
Please try to install community/hardening-wrapper
Comment by Michael Kapelko (kornerr) - Tuesday, 10 February 2015, 02:22 GMT
It didn't help.

$ cmake ~/p/osg-z-problem/
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kornerr/b/osg-z-problem
$ make
Linking CXX executable osgZProblem
CMakeFiles/osgZProblem.dir/main.cpp.o: In function `main':
/home/kornerr/p/osg-z-problem/main.cpp:40: undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
collect2: error: ld returned 1 exit status
CMakeFiles/osgZProblem.dir/build.make:85: recipe for target 'osgZProblem' failed
make[2]: *** [osgZProblem] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/osgZProblem.dir/all' failed
make[1]: *** [CMakeFiles/osgZProblem.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
Comment by Michael Kapelko (kornerr) - Tuesday, 10 February 2015, 02:42 GMT
I replaced gcc-multilib and gcc-libs-multilib with gcc and gcc-libs correspondingly. Still, I get the same error.
Comment by Michael Kapelko (kornerr) - Tuesday, 10 February 2015, 04:56 GMT
I've just checked a fresh install of Arch x86_64 in VBox, and the application works just fine. I wonder what can be the problem in my setup.
Anyway, this issue can be closed.

Loading...