Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503774 - sci-electronics/gsmc-1.1-r1 - ld: gsmc-widget.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
Summary: sci-electronics/gsmc-1.1-r1 - ld: gsmc-widget.o: undefined reference to symbo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-03-07 21:16 UTC by Blake Leverett
Modified: 2015-09-07 15:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Blake Leverett 2014-03-07 21:16:48 UTC
Build fails at linker step.  I manually compiled and the build failed. I fixed the problem by adding -lm on the linker line.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-07 22:03:04 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.
Comment 2 Blake Leverett 2014-03-10 15:23:21 UTC
fmf etc # emerge gsmc
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sci-electronics/gsmc-1.1-r1
>>> Failed to emerge sci-electronics/gsmc-1.1-r1, Log file:
>>>  '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.49, 0.73, 0.58
 * Package:    sci-electronics/gsmc-1.1-r1
 * Repository: gentoo
 * Maintainer: sci-electronics@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> cfg-update-1.8.2-r1: Creating checksum index...
>>> Unpacking source...
>>> Unpacking gsmc-1.1.tar.gz to /var/tmp/portage/sci-electronics/gsmc-1.1-r1/work
>>> Source unpacked in /var/tmp/portage/sci-electronics/gsmc-1.1-r1/work
>>> Preparing source in /var/tmp/portage/sci-electronics/gsmc-1.1-r1/work/gsmc-1.1 ...
 * Applying gsmc-1.1-autotools.patch ...
 [ ok ]
 * Running eautoreconf in '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/work/gsmc-1.1' ...
 * Running aclocal ...
 [ ok ]
 * Running autoconf ...
 [ ok ]
 * Running automake --add-missing --copy --force-missing ...
 [ ok ]
 * Running elibtoolize in: gsmc-1.1/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-electronics/gsmc-1.1-r1/work/gsmc-1.1 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64
configure: loading site script /usr/share/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for sqrt... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gsmc.1
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-electronics/gsmc-1.1-r1/work/gsmc-1.1 ...
make -j7 
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"gsmc\" -DPACKAGE_TARNAME=\"gsmc\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"gsmc\ 1.0\" -DPACKAGE_BUGREPORT=\"ik5nax@amsat.org\" -DPACKAGE_URL=\"\" -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_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -I.     -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -march=native -O2 -pipe -MT gsmc-autotune.o -MD -MP -MF .deps/gsmc-autotune.Tpo -c -o gsmc-autotune.o `test -f 'autotune.c' || echo './'`autotune.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"gsmc\" -DPACKAGE_TARNAME=\"gsmc\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"gsmc\ 1.0\" -DPACKAGE_BUGREPORT=\"ik5nax@amsat.org\" -DPACKAGE_URL=\"\" -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_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -I.     -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -march=native -O2 -pipe -MT gsmc-calc.o -MD -MP -MF .deps/gsmc-calc.Tpo -c -o gsmc-calc.o `test -f 'calc.c' || echo './'`calc.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"gsmc\" -DPACKAGE_TARNAME=\"gsmc\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"gsmc\ 1.0\" -DPACKAGE_BUGREPORT=\"ik5nax@amsat.org\" -DPACKAGE_URL=\"\" -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_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -I.     -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -march=native -O2 -pipe -MT gsmc-dataconv.o -MD -MP -MF .deps/gsmc-dataconv.Tpo -c -o gsmc-dataconv.o `test -f 'dataconv.c' || echo './'`dataconv.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"gsmc\" -DPACKAGE_TARNAME=\"gsmc\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"gsmc\ 1.0\" -DPACKAGE_BUGREPORT=\"ik5nax@amsat.org\" -DPACKAGE_URL=\"\" -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_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -I.     -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -march=native -O2 -pipe -MT gsmc-draw.o -MD -MP -MF .deps/gsmc-draw.Tpo -c -o gsmc-draw.o `test -f 'draw.c' || echo './'`draw.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"gsmc\" -DPACKAGE_TARNAME=\"gsmc\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"gsmc\ 1.0\" -DPACKAGE_BUGREPORT=\"ik5nax@amsat.org\" -DPACKAGE_URL=\"\" -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_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -I.     -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -march=native -O2 -pipe -MT gsmc-main.o -MD -MP -MF .deps/gsmc-main.Tpo -c -o gsmc-main.o `test -f 'main.c' || echo './'`main.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"gsmc\" -DPACKAGE_TARNAME=\"gsmc\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"gsmc\ 1.0\" -DPACKAGE_BUGREPORT=\"ik5nax@amsat.org\" -DPACKAGE_URL=\"\" -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_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -I.     -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -march=native -O2 -pipe -MT gsmc-print.o -MD -MP -MF .deps/gsmc-print.Tpo -c -o gsmc-print.o `test -f 'print.c' || echo './'`print.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"gsmc\" -DPACKAGE_TARNAME=\"gsmc\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"gsmc\ 1.0\" -DPACKAGE_BUGREPORT=\"ik5nax@amsat.org\" -DPACKAGE_URL=\"\" -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_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -I.     -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -march=native -O2 -pipe -MT gsmc-widget.o -MD -MP -MF .deps/gsmc-widget.Tpo -c -o gsmc-widget.o `test -f 'widget.c' || echo './'`widget.c
print.c: In function 'psdrawB':
print.c:304:5: warning: format '%f' expects argument of type 'double', but argument 3 has type 'int' [-Wformat]
print.c:304:5: warning: format '%f' expects argument of type 'double', but argument 4 has type 'int' [-Wformat]
print.c:305:5: warning: format '%f' expects argument of type 'double', but argument 3 has type 'int' [-Wformat]
print.c:305:5: warning: format '%f' expects argument of type 'double', but argument 4 has type 'int' [-Wformat]
print.c: In function 'pscircdesc':
print.c:535:4: warning: format '%f' expects argument of type 'double', but argument 6 has type 'int' [-Wformat]
print.c:537:4: warning: format '%f' expects argument of type 'double', but argument 6 has type 'int' [-Wformat]
print.c:539:4: warning: format '%f' expects argument of type 'double', but argument 6 has type 'int' [-Wformat]
draw.c: In function 'showcircdesc':
draw.c:601:7: warning: not enough variable arguments to fit a sentinel [-Wformat]
main.c: In function 'savegw':
main.c:412:3: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
main.c: In function 'loadgw':
main.c:447:3: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
main.c:465:3: warning: format '%x' expects argument of type 'unsigned int *', but argument 4 has type 'char *' [-Wformat]
main.c:479:9: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'char *' [-Wformat]
main.c:479:9: warning: format '%x' expects argument of type 'unsigned int *', but argument 7 has type 'char *' [-Wformat]
mv -f .deps/gsmc-dataconv.Tpo .deps/gsmc-dataconv.Po
main.c:449:8: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
main.c:450:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
main.c:456:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
main.c:462:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
main.c:471:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/gsmc-autotune.Tpo .deps/gsmc-autotune.Po
mv -f .deps/gsmc-calc.Tpo .deps/gsmc-calc.Po
mv -f .deps/gsmc-main.Tpo .deps/gsmc-main.Po
mv -f .deps/gsmc-print.Tpo .deps/gsmc-print.Po
mv -f .deps/gsmc-draw.Tpo .deps/gsmc-draw.Po
mv -f .deps/gsmc-widget.Tpo .deps/gsmc-widget.Po
x86_64-pc-linux-gnu-gcc  -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o gsmc gsmc-autotune.o gsmc-calc.o gsmc-dataconv.o gsmc-draw.o gsmc-main.o gsmc-print.o gsmc-widget.o  -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfreetype -lfontconfig  
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: gsmc-widget.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'floor@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [gsmc] Error 1
emake failed
 * ERROR: sci-electronics/gsmc-1.1-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_compile
 *        environment, line 2715:  Called __eapi2_src_compile
 *   phase-helpers.sh, line  688:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of `emerge --info '=sci-electronics/gsmc-1.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-electronics/gsmc-1.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/work/gsmc-1.1'
 * S: '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/work/gsmc-1.1'

 * Messages for package sci-electronics/gsmc-1.1-r1:

 * ERROR: sci-electronics/gsmc-1.1-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_compile
 *        environment, line 2715:  Called __eapi2_src_compile
 *   phase-helpers.sh, line  688:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of `emerge --info '=sci-electronics/gsmc-1.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-electronics/gsmc-1.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/work/gsmc-1.1'
 * S: '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/work/gsmc-1.1'
 * 
 * The following package has failed to build or install:
 * 
 *  (sci-electronics/gsmc-1.1-r1::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/sci-electronics/gsmc-1.1-r1/temp/build.log'
 *
Comment 3 Blake Leverett 2014-03-10 15:23:43 UTC
fmf etc # emerge --info
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.2
KiB Mem:     7662760 total,    335640 free
KiB Swap:    4200992 total,   4191464 free
Timestamp of tree: Fri, 07 Mar 2014 14:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.3.6-r1, 4.5.4, 4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo tmacedo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --keep-going --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo/ rsync://rsync.us.gentoo.org/gentoo-portage"
LANG="en_US.utf8"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/tmacedo /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt crypto cups cxx dbus dri dts dvd dvdr ebook emboss encode exif firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms libnotify mad mesa mga mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 rdesktop readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype type1 udev udisks unicode upower usb vorbis wxgtk1 wxwidgets wxwindows x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="cgi actions alias auth_basic authn_alias authz_host authz_user autoindex dir include info log_config log_forensic mime unique_id" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Ted Tanberry 2014-03-20 07:38:31 UTC
--- gsmc-1.1-autotools.patch
+++ gsmc-1.1-autotools.patch
@@ -1,6 +1,6 @@
 --- gsmc-1.1.orig/configure.ac 2011-01-12 18:14:55.633360421 -0200
 +++ gsmc-1.1/configure.ac      2011-01-12 19:58:12.617251642 -0200
-@@ -7,26 +7,13 @@
+@@ -7,26 +7,18 @@
  AM_INIT_AUTOMAKE(gsmc, 1.0, ik5nax@amsat.org)
  
  # Checks for programs.
@@ -27,6 +27,11 @@
 -done
 +PKG_PROG_PKG_CONFIG
 +PKG_CHECK_MODULES([GTK], [gtk+-2.0])
++
++dnl Check for libm for floor
++AC_SEARCH_LIBS([floor], [m], [], [
++      AC_MSG_ERROR([unable to find the floor() function])
++])
  
  # Checks for header files.
  AC_HEADER_STDC
Comment 5 Ted Tanberry 2014-03-20 07:38:45 UTC
I've patched the patch to include a check for libm
Comment 6 Thomas Beierlein gentoo-dev 2015-09-07 15:12:28 UTC
Thanks for pointing out. Fixed -r2 in tree.

[master f0e5a65] sci-electronics/gsmc: Add missing libm (bug 503774). Thanks B. Leverett. Bump to EAPI=5
 3 files changed, 45 insertions(+), 6 deletions(-)
 create mode 100644 sci-electronics/gsmc/gsmc-1.1-r2.ebuild