Git Product home page Git Product logo

Comments (18)

ntwrkguru avatar ntwrkguru commented on August 20, 2024

It builds for me in 15.10:

vagrant@vagrant-ubuntu-wily-64:~$ slaxproc --version
libslax version 0.20.1
Using libxml 20902, libxslt 10128 and libexslt 817
slaxproc was compiled against libxml 20902, libxslt 10128 and libexslt 817
libxslt 10128 was compiled against libxml 20902
libexslt 817 was compiled against libxml 20902

This was a minimal install plus these packages:

libcurl4-openssl-dev (replaced libcurl3-dev)
libxslt1-dev
libxml2-dev
libedit2
build-essential
bison
dh-autoreconf
libpcre3-dev
libbz2-dev

from libslax.

philshafer avatar philshafer commented on August 20, 2024

Can you submit the output of your configure script, especially the last part (the summary)?

strlcpy is fairly old; man says "The strlcpy() and strlcat() functions first appeared in OpenBSD 2.4, and made their appearance in FreeBSD 3.3.”.

The printflike should only activate when configured, iirc.

Thanks,
Phil

On May 6, 2016, at 3:43 PM, dan-doran [email protected] wrote:

make returns:

Making all in libslax
make[1]: Entering directory '/home/daniel/libslax-0.20.1/build/libslax'
make all-am
make[2]: Entering directory '/home/daniel/libslax-0.20.1/build/libslax'
BUILD slaxparser-xpl.y
BUILD slaxparser-out.y
BISON slaxparser.c
CC jsonlexer.lo
../../libslax/jsonlexer.c: In function ‘slaxJsonFileToXml’:
../../libslax/jsonlexer.c:339:5: warning: implicit declaration of function ‘strlcpy’ [-Wimplicit-function-declaration]
strlcpy(sd.sd_filename, fname, sizeof(sd.sd_filename));
^
CC jsonwriter.lo
CC slaxdebugger.lo
In file included from ../../libslax/slaxdyn.h:15:0,
from ../../libslax/xmlsoft.h:26,
from ../../libslax/slaxinternals.h:24,
from ../../libslax/slaxdebugger.c:76:
../../libslax/slax.h:181:14: error: expected declaration specifiers or ‘...’ before numeric constant
__printflike(1, 2)
^
../../libslax/slax.h:181:17: error: expected declaration specifiers or ‘...’ before numeric constant
__printflike(1, 2)
^
../../libslax/slax.h:187:14: error: expected declaration specifiers or ‘...’ before numeric constant
__printflike(1, 2)
^
../../libslax/slax.h:187:17: error: expected declaration specifiers or ‘...’ before numeric constant
__printflike(1, 2)
^
../../libslax/slaxdebugger.c: In function ‘slaxDebugOutputXpath’:
../../libslax/slaxdebugger.c:392:2: warning: implicit declaration of function ‘slaxOutput’ [-Wimplicit-function-declaration]
slaxOutput("%s[boolean] %s", tag, xpath->boolval ? "true" : "false");
^
../../libslax/slaxdebugger.c: In function ‘slaxDebugTemplateInfo’:
../../libslax/slaxdebugger.c:721:2: warning: implicit declaration of function ‘strlcpy’ [-Wimplicit-function-declaration]
strlcpy(buf, "[global]", bufsiz);
^
Makefile:587: recipe for target 'slaxdebugger.lo' failed
make[2]: *** [slaxdebugger.lo] Error 1
make[2]: Leaving directory '/home/daniel/libslax-0.20.1/build/libslax'
Makefile:462: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/daniel/libslax-0.20.1/build/libslax'
Makefile:586: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I've reinstalled all prerequisites, re-downloaded from repo, done some poking around on the internet in case anybody else has already handled this. No luck. Thanks for any help!


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub #36

from libslax.

dan-doran avatar dan-doran commented on August 20, 2024

Certainly. Thank you.

configure: summary of build options:

libslax version: 0.20.1
host type: i686-pc-linux-gnu / linux-gnu
install prefix: /usr/local
srcdir: ..
libdir: ${exec_prefix}/lib
bindir: /usr/local/bin
includedir: ${prefix}/include
extensions dir: ${exec_prefix}/lib/slax/extensions

compiler: gcc (no)
compiler flags: -D_GNU_SOURCE -g -O2
library types: Shared=yes, Static=yes
libxml version: 2.9.2
libxslt cflags: -I/home/daniel/anaconda3/include -I/home/daniel/anaconda3/include/libxml2
libxml libs: -L/home/daniel/anaconda3/lib -lxml2 -lz -lm -ldl
libxslt version: 1.1.28
libxslt cflags: -I/home/daniel/anaconda3/include -I/home/daniel/anaconda3/include/libxml2
libxslt libs: -L/home/daniel/anaconda3/lib -lxslt -lxml2 -ldl -lm -lrt
libcurl version: libcurl 7.45.0
libcurl cflags: -I/home/daniel/anaconda3/include
libcurl libs: -L/home/daniel/anaconda3/lib -lcurl
bison version: 3.0
sqlite3 version: 3.8.11.1

warnings: no
debug: no
readline: no
libedit: no
printf-like: no
libxslt tests: no
sqlite3: yes
sqlcipher: no

And then the rest:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/daniel/libslax-0.20.1/missing: Unknown '--is-lightweight' option
Try '/home/daniel/libslax-0.20.1/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
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 whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether ln -s works... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for basename... /usr/bin/basename
checking for bison... /usr/bin/bison
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cp... /bin/cp
checking for diff... /usr/bin/diff
checking for mkdir... /bin/mkdir
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for sed... (cached) /bin/sed
checking for ANSI C header files... (cached) yes
checking for inline... inline
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for bzero... yes
checking for memmove... yes
checking for strchr... yes
checking for strcspn... yes
checking for strerror... yes
checking for strspn... yes
checking for sranddev... no
checking for srand... yes
checking for strlcpy... no
checking for fdopen... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for ctime... yes
checking for getpass... yes
checking for sysctlbyname... no
checking for flock... yes
checking for asprintf... yes
checking for dlfcn.h... (cached) yes
checking tzfile.h usability... no
checking tzfile.h presence... no
checking for tzfile.h... no
checking stdtime/tzfile.h usability... no
checking stdtime/tzfile.h presence... no
checking for stdtime/tzfile.h... no
checking for dlfunc... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking for MD5_Init in -lcrypto... no
checking for lrint in -lm... yes
checking for xmlNewParserCtxt in -lxml2... yes
checking for xsltInit in -lxslt... yes
checking whether to build with warnings... no
checking whether to build with debugging... no
checking whether to build with readline... no
checking whether to build with libedit... no
checking compiler for gcc... no
checking whether to build with printflike... no
checking for SQLite3 library >= 3.7.13... yes
checking for libxml libraries >= 2.7.7... 2.9.2 found
checking for libxslt libraries >= 1.1.26... 1.1.28 found
checking for libcurl libraries >= 7.21.3... libcurl 7.45.0 found
checking bison version... 3.0
checking for stat.st_mtimespec... no
Using configure dir /home/daniel/libslax-0.20.1
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating slax-config
config.status: creating libslax/Makefile
config.status: creating libslax/slaxversion.h
config.status: creating extensions/Makefile
config.status: creating extensions/bit/Makefile
config.status: creating extensions/curl/Makefile
config.status: creating extensions/exslt/Makefile
config.status: creating extensions/os/Makefile
config.status: creating extensions/db/Makefile
config.status: creating extensions/db/sqlite/Makefile
config.status: creating extensions/xutil/Makefile
config.status: creating slaxproc/Makefile
config.status: creating tests/Makefile
config.status: creating tests/art/Makefile
config.status: creating tests/core/Makefile
config.status: creating tests/bugs/Makefile
config.status: creating tests/errors/Makefile
config.status: creating tests/libxslt/Makefile
config.status: creating bin/Makefile
config.status: creating doc/Makefile
config.status: creating doc/oxtradoc/oxtradoc
config.status: creating packaging/libslax.pc
config.status: creating packaging/rpm/libslax.spec
config.status: creating packaging/rpm/libslax.space.spec
config.status: creating packaging/libslax.rb.base
config.status: creating packaging/freebsd/port-Makefile
config.status: creating libslax/slaxconfig.h
config.status: libslax/slaxconfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/rm: cannot remove 'libtoolT': No such file or directory
configure: summary of build options:

from libslax.

philshafer avatar philshafer commented on August 20, 2024

Okay, so printflike shows “no”, which should mean HAVE_PRINTFLIKE is not defined, and the source does protect itself:

https://github.com/Juniper/libslax/blob/master/libslax/slax.h#L181 https://github.com/Juniper/libslax/blob/master/libslax/slax.h#L181

Can you check that HAVE_PRINTFLIKE is not in your build/libslax/slaxconfig.h?

Thanks,
Phil

from libslax.

dan-doran avatar dan-doran commented on August 20, 2024

It is commented out.

from libslax.

jnpr453nz avatar jnpr453nz commented on August 20, 2024

I just ran into the same issue while doing an install on Centos 7
(CentOS Linux release 7.2.1511 (Core)) trying to install libslax-0.20.1 in preparation of a juise install.
Lars

from libslax.

ntwrkguru avatar ntwrkguru commented on August 20, 2024

@larsb-nz Do you have libtool installed?

from libslax.

jnpr453nz avatar jnpr453nz commented on August 20, 2024

Thanks for getting back to me.

Yes, libtool-2.4.2-21 is installed

Lars

On 23/09/2016 11:08, "ntwrkguru" [email protected] wrote:

@larsb-nz https://github.com/larsb-nz Do you have libtool installed?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#36 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJoova48oV7rRZaRv9bJRbs2YU0dOvZNks5qswplgaJpZM4IZKEe
.

from libslax.

ntwrkguru avatar ntwrkguru commented on August 20, 2024

Hmm... Can you provide the output of configure? I just installed on a Centos 7 Vagrant box with no issues, so there must be something missing.

from libslax.

jnpr453nz avatar jnpr453nz commented on August 20, 2024

Here it is Steve.
thanks.


configure: summary of build options:

libslax version: 0.20.1
host type: x86_64-unknown-linux-gnu / linux-gnu
install prefix: /usr/local
srcdir: ..
libdir: ${exec_prefix}/lib
bindir: /usr/local/bin
includedir: ${prefix}/include
extensions dir: ${exec_prefix}/lib/slax/extensions

compiler: gcc (no)
compiler flags: -D_GNU_SOURCE -g -O2
library types: Shared=yes, Static=yes
libxml version: 2.9.1
libxslt cflags: -I/usr/include/libxml2
libxml libs: -lxml2 -lz -lm -ldl
libxslt version: 1.1.28
libxslt cflags: -I/usr/include/libxml2
libxslt libs: -L/usr/lib64 -lxslt -lxml2 -lz -ldl -lm
libcurl version: libcurl 7.29.0
libcurl cflags:
libcurl libs: -lcurl
bison version: 2.7
sqlite3 version:

warnings: no
debug: no
readline: no
libedit: no
printf-like: no
libxslt tests: no
sqlite3: no
sqlcipher: no
[root@centos-vm build]# make
Making all in libslax
make[1]: Entering directory /root/libslax-0.20.1/build/libslax' make all-am make[2]: Entering directory/root/libslax-0.20.1/build/libslax'
CC jsonlexer.lo
../../libslax/jsonlexer.c: In function ‘slaxJsonFileToXml’:
../../libslax/jsonlexer.c:339:5: warning: implicit declaration of function ‘strlcpy’ [-Wimplicit-function-declaration]
strlcpy(sd.sd_filename, fname, sizeof(sd.sd_filename));
^
CC jsonwriter.lo
CC slaxdebugger.lo
In file included from ../../libslax/slaxdyn.h:15:0,
from ../../libslax/xmlsoft.h:26,
from ../../libslax/slaxinternals.h:24,
from ../../libslax/slaxdebugger.c:76:
../../libslax/slax.h:181:14: error: expected declaration specifiers or ‘...’ before numeric constant
__printflike(1, 2)
^
../../libslax/slax.h:181:17: error: expected declaration specifiers or ‘...’ before numeric constant
__printflike(1, 2)
^
../../libslax/slax.h:187:14: error: expected declaration specifiers or ‘...’ before numeric constant
__printflike(1, 2)
^
../../libslax/slax.h:187:17: error: expected declaration specifiers or ‘...’ before numeric constant
__printflike(1, 2)
^
../../libslax/slaxdebugger.c: In function ‘slaxDebugOutputXpath’:
../../libslax/slaxdebugger.c:392:2: warning: implicit declaration of function ‘slaxOutput’ [-Wimplicit-function-declaration]
slaxOutput("%s[boolean] %s", tag, xpath->boolval ? "true" : "false");
^
../../libslax/slaxdebugger.c: In function ‘slaxDebugTemplateInfo’:
../../libslax/slaxdebugger.c:721:2: warning: implicit declaration of function ‘strlcpy’ [-Wimplicit-function-declaration]
strlcpy(buf, "[global]", bufsiz);
^
make[2]: *** [slaxdebugger.lo] Error 1
make[2]: Leaving directory /root/libslax-0.20.1/build/libslax' make[1]: *** [all] Error 2 make[1]: Leaving directory/root/libslax-0.20.1/build/libslax'
make: *** [all-recursive] Error 1
[root@centos-vm build]#

from libslax.

philshafer avatar philshafer commented on August 20, 2024

This one’s odd, since centos7 has strlcpy (http://www.unix.com/man-page/centos/9/strlcpy http://www.unix.com/man-page/centos/9/strlcpy) and jsonlexer.c #includes <string.h>. More odd, the man page doesn’t specify the include file, but the BSD/macosx one says:

STRLCPY(3) BSD Library Functions Manual STRLCPY(3)

NAME
strlcpy, strlcat -- size-bounded string copying and concatenation

LIBRARY
Standard C Library (libc, -lc)

SYNOPSIS
#include <string.h>

 size_t
 strlcpy(char * restrict dst, const char * restrict src, size_t size);

 size_t
 strlcat(char * restrict dst, const char * restrict src, size_t size);

I have an older centos-5.8 VM, which doesn’t have strlcpy, so I have configure.ac detect missing strlcpy and substitute a replacement, but I’m not understanding why centos7 needs it.

Can you run “configure” and send all the output, along with the generated libslax/slaxconfig.h? Assumably it’s finding strlcpy somewhere, but perhaps it’s not in string.h?

Thanks,
Phil

Sep 22, 2016, at 7:39 PM, larsb-nz [email protected] wrote:
[root@centos-vm build]# make
Making all in libslax
make[1]: Entering directory /root/libslax-0.20.1/build/libslax'
make all-am
make[2]: Entering directory/root/libslax-0.20.1/build/libslax'
CC jsonlexer.lo
../../libslax/jsonlexer.c: In function ‘slaxJsonFileToXml’:
../../libslax/jsonlexer.c:339:5: warning: implicit declaration of function ‘strlcpy’ [-Wimplicit-function-declaration]
strlcpy(sd.sd_filename, fname, sizeof(sd.sd_filename));

from libslax.

jnpr453nz avatar jnpr453nz commented on August 20, 2024

thanks Phil.
have attached the output.
Lars
libslax_configure_slaxconfig.h.txt

from libslax.

philshafer avatar philshafer commented on August 20, 2024

Turns out it’s a stupid one: The tarball has a copy of slaxconfig.h that should not be there. Remove it (libslax/slaxconfig.h in the src, not the build/ directory) and you’ll build fine. I’ll make a new release with this fix.

Thanks,
Phil

On Sep 23, 2016, at 12:11 AM, larsb-nz [email protected] wrote:

have attached the output.

from libslax.

ntwrkguru avatar ntwrkguru commented on August 20, 2024

What's strange is the different behavior between 2 Centos 7 instances.

from libslax.

philshafer avatar philshafer commented on August 20, 2024

Best guess is that the one in the tarball was “good enough”.

Thanks,
Phil

On Sep 23, 2016, at 7:19 AM, ntwrkguru [email protected] wrote:
What's strange is the different behavior between 2 Centos 7 instances.

from libslax.

ntwrkguru avatar ntwrkguru commented on August 20, 2024

I built from git source though. Maybe that's the difference? @larsb-nz did you build from tarball or git source?

from libslax.

jnpr453nz avatar jnpr453nz commented on August 20, 2024

I build it from the tarball.
Will do same after Phil has updated the tarball. Could delete the file as suggested but figured I would 'test' the update.

On 24/09/2016 08:10, "ntwrkguru" [email protected] wrote:

I built from git source though. Maybe that's the difference? @larsb-nz
https://github.com/larsb-nz did you build from tarball or git source?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#36 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJooveBe0_PsP2XFBEMiCEHLzfapBKyAks5qtDIUgaJpZM4IZKEe
.

from libslax.

jnpr453nz avatar jnpr453nz commented on August 20, 2024

Hi guys,
followed Phil's instruction and deleted the file 'libslax/slaxconfig.h' and re-ran make without a problem.
all good now.
thanks for your time!
Lars

from libslax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.