Re: ports/172837: lang/swi-pl compiles with databases/libiodbc

2013-08-04 Thread cpghost
On 08/03/13 11:29, Johan van Selst wrote:
 Johan van Selst wrote:
 cpghost wrote:
 I've discovered the reason for this:
 Ah, great. Now I can reproduce it as well. You are right, it is a hidden
 dependency (with no sensible way of turning it off). I shall add your
 patch with an explicit dependency on misc/ossp-uuid.
 
 On second thought... the potential for wrong dependency issues with
 conflicting ports, the lack of configuration options, the lack of shared
 libraries (static only) and the realisation that most people have been
 happy Prolog users without this feature so far, made me decide to rip it
 out instead.
 
 If anybody really wants to have ossp-uuid support in SWI Prolog, then
 please let me know.

No objections here. I've never used UUIDs in Prolog. ;-)

 Cheers,
 Johan

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: ports/172837: lang/swi-pl compiles with databases/libiodbc

2013-08-03 Thread Johan van Selst
cpghost wrote:
 I've discovered the reason for this:

Ah, great. Now I can reproduce it as well. You are right, it is a hidden
dependency (with no sensible way of turning it off). I shall add your
patch with an explicit dependency on misc/ossp-uuid.


Thanks,
Johan


pgpQsPTrLwwJZ.pgp
Description: PGP signature


Re: ports/172837: lang/swi-pl compiles with databases/libiodbc

2013-08-03 Thread Johan van Selst
Johan van Selst wrote:
 cpghost wrote:
  I've discovered the reason for this:
 Ah, great. Now I can reproduce it as well. You are right, it is a hidden
 dependency (with no sensible way of turning it off). I shall add your
 patch with an explicit dependency on misc/ossp-uuid.

On second thought... the potential for wrong dependency issues with
conflicting ports, the lack of configuration options, the lack of shared
libraries (static only) and the realisation that most people have been
happy Prolog users without this feature so far, made me decide to rip it
out instead.

If anybody really wants to have ossp-uuid support in SWI Prolog, then
please let me know.


Cheers,
Johan


pgpDxIAVXC7gD.pgp
Description: PGP signature


Re: ports/172837: lang/swi-pl compiles with databases/libiodbc

2013-08-02 Thread cpghost
On 07/15/13 18:40, cpghost wrote:
 On 07/15/13 07:13, Johan van Selst wrote:
 cpghost wrote:
 Unfortunately, when OPTION iodbc is selected, the port now fails
 to compile:

 Corrected now, thanks for reporting.

 I have also disabled the optional Java interface (JPL) for now.
 Will try and figure out how to get this working with varios JDKs
 and add it as an option later.
 
 Thank you.
 
 The port still fails to compile:
 
 cc -shared -rdynamic  -L/usr/local/lib -pthread
 -L/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../lib/x86_64-freebsd  -o
 unix.so error.o unix.o
 cc -O2 -Wall -fno-strict-aliasing -pthread -fPIC -O2 -pipe
 -I/usr/local/include -fno-strict-aliasing
 -I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../include
 -I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../packages/clib
 -I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../packages/clib/maildrop/rfc2045
 -I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../packages/clib/maildrop/rfc822
 -DHAVE_CONFIG_H -D__SWI_PROLOG__   -c -o uuid.o uuid.c
 uuid.c: In function 'pl_uuid':
 uuid.c:45: error: 'UUID_MAKE_V1' undeclared (first use in this function)
 uuid.c:45: error: (Each undeclared identifier is reported only once
 uuid.c:45: error: for each function it appears in.)
 uuid.c:51: error: 'uuid_rc_t' undeclared (first use in this function)
 uuid.c:51: error: expected ';' before 'urc'
 uuid.c:73: error: 'UUID_MAKE_MC' undeclared (first use in this function)
 uuid.c:74: error: 'UUID_MAKE_V3' undeclared (first use in this function)
 uuid.c:75: error: 'UUID_MAKE_V4' undeclared (first use in this function)
 uuid.c:76: error: 'UUID_MAKE_V5' undeclared (first use in this function)
 uuid.c:114: warning: passing argument 1 of 'uuid_create' from
 incompatible pointer type
 uuid.c:114: error: too few arguments to function 'uuid_create'
 uuid.c:115: error: 'urc' undeclared (first use in this function)
 uuid.c:115: warning: implicit declaration of function 'uuid_make'
 uuid.c:115: error: 'UUID_RC_OK' undeclared (first use in this function)
 uuid.c:116: warning: implicit declaration of function 'uuid_error'
 uuid.c:125: warning: passing argument 1 of 'uuid_create' from
 incompatible pointer type
 uuid.c:125: error: too few arguments to function 'uuid_create'
 uuid.c:126: warning: passing argument 1 of 'uuid_create' from
 incompatible pointer type
 uuid.c:126: error: too few arguments to function 'uuid_create'
 uuid.c:127: warning: implicit declaration of function 'uuid_load'
 uuid.c:130: warning: implicit declaration of function 'uuid_destroy'
 uuid.c:139: error: 'UUID_LEN_STR' undeclared (first use in this function)
 uuid.c:143: warning: implicit declaration of function 'uuid_export'
 uuid.c:143: error: 'UUID_FMT_STR' undeclared (first use in this function)
 uuid.c:139: warning: unused variable 'buf'
 uuid.c:147: error: 'UUID_LEN_SIV' undeclared (first use in this function)
 uuid.c:152: error: 'UUID_FMT_SIV' undeclared (first use in this function)
 uuid.c:147: warning: unused variable 'buf'
 gmake[2]: *** [uuid.o] Error 1
 gmake[2]: Leaving directory
 `/usr/ports/lang/swi-pl/work/pl-6.2.6/packages/clib'
 gmake[1]: *** [objects] Error 1
 gmake[1]: Leaving directory `/usr/ports/lang/swi-pl/work/pl-6.2.6/packages'
 gmake: *** [packages] Error 2
 *** [do-build] Error code 1
 
 Stop in /usr/ports/lang/swi-pl.
 *** [build] Error code 1
 
 Stop in /usr/ports/lang/swi-pl.

I've discovered the reason for this:

If sysutils/sleuthkit is installed, so is also misc/e2fsprogs-libuuid.
If misc/e2fsprogs-libuuid is installed, lang/swi-pl picks up the wrong
uuid.h header. Instead, deinstall e2fsprogs-libuuid, install
instead misc/ossp-uuid, and then recompile lang/swi-pl.

I'd suggest adding the following dependency to swi-pl's Makefile,
so that misc/ossp-uuid gets installed (or bombs with a conflict
with misc/e2fsprogs-libuuid):

--- Makefile.orig   2013-08-01 19:47:37.0 +0200
+++ Makefile2013-08-01 21:14:17.0 +0200
@@ -12,7 +12,8 @@
 
 LIB_DEPENDS=   gmp:${PORTSDIR}/math/gmp \
readline:${PORTSDIR}/devel/readline \
-   jpeg:${PORTSDIR}/graphics/jpeg
+   jpeg:${PORTSDIR}/graphics/jpeg \
+   uuid:${PORTSDIR}/misc/ossp-uuid
 
 OPTIONS_SINGLE=ODBC
 OPTIONS_SINGLE_ODBC=   IODBC UNIXODBC

Thanks,
-cphgost.

-- 
Cordula's Web. http://www.cordula.ws/

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: ports/172837: lang/swi-pl compiles with databases/libiodbc

2013-07-15 Thread cpghost
On 07/15/13 07:13, Johan van Selst wrote:
 cpghost wrote:
 Unfortunately, when OPTION iodbc is selected, the port now fails
 to compile:
 
 Corrected now, thanks for reporting.
 
 I have also disabled the optional Java interface (JPL) for now.
 Will try and figure out how to get this working with varios JDKs
 and add it as an option later.

Thank you.

The port still fails to compile:

cc -shared -rdynamic  -L/usr/local/lib -pthread
-L/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../lib/x86_64-freebsd  -o
unix.so error.o unix.o
cc -O2 -Wall -fno-strict-aliasing -pthread -fPIC -O2 -pipe
-I/usr/local/include -fno-strict-aliasing
-I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../include
-I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../packages/clib
-I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../packages/clib/maildrop/rfc2045
-I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../packages/clib/maildrop/rfc822
-DHAVE_CONFIG_H -D__SWI_PROLOG__   -c -o uuid.o uuid.c
uuid.c: In function 'pl_uuid':
uuid.c:45: error: 'UUID_MAKE_V1' undeclared (first use in this function)
uuid.c:45: error: (Each undeclared identifier is reported only once
uuid.c:45: error: for each function it appears in.)
uuid.c:51: error: 'uuid_rc_t' undeclared (first use in this function)
uuid.c:51: error: expected ';' before 'urc'
uuid.c:73: error: 'UUID_MAKE_MC' undeclared (first use in this function)
uuid.c:74: error: 'UUID_MAKE_V3' undeclared (first use in this function)
uuid.c:75: error: 'UUID_MAKE_V4' undeclared (first use in this function)
uuid.c:76: error: 'UUID_MAKE_V5' undeclared (first use in this function)
uuid.c:114: warning: passing argument 1 of 'uuid_create' from
incompatible pointer type
uuid.c:114: error: too few arguments to function 'uuid_create'
uuid.c:115: error: 'urc' undeclared (first use in this function)
uuid.c:115: warning: implicit declaration of function 'uuid_make'
uuid.c:115: error: 'UUID_RC_OK' undeclared (first use in this function)
uuid.c:116: warning: implicit declaration of function 'uuid_error'
uuid.c:125: warning: passing argument 1 of 'uuid_create' from
incompatible pointer type
uuid.c:125: error: too few arguments to function 'uuid_create'
uuid.c:126: warning: passing argument 1 of 'uuid_create' from
incompatible pointer type
uuid.c:126: error: too few arguments to function 'uuid_create'
uuid.c:127: warning: implicit declaration of function 'uuid_load'
uuid.c:130: warning: implicit declaration of function 'uuid_destroy'
uuid.c:139: error: 'UUID_LEN_STR' undeclared (first use in this function)
uuid.c:143: warning: implicit declaration of function 'uuid_export'
uuid.c:143: error: 'UUID_FMT_STR' undeclared (first use in this function)
uuid.c:139: warning: unused variable 'buf'
uuid.c:147: error: 'UUID_LEN_SIV' undeclared (first use in this function)
uuid.c:152: error: 'UUID_FMT_SIV' undeclared (first use in this function)
uuid.c:147: warning: unused variable 'buf'
gmake[2]: *** [uuid.o] Error 1
gmake[2]: Leaving directory
`/usr/ports/lang/swi-pl/work/pl-6.2.6/packages/clib'
gmake[1]: *** [objects] Error 1
gmake[1]: Leaving directory `/usr/ports/lang/swi-pl/work/pl-6.2.6/packages'
gmake: *** [packages] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/lang/swi-pl.
*** [build] Error code 1

Stop in /usr/ports/lang/swi-pl.

 Regards,
 Johan

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: ports/172837: lang/swi-pl compiles with databases/libiodbc

2013-07-14 Thread cpghost
Hello,

thank you for closing pr/172837 and for updating lang/swi-pl to
version 6.2.6.

Unfortunately, when OPTION iodbc is selected, the port now fails
to compile:

===   Compressing manual pages for libiodbc-3.52.8
===   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===   Registering installation for libiodbc-3.52.8
===   Returning to build of swi-pl-6.2.6
Error: shared library odbc does not exist
*** [lib-depends] Error code 1

Stop in /usr/ports/lang/swi-pl.
*** [build] Error code 1

Stop in /usr/ports/lang/swi-pl.

When applying the following patch to the port's Makefile:

- cut here  cut here 
--- Makefile.orig   2013-07-14 21:08:14.0 +0200
+++ Makefile2013-07-14 21:08:24.0 +0200
@@ -43,7 +43,7 @@
 .if ${PORT_OPTIONS:MUNIXODBC}
 LIB_DEPENDS+=  odbc:${PORTSDIR}/databases/unixODBC
 .else
-LIB_DEPENDS+=  odbc:${PORTSDIR}/databases/libiodbc
+LIB_DEPENDS+=  iodbc:${PORTSDIR}/databases/libiodbc
 .endif

 .include bsd.port.pre.mk
- cut here  cut here ---

compilation proceeds until the following error message:

**
* Package plunit
**
checking for a BSD-compatible install... /usr/bin/install -c -o root -g
wheel
configure: creating ./config.status
config.status: creating Makefile
**
* Package jpl
**
checking for gmake... gmake
checking for etags... etags
checking for a BSD-compatible install... /usr/bin/install -c -o root -g
wheel
checking for gcc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for library containing strerror... none required
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking whether byte ordering is bigendian... no
checking build system type... x86_64-pc-freebsd
checking host system type... x86_64-pc-freebsd
configure: checking Java configuration...
checking for jikes... no
checking for javac... javac
checking if javac works... yes
checking for kaffe... no
checking for java... java
checking for uudecode... yes
checking if uudecode can decode base 64 file... yes
checking if java works... yes
checking for jar... jar
checking for javadoc... javadoc
checking for javac... /usr/local/bin/javac
checking for javac... (cached) /usr/local/bin/javac
checking symlink for /usr/local/bin/javac... /usr/local/bin/javavm
configure: error: cannot find java include files
gmake[1]: *** [configure] Error 1
gmake[1]: Leaving directory `/usr/ports/lang/swi-pl/work/pl-6.2.6/packages'
gmake: *** [packages] Error 1
*** [do-build] Error code 1

Stop in /usr/ports/lang/swi-pl.
*** [build] Error code 1

Stop in /usr/ports/lang/swi-pl.

What gives? I have openjdk6-b27_3 installed...

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: ports/172837: lang/swi-pl compiles with databases/libiodbc

2013-07-14 Thread Johan van Selst
cpghost wrote:
 Unfortunately, when OPTION iodbc is selected, the port now fails
 to compile:

Corrected now, thanks for reporting.

I have also disabled the optional Java interface (JPL) for now.
Will try and figure out how to get this working with varios JDKs
and add it as an option later.


Regards,
Johan


pgpucBLf6kCyA.pgp
Description: PGP signature