KhronosGroup / KhronosGroup/OpenCOLLADA

error: conflicting declaration 'typedef struct real_pcre8_or_16 pcre'

Open
#570 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
679
Forks
260
PR merge metrics
No merged PRs in 30d

Description

I'm currently getting this error with 1.6.62 on both Fedora 28 and Rawhide. Could be GCC 8 being more picky?

```
BUILDSTDERR: In file included from /builddir/build/BUILD/OpenCOLLADA-1.6.62/COLLADABaseUtils/src/COLLADABUURI.cpp:18:
BUILDSTDERR: /usr/include/pcre.h:325:33: error: conflicting declaration 'typedef struct real_pcre8_or_16 pcre'
BUILDSTDERR: typedef struct real_pcre8_or_16 pcre;
BUILDSTDERR: ^~~~
BUILDSTDERR: In file included from /builddir/build/BUILD/OpenCOLLADA-1.6.62/COLLADABaseUtils/src/COLLADABUURI.cpp:14:
BUILDSTDERR: /builddir/build/BUILD/OpenCOLLADA-1.6.62/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h:17:26: note: previous declaration as 'typedef struct real_pcre pcre'
BUILDSTDERR: typedef struct real_pcre pcre;
BUILDSTDERR: ^~~~
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h and compare its pcre typedef with the declaration in /usr/include/pcre.h. Reproduce the OpenCOLLADA 1.6.62 build on an affected Fedora system and determine the compatible declaration or include arrangement. Done means COLLADABUURI.cpp compiles without the conflicting declaration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.