Hi Dear John

Thanks a lot for your tips. After installing their respective header files
of libxml2-devel, cairo-devel, pango-devel and etc; I can configure PSPP.
[sn@localhost pspp-0.10.1]$ ./configure
...
checking whether ln -s works... yes
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether make supports nested variables... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gl/Makefile
config.status: creating po/Makefile
config.status: creating tests/atlocal
config.status: creating perl-module/lib/PSPP.pm
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing doc/dummy commands
PSPP configured successfully.
[sn@localhost pspp-0.10.1]$

Unfortunately when I want to do make, I get the following error:
[sn@localhost pspp-0.10.1]$ make
...
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./gl -I./gl
-DINSTALLDIR=\"/usr/local/bin\" -I./src -I./lib -I./src/language/stats
-I./src/language/expressions -I./src/language/expressions -Isrc -pthread
-I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libdrm -I/usr/include/libpng16 -Wall -W -Wwrite-strings
-Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
-g -O2 -MT src/ui/syntax-gen.lo -MD -MP -MF src/ui/.deps/syntax-gen.Tpo -c
src/ui/syntax-gen.c  -fPIC -DPIC -o src/ui/.libs/syntax-gen.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./gl -I./gl
-DINSTALLDIR=\"/usr/local/bin\" -I./src -I./lib -I./src/language/stats
-I./src/language/expressions -I./src/language/expressions -Isrc -pthread
-I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libdrm -I/usr/include/libpng16 -Wall -W -Wwrite-strings
-Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
-g -O2 -MT src/ui/syntax-gen.lo -MD -MP -MF src/ui/.deps/syntax-gen.Tpo -c
src/ui/syntax-gen.c -o src/ui/syntax-gen.o >/dev/null 2>&1
/bin/sh ./libtool  --tag=CC   --mode=link gcc -Wall -W -Wwrite-strings
-Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
-g -O2   -o src/ui/libuicommon.la  src/ui/source-init-opts.lo
src/ui/syntax-gen.lo  -lreadline -lgslcblas -lz -lm
libtool: link: ar cru src/ui/.libs/libuicommon.a
src/ui/.libs/source-init-opts.o src/ui/.libs/syntax-gen.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib src/ui/.libs/libuicommon.a
libtool: link: ( cd "src/ui/.libs" && rm -f "libuicommon.la" && ln -s "../
libuicommon.la" "libuicommon.la" )
/bin/sh ./libtool  --tag=CC   --mode=link gcc -Wall -W -Wwrite-strings
-Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
-g -O2 -release 0.10.1  -o src/libpspp-core.la -rpath /usr/local/lib/pspp
src/data/libdata.la src/libpspp/liblibpspp.la -lxml2   gl/libgl.la
-lreadline -lgslcblas -lz -lm
libtool: link: gcc -shared  -fPIC -DPIC  -Wl,--whole-archive
src/data/.libs/libdata.a src/libpspp/.libs/liblibpspp.a gl/.libs/libgl.a
-Wl,--no-whole-archive  -lxml2 -lreadline -lgslcblas -lz -lm  -O2
-Wl,-soname -Wl,libpspp-core-0.10.1.so -o src/.libs/libpspp-core-0.10.1.so
/usr/bin/ld:
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../lib64/libxml2.a(encoding.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../lib64/libxml2.a: error
adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:5956: recipe for target 'src/libpspp-core.la' failed
make[2]: *** [src/libpspp-core.la] Error 1
make[2]: Leaving directory '/home/sn/pspp/pspp-0.10.1'
Makefile:11577: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/sn/pspp/pspp-0.10.1'
Makefile:5214: recipe for target 'all' failed
make: *** [all] Error 2
[sn@localhost pspp-0.10.1]$

What can I do to solve this problem?
Thanks a lot for your helps.
Your sincerely.
Shahrokh

On 17 July 2016 at 19:17, John Darrington <j...@darrington.wattle.id.au>
wrote:

> I don't use fedora, but it sounds as if you have installed the packages
> but not their respective header files.
>
> I _think_ in fedora these packages have a "-devel" suffix.  That is to
> say, you
> need to install libxml2-devel, cairo-devel, pango-devel etc.  However, as
> I say,
> I don't use fedora, so you should refer to the fedora documentation to be
> sure.
>
> I hope this helps.
>
> J'
>
> On Sun, Jul 17, 2016 at 05:15:00PM +0430, shahrokh nasseri wrote:
>      Hi Dear PSPP developers
>
>      I have some problelms to install PSPP in fedora core 22  with the
> following
>      specifications:
>      Linux localhost.localdomain 4.0.4-301.fc22.x86_64 #1 SMP Thu May 21
>      13:10:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>
>      When I try to configue the source of pspp (pspp-0.10.1), I get the
>      following errors:
>      $ cd /home/sn/pspp/pspp-0.10.1
>      $ ./configure
>      ...
>      checking for iconv declaration...
>               extern size_t iconv (iconv_t cd, char * *inbuf, size_t
>      *inbytesleft, char * *outbuf, size_t *outbytesleft);
>      configure: WARNING: The following optional prerequisites are not
> installed.
>      You may wish to install them to obtain additional functionality:
>          libxml2
>          libreadline (which may itself require libncurses or libtermcap)
>      configure: error: The following required prerequisites are not
> installed.
>      You must install them before PSPP can be built:
>          cairo 1.5 or later and pango 1.22 or later (or use
> --without-cairo)
>          gtk+ 3.0 version 3.4.2 or later (or use --without-gui)
>          gtksourceview 3.0 version 3.4.2 or later (or use --without-gui)
>
>      $
>      Afterwards, I try to install the requirements packages such as
> libxml2,
>      libreadline, cairo, gtk+ and gtksourceview.
>      I think that I have installed the software mentioned above. Detalis of
>      these packages installed in my computer:
>
>      ************************************* xml2
>      ******************************************
>      [root@localhost sn]# /usr/bin/dnf list libxml2
>      Last metadata expiration check performed 1:30:03 ago on Sun Jul 17
> 08:21:17
>      2016.
>      Installed Packages
>      libxml2.x86_64
>      2.9.2-3.fc22                     @System
>      libxml2.i686
>      2.9.3-1.fc22                     @System
>      Available Packages
>      libxml2.x86_64
>      2.9.3-1.fc22                     updates
>      [root@localhost sn]# /usr/bin/dnf list xml2
>      Last metadata expiration check performed 1:30:08 ago on Sun Jul 17
> 08:21:17
>      2016.
>      Installed Packages
>      xml2.x86_64
>      0.5-7.fc22                       @System
>      [root@localhost sn]#
>
>      ************************************* readline
>      **************************************
>      [root@localhost sn]# /usr/bin/dnf list readline
>      Last metadata expiration check performed 1:31:38 ago on Sun Jul 17
> 08:21:17
>      2016.
>      Installed Packages
>      readline.i686
>      6.3-5.fc22                     @System
>      readline.x86_64
>      6.3-5.fc22                     @System
>      [root@localhost sn]#
>
>      ************************************* cairo
>      *****************************************
>      [root@localhost sn]# /usr/bin/dnf list cairo
>      Last metadata expiration check performed 1:35:01 ago on Sun Jul 17
> 08:21:17
>      2016.
>      Installed Packages
>      cairo.i686
>      1.14.2-1.fc22                     @System
>      cairo.x86_64
>      1.14.2-1.fc22                     @System
>      [root@localhost sn]#
>
>      ************************************** gtk+
>      *****************************************
>      [root@localhost sn]# /usr/bin/dnf list gtk+
>      Last metadata expiration check performed 1:37:37 ago on Sun Jul 17
> 08:21:17
>      2016.
>      Installed Packages
>      gtk+.i686
>      1:1.2.10-80.fc22                    @System
>      gtk+.x86_64
>      1:1.2.10-80.fc22                    @System
>      [root@localhost sn]#
>
>      ******************************* gtksourceview
>      ***************************************
>      [root@localhost /]# /usr/bin/dnf list gtksourceview
>      Last metadata expiration check performed 2:02:21 ago on Sun Jul 17
> 08:21:17
>      2016.
>      Installed Packages
>      gtksourceview.i686
>      1:1.8.5-17.fc22                @System
>      gtksourceview.x86_64
>      1:1.8.5-17.fc22                @System
>      [root@localhost sn]#
>
>
>      Do I instlled these softwares in my computer, such as xml2, readline,
>      cairo, gtk+ and gtksourceview? I installed packages using with the
>      following commands, for example:
>      [root@localhost sn]# /usr/bin/dnf list cairo/usr/bin/dnf list cairo
>      ...
>      [root@localhost sn]# /usr/bin/dnf install cairo
>      ...
>
>      Where do I go wrong?
>      Please guide me as soon as possible.
>      Thanks a lot,
>      Shahrokh
>
>      _______________________________________________
>      Pspp-users mailing list
>      Pspp-users@gnu.org
>      https://lists.gnu.org/mailman/listinfo/pspp-users
>
>
> --
> Avoid eavesdropping.  Send strong encryted email.
> PGP Public key ID: 1024D/2DE827B3
> fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
> See http://sks-keyservers.net or any PGP keyserver for public key.
>
>
_______________________________________________
Pspp-users mailing list
Pspp-users@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-users

Reply via email to