RE: Makeudt

2004-04-07 Thread Dirk H Bartley
On Tue, 2004-04-06 at 23:27, Ken Wallis wrote:
 Dirk Bartley wrote:
 
 Found out from some googling around that I needed the elf libraries.
 That got me to the ndbm issue.  What other libraries did you discover
 were required??  Is the gdbm library a correct replacement for the ndbm
 library??  The other library I am stuck on is when compiling ictest it
 keeps telling me I need a 'socket' library.  Did you run into this??
 
  Apparently IBM's binary distribution of UniData for linux is compiled
  on RedHat 7.X, and compiler differences after that make it
 impossible to makeudt.
 
 If this is for a proper, licenced installation of UniData and not just for
 the PE version, I'd strongly suggest you get in touch with IBM support on
 this.  There are specific point releases of UniData which are needed for
 specific Linux builds if you want to use makeudt.  Your experience of
 successfully building a udt only to have it seg fault is something I've seen
 and it came down to needing a different ud version for that Linux build.
 
 A potential start point is the availability matrix, but I don't think it is
 entirely up to date:
 https://www-927.ibm.com/software/data/u2/support/u2techconnect/matrix.asp

Looked at this before, I had not taken it as strict os version / unidata
version mandatory.  This is the first time for me to see a software
package that runs on linux has issues like this from distriburion
version level so it has taken me by surprise.  The server unidata is
running on is currently not a generic installation from a specific
version.  libc has been recompiled to get ldap to function.  It was
originally a Redhat 7.0 install.  The kernel has also been recompiled
for large memory support and dual processor support.

I have contacted my software vendor which we pay for unidata support to
get them to send me the latest unidata version.  I have installation
disks to install the version of Redhat for the above linked matrix. 
Once I get an os-version with a unidata version approved in the matrix I
will try again.

https://www-927.ibm.com/software/data/u2/support/u2techconnect/binary.htm

Many thanks to Tim and Ken for the information.
 
Dirk
 
 Also, before you search the world for libraries to install on your Linux
 box, I'd try removing references to the missing libs from the base.mk file.
 I know you don't need to link with libelf, and seem to recall that libsocket
 is no longer a separate library, but is instead now rolled into libc.  I'm
 not sure that libndbm is necessary either.
 
 HTH,
 
 Ken
 
 
 -- 
 u2-users mailing list
 [EMAIL PROTECTED]
 http://www.oliver.com/mailman/listinfo/u2-users


-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: Makeudt

2004-04-06 Thread Dirk H Bartley
Greetings U2-users

I also am having similar issues.  There are three unidata machines here,
1 production and one backup 5.2 on Redhat 7.0 and also one Personal
Edition on Redhat 9 so I have a couple of machine I can test with.

I would like to make it so I can succeed at trying a couple of things
which require making and linking.  The things I would like to try are
using callc, callbasic and/or intercall.  

For callc, it is required to follow some steps making a c program and
compiling and then executing makeudt.  When I do this I get the
following error:

[EMAIL PROTECTED] work]# rm udt_test
rm: remove `udt_test'? y
[EMAIL PROTECTED] work]# makeudt
Are you ready to use cfuncdef in /usr/ud52/work
to make a new udt? (y/n) y

Generating new udt. It takes a while.
Please wait ...

make -f new.mk udt:
cc   -O2  -c funchead.c
cc   -O2  -c interfunc.c
cc   -O2  -c callcf.c
cc   -O2  -c efs_init.c
cc  funchead.o interfunc.o callcf.o efs_init.o
/usr/ud52/work/c_example.o  \
-L/usr/ud52/lib -lapidummy -lshare -ludsql -ludmach -lbasic -lret1
-lperf -lides -lpipe -lfunc -lndx  -lshm -lmglm -lglm -lulc -lcmn -llicn
-ludus -lunix -lbci -lunirpc -lbcidummy -lnfaclnt -lodsdummy \
 -lm -lncurses -lelf -lcrypt -lndbm \
-o ./udt_test
/usr/bin/ld: cannot find -lndbm
collect2: ld returned 1 exit status
make: *** [udt] Error 1
Execute make -f new.mk udt error, errno = 0

Can anybody confirm for me that -lndbm should be replaced with -lgdbm. 
When I try that I get it to compile, but running udt gives me an
immediate segmentation fault.



ictest and intercall

When I try to compile ictest I get the following:

[EMAIL PROTECTED] work]# make -f ictest.mak ictest
cc ictest.o -L -luvic -lsocket -lnsl -lm -lc -o ictest
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
make: *** [ictest] Error 1

Can anyone tell me if there is a socket library I need to install or
point to??

When I try the same things on the personal edition, I get the same
errors.


Thanks in advance for any assistance.

Dirk Bartley
System Administrator
Schupan Aluminum Sales
www.schupanalum.com

On Sun, 2004-03-21 at 13:51, Tim MacInnes wrote:
 
 Tried using makeudt on a Mandrake Linux 10.0 system and got the followin output:
 
 
 Are you ready to use cfuncdef in /usr/ud60/work
 to make a new udt? (y/n) 
 Generating new udt. It takes a while.
 Please wait ...
 
 make -f new.mk udt:
 cc   -O2  -c funchead.c
 cc   -O2  -c interfunc.c
 cc   -O2  -c callcf.c
 cc   -O2  -c efs_init.c
 cc  funchead.o interfunc.o callcf.o efs_init.o   \
 -L/usr/ud60/lib -lapidummy -lshare -ludsql -ludmach -lbasic -lret1 -lperf -lides 
 -lpipe -lfunc -lndx  -lrep -lshm -lmglm -lglm -lulc -lcmn -llicn -ludus -lunix -lbci 
 -lunirpc -L/.udlibs -lodbc -lnfaclnt -lodsdummy \
  -lm -lncurses -lelf -lcrypt -lgdbm -lssl -lcrypto \
 -o udt
 /usr/ud60/lib/libpipe.a(chk_udir.o)(.text+0x52): In function `U_check_udtdir':
 : warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
 /usr/ud60/lib/libfunc.a(fl_syserr.o)(.text+0x13): In function `U_syserror':
 : warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
 /usr/ud60/lib/libudsql.a(ss_facc.o)(.text+0xe1): In function `U_get_midfile':
 : warning: the use of `mktemp' is dangerous, better use `mkstemp'
 /usr/ud60/lib/libfunc.a(U2XML.o)(.text+0xc9e): In function `read_msg':
 : undefined reference to `errno'
 collect2: ld returned 1 exit status
 make: *** [udt] Error 1
 Execute make -f new.mk udt error, errno = 0
 
 The udt make failed.
 
 
 Anyone run into something like this before?
 
 
 Tim MacInnes
 Email: [EMAIL PROTECTED]
 
 
 
 -- 
 u2-users mailing list
 [EMAIL PROTECTED]
 http://www.oliver.com/mailman/listinfo/u2-users


-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: Makeudt

2004-04-06 Thread Tim MacInnes

Hi Dirk,

Wound up solving my own problem somewhat in that I had a few missing libraries. After 
some further investigation, I had to go back to a machine with RedHat 7.3 on it. 
Apparently IBM's binary distribution of UniData for linux is compiled on RedHat 7.X, 
and compiler differences after that make it impossible to makeudt.

I was able to get callc and intercall compiled and working fine. Also am using a 
compiled version of some freeware called CALLUB to connect cgi scripts to a UniData 
database.

Good luck with your testing!


Tim MacInnes
Email: [EMAIL PROTECTED]



- Original Message -
From: Dirk H Bartley [EMAIL PROTECTED]
Date: Tuesday, April 6, 2004 10:25 am
Subject: Re: Makeudt

 Greetings U2-users
 
 I also am having similar issues.  There are three unidata machines 
 here,1 production and one backup 5.2 on Redhat 7.0 and also one 
 PersonalEdition on Redhat 9 so I have a couple of machine I can 
 test with.
 
 I would like to make it so I can succeed at trying a couple of things
 which require making and linking.  The things I would like to try are
 using callc, callbasic and/or intercall.  
 
 For callc, it is required to follow some steps making a c program and
 compiling and then executing makeudt.  When I do this I get the
 following error:
 
 [EMAIL PROTECTED] work]# rm udt_test
 rm: remove `udt_test'? y
 [EMAIL PROTECTED] work]# makeudt
 Are you ready to use cfuncdef in /usr/ud52/work
 to make a new udt? (y/n) y
 
 Generating new udt. It takes a while.
 Please wait ...
 
 make -f new.mk udt:
 cc   -O2  -c funchead.c
 cc   -O2  -c interfunc.c
 cc   -O2  -c callcf.c
 cc   -O2  -c efs_init.c
 cc  funchead.o interfunc.o callcf.o efs_init.o
 /usr/ud52/work/c_example.o  \
 -L/usr/ud52/lib -lapidummy -lshare -ludsql -ludmach -lbasic -lret1
 -lperf -lides -lpipe -lfunc -lndx  -lshm -lmglm -lglm -lulc -lcmn -
 llicn-ludus -lunix -lbci -lunirpc -lbcidummy -lnfaclnt -lodsdummy \
 -lm -lncurses -lelf -lcrypt -lndbm \
 -o ./udt_test
 /usr/bin/ld: cannot find -lndbm
 collect2: ld returned 1 exit status
 make: *** [udt] Error 1
 Execute make -f new.mk udt error, errno = 0
 
 Can anybody confirm for me that -lndbm should be replaced with -
 lgdbm. 
 When I try that I get it to compile, but running udt gives me an
 immediate segmentation fault.
 
 
 
 ictest and intercall
 
 When I try to compile ictest I get the following:
 
 [EMAIL PROTECTED] work]# make -f ictest.mak ictest
 cc ictest.o -L -luvic -lsocket -lnsl -lm -lc -o ictest
 /usr/bin/ld: cannot find -lsocket
 collect2: ld returned 1 exit status
 make: *** [ictest] Error 1
 
 Can anyone tell me if there is a socket library I need to install or
 point to??
 
 When I try the same things on the personal edition, I get the same
 errors.
 
 
 Thanks in advance for any assistance.
 
 Dirk Bartley
 System Administrator
 Schupan Aluminum Sales
 www.schupanalum.com
 
 On Sun, 2004-03-21 at 13:51, Tim MacInnes wrote:
  
  Tried using makeudt on a Mandrake Linux 10.0 system and got the 
 followin output:
  
  
  Are you ready to use cfuncdef in /usr/ud60/work
  to make a new udt? (y/n) 
  Generating new udt. It takes a while.
  Please wait ...
  
  make -f new.mk udt:
  cc   -O2  -c funchead.c
  cc   -O2  -c interfunc.c
  cc   -O2  -c callcf.c
  cc   -O2  -c efs_init.c
  cc  funchead.o interfunc.o callcf.o efs_init.o   \
  -L/usr/ud60/lib -lapidummy -lshare -ludsql -ludmach -lbasic -
 lret1 -lperf -lides -lpipe -lfunc -lndx  -lrep -lshm -lmglm -lglm -
 lulc -lcmn -llicn -ludus -lunix -lbci -lunirpc -L/.udlibs -lodbc -
 lnfaclnt -lodsdummy \
   -lm -lncurses -lelf -lcrypt -lgdbm -lssl -lcrypto \
  -o udt
  /usr/ud60/lib/libpipe.a(chk_udir.o)(.text+0x52): In function 
 `U_check_udtdir': : warning: `sys_errlist' is deprecated; use 
 `strerror' or `strerror_r' instead
  /usr/ud60/lib/libfunc.a(fl_syserr.o)(.text+0x13): In function 
 `U_syserror': : warning: `sys_nerr' is deprecated; use `strerror' 
 or `strerror_r' instead
  /usr/ud60/lib/libudsql.a(ss_facc.o)(.text+0xe1): In function 
 `U_get_midfile': : warning: the use of `mktemp' is dangerous, 
 better use `mkstemp'
  /usr/ud60/lib/libfunc.a(U2XML.o)(.text+0xc9e): In function 
 `read_msg': : undefined reference to `errno'
  collect2: ld returned 1 exit status
  make: *** [udt] Error 1
  Execute make -f new.mk udt error, errno = 0
  
  The udt make failed.
  
  
  Anyone run into something like this before?
  
  
  Tim MacInnes
  Email: [EMAIL PROTECTED]
  
  
  
  -- 
  u2-users mailing list
  [EMAIL PROTECTED]
  http://www.oliver.com/mailman/listinfo/u2-users
 
 
 -- 
 u2-users mailing list
 [EMAIL PROTECTED]
 http://www.oliver.com/mailman/listinfo/u2-users
 

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: Makeudt

2004-04-06 Thread Ken Wallis
Dirk Bartley wrote:

Found out from some googling around that I needed the elf libraries.
That got me to the ndbm issue.  What other libraries did you discover
were required??  Is the gdbm library a correct replacement for the ndbm
library??  The other library I am stuck on is when compiling ictest it
keeps telling me I need a 'socket' library.  Did you run into this??

 Apparently IBM's binary distribution of UniData for linux is compiled
 on RedHat 7.X, and compiler differences after that make it
impossible to makeudt.

If this is for a proper, licenced installation of UniData and not just for
the PE version, I'd strongly suggest you get in touch with IBM support on
this.  There are specific point releases of UniData which are needed for
specific Linux builds if you want to use makeudt.  Your experience of
successfully building a udt only to have it seg fault is something I've seen
and it came down to needing a different ud version for that Linux build.

A potential start point is the availability matrix, but I don't think it is
entirely up to date:
https://www-927.ibm.com/software/data/u2/support/u2techconnect/matrix.asp

Also, before you search the world for libraries to install on your Linux
box, I'd try removing references to the missing libs from the base.mk file.
I know you don't need to link with libelf, and seem to recall that libsocket
is no longer a separate library, but is instead now rolled into libc.  I'm
not sure that libndbm is necessary either.

HTH,

Ken


-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Makeudt

2004-03-21 Thread Tim MacInnes

Tried using makeudt on a Mandrake Linux 10.0 system and got the followin output:


Are you ready to use cfuncdef in /usr/ud60/work
to make a new udt? (y/n) 
Generating new udt. It takes a while.
Please wait ...

make -f new.mk udt:
cc   -O2  -c funchead.c
cc   -O2  -c interfunc.c
cc   -O2  -c callcf.c
cc   -O2  -c efs_init.c
cc  funchead.o interfunc.o callcf.o efs_init.o   \
-L/usr/ud60/lib -lapidummy -lshare -ludsql -ludmach -lbasic -lret1 -lperf -lides 
-lpipe -lfunc -lndx  -lrep -lshm -lmglm -lglm -lulc -lcmn -llicn -ludus -lunix -lbci 
-lunirpc -L/.udlibs -lodbc -lnfaclnt -lodsdummy \
 -lm -lncurses -lelf -lcrypt -lgdbm -lssl -lcrypto \
-o udt
/usr/ud60/lib/libpipe.a(chk_udir.o)(.text+0x52): In function `U_check_udtdir':
: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/usr/ud60/lib/libfunc.a(fl_syserr.o)(.text+0x13): In function `U_syserror':
: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
/usr/ud60/lib/libudsql.a(ss_facc.o)(.text+0xe1): In function `U_get_midfile':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/ud60/lib/libfunc.a(U2XML.o)(.text+0xc9e): In function `read_msg':
: undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [udt] Error 1
Execute make -f new.mk udt error, errno = 0

The udt make failed.


Anyone run into something like this before?


Tim MacInnes
Email: [EMAIL PROTECTED]



-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users