Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 219424

Summary: sci-misc/qcad-2.0.4.0-r5 fails w/ gcc-4.3.0
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GCC PortingAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: qcad-2.0.4.0-gcc43.patch

Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-27 07:24:55 UTC
Run 'make depend' to create dependencies.

test -d ./include || mkdir -p ./include
( cd ./include; rm -f *.h; \
        for hf in `find ../src -name '*.h'`; do \
                ln -s "$hf" 2> /dev/null || cp "$hf" .; \
        done )
gcc -I./src -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1  -c src/dl_dxf.cpp -o src/dl_dxf.o
gcc -I./src -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1  -c src/dl_writer_ascii.cpp -o src/dl_writer_ascii.o
In file included from src/dl_writer_ascii.h:36,
                 from src/dl_writer_ascii.cpp:35:
src/dl_writer.h: In member function ‘void DL_Writer::entityAttributes(const DL_Attributes&) const’:
src/dl_writer.h:333: error: ‘strcasecmp’ was not declared in this scope
src/dl_writer_ascii.cpp: In member function ‘virtual void DL_WriterA::dxfReal(int, double) const’:
src/dl_writer_ascii.cpp:72: error: ‘strlen’ was not declared in this scope
src/dl_writer_ascii.cpp:81: error: ‘strlen’ was not declared in this scope
src/dl_writer_ascii.cpp: In static member function ‘static void DL_WriterA::strReplace(char*, char, char)’:
src/dl_writer_ascii.cpp:147: error: ‘strlen’ was not declared in this scope
make: *** [src/dl_writer_ascii.o] Error 1
Building libdxf.a failed
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-27 07:26:55 UTC
Created attachment 151106 [details, diff]
qcad-2.0.4.0-gcc43.patch

Fixes the problem. Home-spun patch for 2.0.4.0 based off Debian's patch for 2.0.5.0, two extra includes added.
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2008-04-27 12:55:47 UTC
Thank you very much for the patch and this is now
in portage cvs.

Best,
Markus