#351 closed defect (fixed)
Swig build failure / `make distcheck` fails
| Reported by: | jhoblitt | Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | sys | Version: | 0.5.0 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
make check passes through the swig dir without any error.
make[5]: Entering directory
`/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/_build/swig/psLibModule'
cp pslib.pm blib/lib/pslib.pm
gcc -c -I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/src
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/src/astronomy
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/src/collections
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/src/dataManip
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/src/fileUtils
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/src/image
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/src/sysUtils
-I/usr/include -I/usr/local/include -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -g -std=gnu99
-I/usr/include/mysql -mcpu=pentium3 -pipe -DHAVE_ERRNO_AS_DEFINE=1
-DUSE_OLD_FUNCTIONS -DBUILD_PSDB -I/usr/include -I/usr/include/libxml2 -Wall
-Werror -std=c99 -Wno-unused -Wno-strict-aliasing -DVERSION=\"\"
-DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5.8.5/i686-linux/CORE" pslib_wrap.c
In file included from /usr/lib/perl5/5.8.5/i686-linux/CORE/perl.h:2350,
from pslib_wrap.c:291:
/usr/lib/perl5/5.8.5/i686-linux/CORE/scope.h:221: error: parse error before
"sigjmp_buf"
/usr/lib/perl5/5.8.5/i686-linux/CORE/scope.h:221: warning: no semicolon at end
of struct or union
/usr/lib/perl5/5.8.5/i686-linux/CORE/scope.h:228: error: parse error before '}'
token
In file included from /usr/lib/perl5/5.8.5/i686-linux/CORE/perl.h:4112,
from pslib_wrap.c:291:
/usr/include/sys/ipc.h:25:3: #warning "Files using this header must be compiled
with _SVID_SOURCE or _XOPEN_SOURCE"
make[5]: * [pslib_wrap.o] Error 1
make[5]: Leaving directory
`/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/_build/swig/psLibModule'
make[4]: * [swig] Error 2
make[4]: Leaving directory
`/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/_build/swig'
make[3]: * [install-exec-am] Error 2
make[3]: Leaving directory
`/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/_build/swig'
make[2]: * [install-am] Error 2
make[2]: Leaving directory
`/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/_build/swig'
make[1]: * [install-recursive] Error 1
make[1]: Leaving directory
`/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/pslib-0.5.0/_build'
make: * [distcheck] Error 2
Attachments (2)
Change History (27)
comment:1 by , 21 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
comment:2 by , 21 years ago
The issue is definitely something to do with Swig/Perl as I get the same error
during make install if I don't pass --disable-perlmodule to configure.
gcc -c -I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/src
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/src/astronomy
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/src/collections
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/src/dataManip
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/src/fileUtils
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/src/image
-I/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/src/sysUtils -I/usr/include
-I/usr/local/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O0 -g -std=gnu99 -I/usr/include/mysql -mcpu=pentium3
-pipe -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -DBUILD_PSDB -I/usr/include
-I/usr/include/libxml2 -Wall -Werror -std=c99 -Wno-unused -Wno-strict-aliasing
-DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5.8.5/i686-linux/CORE"
pslib_wrap.c
In file included from /usr/lib/perl5/5.8.5/i686-linux/CORE/perl.h:2350,
from pslib_wrap.c:291:
/usr/lib/perl5/5.8.5/i686-linux/CORE/scope.h:221: error: parse error before
"sigjmp_buf"
/usr/lib/perl5/5.8.5/i686-linux/CORE/scope.h:221: warning: no semicolon at end
of struct or union
/usr/lib/perl5/5.8.5/i686-linux/CORE/scope.h:228: error: parse error before '}'
token
In file included from /usr/lib/perl5/5.8.5/i686-linux/CORE/perl.h:4112,
from pslib_wrap.c:291:
/usr/include/sys/ipc.h:25:3: #warning "Files using this header must be compiled
with _SVID_SOURCE or _XOPEN_SOURCE"
make[4]: * [pslib_wrap.o] Error 1
make[4]: Leaving directory
`/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/swig/psLibModule'
make[3]: * [swig] Error 2
make[3]: Leaving directory `/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/swig'
make[2]: * [install-exec-am] Error 2
make[2]: Leaving directory `/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/swig'
make[1]: * [install-am] Error 2
make[1]: Leaving directory `/home/moanui/jhoblitt/pscvs/datasys/IPP/psLib/swig'
make: * [install-recursive] Error 1
comment:3 by , 21 years ago
| Resolution: | invalid |
|---|---|
| Status: | closed → reopened |
Can you tell me what versions of Perl and SWIG you are using?
comment:4 by , 21 years ago
I get more or less the same error during make install on both x86 and amd64.
Both machines have Swig 1.3.21 installed and both are using Perl 5.8.5; neither
of the Perl builds have ithreads enabled.
x86 Perl
--
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=linux, osvers=2.6.11-gentoo-r4, archname=i686-linux
uname='linux moanui 2.6.11-gentoo-r4 #3 mon mar 21 23:19:15 hst 2005 i686
intel(r) pentium(r) m processor 2.00ghz genuineintel gnulinux '
config_args='-des -Darchname=i686-linux -Dcccdlflags=-fPIC
-Dccdlflags=-rdynamic -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr
-Dsiteprefix=/usr -Dlocincpth= -Doptimize=-O2 -mcpu=pentium3 -pipe
-Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin
-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3
-Dinstallman1dir=/usr/share/man/man1
-Dinstallman3dir=/var/tmp/portage/perl-5.8.5-r5/image//usr/share/man/man3
-Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.0 5.8.0/i686-linux 5.8.2
5.8.2/i686-linux 5.8.4 5.8.4/i686-linux -Dcf_by=Gentoo -Ud_csh -Di_ndbm
-Di_gdbm -Di_db'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O2 -mcpu=pentium3 -pipe',
cppflags='-DPERL5 -fno-strict-aliasing -pipe'
ccversion=, gccversion='3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3,
pie-8.7.7.1)', gccosandvers=
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Apr 2 2005 16:55:51
@INC:
/etc/perl
/usr/lib/perl5/site_perl/5.8.5/i686-linux
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i686-linux
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.5/i686-linux
/usr/lib/perl5/5.8.5
/usr/local/lib/site_perl
.
amd64 Perl
--Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=linux, osvers=2.6.7-gentoo-r6, archname=x86_64-linux
uname='linux moa 2.6.7-gentoo-r6 #1 tue jun 29 12:47:11 hst 2004 x86_64 amd
athlon(tm) 64 processor 3200+ authenticamd gnulinux '
config_args='-des -Darchname=x86_64-linux -Dcccdlflags=-fPIC
-Dccdlflags=-rdynamic -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr
-Dsiteprefix=/usr -Dlocincpth= -Doptimize=-march=x86-64 -O2 -pipe
-Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin
-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3
-Dinstallman1dir=/usr/share/man/man1
-Dinstallman3dir=/var/tmp/portage/perl-5.8.5-r5/image//usr/share/man/man3
-Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.0 5.8.0/x86_64-linux 5.8.2
5.8.2/x86_64-linux 5.8.4 5.8.4/x86_64-linux -Dcf_by=Gentoo -Ud_csh -Di_ndbm
-Di_gdbm -Di_db -Dusrinc=/usr/include/gentoo-multilib/amd64'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-march=x86-64 -O2 -pipe',
cppflags='-DPERL5 -fno-strict-aliasing -pipe'
ccversion=, gccversion='3.4.3 20041125 (Gentoo Linux 3.4.3-r1,
ssp-3.4.3-0, pie-8.7.7)', gccosandvers=
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
Built under linux
Compiled at Mar 29 2005 18:38:10
@INC:
/etc/perl
/usr/lib/perl5/site_perl/5.8.5/x86_64-linux
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.2/x86_64-linux
/usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.4/x86_64-linux
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.5/x86_64-linux
/usr/lib/perl5/5.8.5
/usr/local/lib/site_perl
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.2/x86_64-linux
/usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.4/x86_64-linux
comment:5 by , 21 years ago
For completeness, here is the compile error on amd64.
make[4]: Entering directory
`/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/swig/psLibModule'
cp pslib.pm blib/lib/pslib.pm
gcc -c -I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/astronomy
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/collections
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/dataManip
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/fileUtils
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/image
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/sysUtils -I/usr/include
-I/usr/local/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O0 -g -std=gnu99 -I/usr/include/mysql -march=x86-64
-pipe -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -DBUILD_PSDB -I/usr/include
-I/usr/include/libxml2 -Wall -Werror -std=c99 -Wno-unused -Wno-strict-aliasing
-DVERSION=\"\" -DXS_VERSION=\"\" -fPIC
"-I/usr/lib/perl5/5.8.5/x86_64-linux/CORE" pslib_wrap.c
In file included from /usr/lib/perl5/5.8.5/x86_64-linux/CORE/perl.h:2350,
from pslib_wrap.c:291:
/usr/lib/perl5/5.8.5/x86_64-linux/CORE/scope.h:221: error: parse error before
"sigjmp_buf"
/usr/lib/perl5/5.8.5/x86_64-linux/CORE/scope.h:221: warning: no semicolon at end
of struct or union
/usr/lib/perl5/5.8.5/x86_64-linux/CORE/scope.h:228: error: parse error before
'}' token
In file included from /usr/include/sys/ipc.h:7,
from /usr/lib/perl5/5.8.5/x86_64-linux/CORE/perl.h:4112,
from pslib_wrap.c:291:
/usr/include/sys/../gentoo-multilib/amd64/sys/ipc.h:25:3: #warning "Files using
this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
pslib_wrap.c: In function `_wrap_psScalar_data_S64_get':
pslib_wrap.c:22303: warning: long long int format, psS64 arg (arg 3)
pslib_wrap.c: In function `_wrap_psTime_sec_get':
pslib_wrap.c:34291: warning: long long int format, psS64 arg (arg 3)
pslib_wrap.c: In function `_wrap_psTimeLeapseconds':
pslib_wrap.c:34713: warning: long long int format, psS64 arg (arg 3)
make[4]: * [pslib_wrap.o] Error 1
make[4]: Leaving directory
`/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/swig/psLibModule'
make[3]: * [swig] Error 2
make[3]: Leaving directory `/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/swig'
make[2]: * [install-exec-am] Error 2
make[2]: Leaving directory `/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/swig'
make[1]: * [install-am] Error 2
make[1]: Leaving directory `/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/swig'
make: * [install-recursive] Error 1
comment:6 by , 21 years ago
| Owner: | changed from to |
|---|---|
| Status: | reopened → new |
Have you ever used SWIG, i.e., compiled SWIG-generated code, on this machine?
How about optional Perl modules like to ones on CPAN that use the usual 'make
Makefile.PL' convention?
These errors, as you can, are in the standard perl headers included by the
SWIG-generated wrapper code; that is why I want to rule out a system
configuration problem.
-rdd
(after you answer the question, assign it back to me)
comment:7 by , 21 years ago
actually, I meant the 'perl Makefile.PL' convention, not 'make Makefile.PL', sorry.
comment:8 by , 21 years ago
It is exceedling hard to find examples of modules on CPAN that were built with
Swig as XSUB is the only interface supported by p5p. I have only been able to
find a single module that uses Swig but doesn't have esoteric dependancies. The
module's name is 'SuffixTree', which compiles for me (note: the c code is
pre[generated).
Here is a list of other modules that I have been able to identify as using Swig.
FameHLI::API
Schedule::DRMAAc
Math::LP::Solve
Solaris::DeviceTree::Libdevinfo::Property
Solaris::DeviceTree::Libdevinfo::Impl
Math::LP::Solve
PLJava
Language::Prolog::SWI::base
X11::Wcl
comment:9 by , 21 years ago
| Owner: | changed from to |
|---|
comment:10 by , 21 years ago
| Status: | new → assigned |
|---|
It is difficult to debug this, as I can't duplicate it on any machine here and
Google searches of the problem all point to system configuration issues.
Furthermore, this is on a Gentoo machine, and that distro can vary wildly from
installation to installation as the user is allowed great latitude in tweaking
the configuration of packages.
Can I get an account on the machine that is exhibiting the problem? If not,
please send me the swig generated code and your perl.h (which is where the
error manifests) and I'll see what I can see.
-rdd
comment:11 by , 21 years ago
| Owner: | changed from to |
|---|---|
| Status: | assigned → new |
comment:12 by , 21 years ago
| Owner: | changed from to |
|---|
It would be difficult to give you an account on my laptop. :) The requested
files are attached, if you still can't figure it out I can configure another
machine that you can have an account on.
comment:13 by , 21 years ago
| Summary: | `make distcheck` fails → Swig build failure / `make distcheck` fails |
|---|
comment:14 by , 21 years ago
| Priority: | high → lowest |
|---|
comment:15 by , 21 years ago
| Status: | new → assigned |
|---|
I'm in process of installing a gentoo system at home to help in fixing this
(Gentoo is taking forever to compile things). I suspect the fix is in just
defining _GNU_SOURCES or _XOPEN_SOURCE.
If you don't mind, maybe you could run configure with CFLAGS=-D_GNU_SOURCE or
CFLAGS=-D_XOPEN_SOURCE=500.
comment:16 by , 21 years ago
That reminds me, configure.ac shouldn't be setting CFLAGS directly as you can't
add additional flags as 'make CFLAGS=foo' but I'll file a separate bug/patch for
that. Anyways, With rel5_0 and "CFLAGS=-D_XOPEN_SOURCE=500 ./configure" the
build gets a little farther..
gcc -c -I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/astronomy
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/collections
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/dataManip
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/fileUtils
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/image
-I/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/src/sysUtils -I/usr/include
-I/usr/local/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -O0 -g -std=gnu99
-I/usr/include/mysql -march=x86-64 -pipe -DHAVE_ERRNO_AS_DEFINE=1
-DUSE_OLD_FUNCTIONS -DBUILD_PSDB -I/usr/include -I/usr/include/libxml2 -Wall
-Werror -std=c99 -Wno-unused -Wno-strict-aliasing -DVERSION=\"\"
-DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5.8.5/x86_64-linux/CORE" pslib_wrap.c
pslib_wrap.c: In function `_wrap_psScalar_data_S64_get':
pslib_wrap.c:22303: warning: long long int format, psS64 arg (arg 3)
pslib_wrap.c: In function `_wrap_psTime_sec_get':
pslib_wrap.c:34291: warning: long long int format, psS64 arg (arg 3)
pslib_wrap.c: In function `_wrap_psTimeLeapseconds':
pslib_wrap.c:34713: warning: long long int format, psS64 arg (arg 3)
make[4]: * [pslib_wrap.o] Error 1
make[4]: Leaving directory
`/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/swig/psLibModule'
make[3]: * [swig] Error 2
make[3]: Leaving directory `/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/swig'
make[2]: * [install-exec-am] Error 2
make[2]: Leaving directory `/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/swig'
make[1]: * [install-am] Error 2
make[1]: Leaving directory `/home/moa/jhoblitt/pscvs/datasys/IPP/psLib/swig'
make: * [install-recursive] Error 1
comment:17 by , 21 years ago
Do you have the latest CVS code-base? I put in a '-w' in the compiling of the
swig wrapper code, but it is not found in your last clip. I don't want to be
responsible for the exactness of the SWIG generated code, obviously, as can't
control the SWIG output in that regard.
Glad to here _XOPEN_SOURCE is working better for you. If it works in the
latest CVS version, I can just add _XOPEN_SOURCE=500 in the swig/makefile.am or
configure.ac. Let me know how it works for you.
-rdd
comment:18 by , 21 years ago
As I stated in my last post, I was using rel5_0. CVS HEAD is currently broken
because of errors in psMinimize.c. I tried running make install in ./swig from
CVS HEAD and it seems to complile.
comment:19 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
I duplicated the error on the CVS HEAD on my home Gentoo machine. Added the
_XOPEN_SOURCE=500 define to swig/Makefile.PL, and it compiled without problems.
CVS head now compiles AND installs without error on a Gentoo Distro Linux box
(Perl-5.8.6, swig-1.3.24).
If it doesn't work for you, just reopen this and I'll look into this further.
-rdd
comment:20 by , 21 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
Just when I thought it was safe to go back in the water... I have a new error
showing up when running make install.
This is with perl-5.8.5 and swig-1.3.24 (swig is vanilla, perl is the Gentoo
5.8.5-r5 ebuild, which has just a few minor patches on it).
As a side issue, can you change swig/Makefile.am so that the swig target gets
called when make all is run instead of only from install-exec-hook. It's a
real pain to have to run make install to check for build failures.
make[4]: Entering directory
`/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/swig/psLibModule'
cp pslib.pm blib/lib/pslib.pm
gcc -c -I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/src
-I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/src/astronomy
-I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/src/collections
-I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/src/dataManip
-I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/src/dataIO
-I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/src/image
-I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/src/sysUtils
-I/usr/include -I/usr/local/include -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -g -D_XOPEN_SOURCE=600
-D_POSIX_C_SOURCE=200112L -std=c99
-I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/include/mysql -DBUILD_PSDB
-I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/include
-I/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/include/libxml2 -Wall -Werror
-std=c99 -Wno-unused -Wno-strict-aliasing -w -D_XOPEN_SOURCE=500
-DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5.8.5/i686-linux/CORE"
pslib_wrap.c
<command line>:9:1: "_XOPEN_SOURCE" redefined
<command line>:6:1: this is the location of the previous definition
make[4]: * [pslib_wrap.o] Error 1
make[4]: Leaving directory
`/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/swig/psLibModule'
make[3]: * [swig] Error 2
make[3]: Leaving directory
`/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/swig'
make[2]: * [install-exec-am] Error 2
make[2]: Leaving directory
`/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/swig'
make[1]: * [install-am] Error 2
make[1]: Leaving directory
`/home/moanui/jhoblitt/jhroot/i686-pc-linux-gnu/build/pslib/swig'
make: * [install-recursive] Error 1
comment:21 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Sorry, that was my mistake. I added something to the configure.ac to better
able specific POSIX support, but when I tested it, I had the swig building
disabled, so I didn't catch it.
Fixed it and made the compiling happen at the proper time. When I originally
did that, I was just too lazy to figure out why it was always compiling on
install, so I just removed swig from the 'all' target.
-rdd
comment:22 by , 21 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
Looks like we're almost there. It looks like you introduced some illegal shell
syntax into swig/Makefile.com. This patch should fix it.
Index: swig/Makefile.am
===================================================================
RCS file: /cvsroot/pan-starrs/datasys/IPP/psLib/swig/Makefile.am,v
retrieving revision 1.14
diff -u -r1.14 Makefile.am
--- swig/Makefile.am 13 May 2005 20:53:11 -0000 1.14
+++ swig/Makefile.am 14 May 2005 00:41:08 -0000
@@ -19,7 +19,7 @@
## PsLibModule swig build section.
psLibModule/Makefile.PL:
- if [! -d psLibModule]; then mkdir psLibModule; fi
+ if [ ! -d psLibModule ]; then mkdir psLibModule; fi
cp -f $(srcdir)/Makefile.PL psLibModule/Makefile.PL
psLibModule/setup.txt:
@@ -29,7 +29,7 @@
echo "cflags=$(CFLAGS) -std=c99 -Wno-unused -Wno-strict-aliasing" >>
psLibModule/setup.txt
psLibModule/pslib_wrap.c: $(srcdir)/pslib.i
- if [! -d psLibModule]; then mkdir psLibModule; fi
+ if [ ! -d psLibModule ]; then mkdir psLibModule; fi
$(SWIG) -perl $(INCLUDES) -w451 -o $@ $(srcdir)/pslib.i
psLibModule/Makefile:psLibModule/Makefile.PL psLibModule/setup.txt
comment:23 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Interesting that my version of sh didn't complain. Oh well, I don't write sh
scripts often enough to remember those particulars; I prefer other scripting
languages like perl much more.
Anyway, I fixed it given your patch (plus another line the patch missed).
Hopefully things are more to your liking. If not, just reopen.
-rdd
comment:24 by , 21 years ago
| Keywords: | VERIFIED added |
|---|
That did it. It' finally compiles for me. Hopefully this bug will stay
resolved this time...

distcheck is not supported with psLib with SWIG.
I can't reproduce your error either. On my machine, distcheck wouldn't work
because the Perl-generated makefile fails to uninstall (states uninstall is not
supported). SWIG and/or Perl seems have troubles and is not deterministic
between installations/machines/versions.
-rdd