pcb

can't build pcb-20140316 under Centos 6.5

Bug #1309336 reported by Mike Adams
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pcb
Fix Released
Undecided
Unassigned

Bug Description

Tried configuring to build the tool. Got the following output:

]# ./configure
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 for style of include used by make... GNU
checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... 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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking if you are building from a git checkout... no
checking if you are building from a anoncvs checkout... no
checking if the documentation should be built... yes
checking if maintainer mode is required... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for windows... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ranlib... ranlib
checking for strerror in -lcposix... no
checking for an ANSI C-conforming const... yes
checking for signed... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for stdint.h... (cached) yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for ptrdiff_t... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for asprintf... yes
checking for fwprintf... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for snprintf... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for wcslen... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.4.1, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for intltool >= 0.35.0... 0.41.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking for inline... (cached) inline
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for gawk... (cached) gawk
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for flex... /usr/bin/flex
checking for bison... bison -y
checking for bison... /usr/bin/bison
checking for ranlib... (cached) ranlib
checking for xpmtoppm... /usr/bin/xpmtoppm
checking for ppmtowinicon... /usr/bin/ppmtowinicon
checking for convert... /usr/bin/convert
checking If the compiler accepts -rdynamic... yes
checking ./src/hid/batch/hid.conf
checking ./src/hid/bom/hid.conf
checking ./src/hid/gcode/hid.conf
checking ./src/hid/gerber/hid.conf
checking ./src/hid/gtk/hid.conf
checking ./src/hid/lesstif/hid.conf
checking ./src/hid/lpr/hid.conf
checking ./src/hid/nelma/hid.conf
checking ./src/hid/png/hid.conf
checking ./src/hid/ps/hid.conf
checking for which gui to use... gtk
checking whether to enable toporouter... yes
checking whether to enable toporouter output... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for whether to use DBUS... yes
checking for DBUS... yes
checking for dbus_watch_get_unix_fd... yes
checking for whether to use GL drawing... yes
checking for X... libraries , headers
checking for a sed that does not truncate output... /bin/sed
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether we are using the Microsoft C compiler... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for GL/gl.h... yes
checking for OpenGL/gl.h... no
checking for OpenGL library... -lGL
checking for GL/glu.h... yes
checking for OpenGL/glu.h... no
checking for OpenGL Utility library... -lGLU
checking for varargs GLU tesselator callback function type... no
checking for which printer to use... lpr
checking for which exporters to use... bom gcode gerber nelma png ps
checking gtk dependencies
checking lpr dependencies
checking bom dependencies
checking gcode dependencies
checking gerber dependencies
checking nelma dependencies
checking png dependencies
checking ps dependencies
checking for env... /bin/env
checking for gtk-update-icon-path... true
checking for update-desktop-database... /usr/bin/update-desktop-database
checking for update-mime-database... /usr/bin/update-mime-database
checking for gm4... no
checking for m4... /usr/bin/m4
checking if /usr/bin/m4 has the division involving negative numbers bug... no
checking for wish... /usr/bin/wish
checking for pdflatex... /usr/bin/pdflatex
checking for texi2dvi... notfound
checking for ps2pdf... /usr/bin/ps2pdf
checking for gschem... /usr/bin/gschem
checking for animate... /usr/bin/animate
checking for compare... /usr/bin/compare
checking for composite... /usr/bin/composite
checking for convert... /usr/bin/convert
checking for display... /usr/bin/display
checking for montage... /usr/bin/montage
checking if all ImageMagick tools needed for the testsuite were found... yes
checking for gerbv... /usr/bin/gerbv
checking if all the requried testsuite tools were found... yes
checking for sqrt in -lm... yes
checking for dlopen in -ldl... yes
checking for gethostbyname in -lxnet... no
checking for yywrap in -lfl... yes
checking for strerror... yes
checking for regcomp... yes
checking for re_comp... yes
checking for logf... yes
checking for expf... yes
checking for rint... yes
checking for vsnprintf... yes
checking for getpwuid... yes
checking for getcwd... (cached) yes
checking for rand... yes
checking for random... yes
checking for stat... yes
checking for mkdtemp... yes
checking for popen... yes
checking for realpath... yes
checking for canonicalize_file_name... yes
checking whether canonicalize_file_name must be declared... no
checking for _spawnvp... no
checking for ANSI C header files... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/types.h... (cached) yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for sys/param.h... (cached) yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for GLIB... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK... yes
checking for GTKGLEXT... no
configure: error:
*** Required version of gtkglext is not installed - please install first ***
Please review the following errors:
No package 'gtkglext-1.0' found

Did a lot of internet searching but found no fixes that worked.

Tags: build-system
Revision history for this message
Mike Adams (adams-u) wrote :

I forgot to add the following:

yum install gtkglext
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror.rackspace.com
 * epel: linux.mirrors.es.net
 * extras: centos.mirrors.tds.net
 * rpmforge: mirror.nexcess.net
 * updates: linux.mirrors.es.net
Setting up Install Process
Package gtkglext-libs-1.2.0-11.el6.x86_64 already installed and latest version
Nothing to do

Revision history for this message
DJ Delorie (djdelorie) wrote :

gtkglext is the runtime package. To build against it, you need gtkglext-devel, which is the build-time package.

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi,

I have the following rpms installed on my (somewhat older) FC13:

gtkglext-debuginfo-1.2.0-10.fc12.i686
gtkglext-libs-1.2.0-10.fc12.i686
gtkglext-devel-1.2.0-10.fc12.i686

Do you have the "devel" version installed ?

Kind regards,

Bert Timmerman.

Revision history for this message
Mike Adams (adams-u) wrote :

Thanks Bert. That got me past that issue by running:

yum install gtkglext-devel

Now onto the next issue:

...
checking for GTKGLEXT... yes
checking if GIF output from the png HID is desired... yes
checking if JPEG output from the png HID is desired... yes
checking if PNG output from the png HID is desired... yes
checking for gdlib-config... no
Cannot find gdlib-config.
Make sure it is installed and in your PATH.
gdlib-config is part of the GD library available from www.boutell.com/gd.
This is needed for the png HID. I will look for libgd anyway and maybe
you will get lucky.

checking for main in -lgd... no
configure: error: You have requested gcode, nelma, or png HIDs but -lgd could not be found

Any ideas on what to do for the missing gdlib-config?

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Mike,

I have these:

gd-2.0.35-11.fc13.i686
gd-debuginfo-2.0.35-11.fc13.i686
gd-devel-2.0.35-11.fc13.i686

Kind regards,

Bert Timmerman.

Revision history for this message
Nathan Stewart (therealnathanstewart) wrote :

Fedora FC19.

checking for GL/gl.h... yes
checking for OpenGL/gl.h... no
checking for OpenGL library... no
configure: error: in `/home/nps/Workspace/pcb':
configure: error: OpenGL is required.
See `config.log' for more details

configure:12800: checking for GL/gl.h
configure:12800: gcc -std=gnu99 -c -g -O2 -pthread conftest.c >&5
configure:12800: $? = 0
configure:12800: result: yes
configure:12800: checking for OpenGL/gl.h
configure:12800: gcc -std=gnu99 -c -g -O2 -pthread conftest.c >&5
conftest.c:107:23: fatal error: OpenGL/gl.h: No such file or directory
 #include <OpenGL/gl.h>

mesa-libGL-devel-9.2.4-1.20131128.fc19.i686 is installed, but installs to
/usr/include/GL/gl.h rather than
OpenGL/gl.h

It also fails finding the libraries though, for similar reasons.

Traumflug (mah-jump-ing)
Changed in geda-project:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Sergey Stepanov (no-such-process) wrote :

Fedora release 22 (Twenty Two) x86_64

pcb 1.99z git version is built without such errors.

If it is nesessary, I can try to build and test it on CentOS 6.6 32-bit.

Revision history for this message
Traumflug (mah-jump-ing) wrote :

Nice, and thanks for testing. Looking at the source code this was apparently fixed in 09/2011 already:

http://git.geda-project.org/pcb/commit/?id=0ac0076bc9af38dd07700cbb7a6d3f21a8fc2621

Looks like only autoconf's detection mechanism was wrong. Still I took the opportunity to align this #include to what autoconf recommends and put this into branch LP1309336 (last two commits):

http://git.geda-project.org/pcb/log/?h=LP1309336

Builds fine here. A quick check would be nice, else I'd forward this to master before too long.

Revision history for this message
Sergey Stepanov (no-such-process) wrote :

I've tested building pcb-1.99z git version on CentOS 6.7 32-bit.

As CentOS (with enabled EPEL repository) lacks of GTS (aka libgts, libgts-devel), the build failed with `--enable-toporouter`, so I had to disable toporouter to have build done.

Revision history for this message
Traumflug (mah-jump-ing) wrote :

Thanks for testing, Sergey. Forwarded these two commits to master and deleted the bug branch.

Changed in geda-project:
status: Confirmed → Fix Committed
Traumflug (mah-jump-ing)
Changed in geda-project:
status: Fix Committed → Fix Released
tags: added: build-system
Revision history for this message
Chad Parker (parker-charles) wrote :

Already fixed in gEDA project. If the problem persists, please try building the latest version. If that doesn't work, please file a new bug report.

Changed in pcb:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.