473,467 Members | 1,477 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Compilation for different fixpaks

Hi,

I have an application compiled using gcc under DB2 v8 for Windows
Fixpak 12. It works fine for this fixpak.

However, if I move the application to a different DB2 fixpak (on
Windows), it does not run. (Basically it complains that "Procedure
entry point can not be found", in some place, say sqlasetdata.) If I
upgrade db2 on Windows to the same Fixpak, it works.

However, the same application works for DB2 UDB on AIX, HP-UX, Solaris
& Linux, regardless of DB2 versions (as long as it is V6 or later) and
fixpak levels.

The compilation script on Windows (with Cygwin) is as follows:

## Compile (but without link: -c) each component:

gcc -mno-cygwin -I$DB2PATH/include -c md5.c
gcc -mno-cygwin -I$DB2PATH/include -c hash.c
......
gcc -mno-cygwin -I$DB2PATH/include -c $APPNAME.c

## Link all objects to form the application:
gcc -mno-cygwin -o ${APPNAME} \
${APPNAME}.o \
md5.o \
hash.o \
...... \
$DB2PATH/lib/db2api.lib -L$DB2PATH/lib

Have I missed something during the compilation? How to make the
application work for all fixpaks lower than Fixpak 12 on Windows?

Thanks a lot!

Guoping

Sep 27 '06 #1
9 2128
<gj***********@yahoo.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,

I have an application compiled using gcc under DB2 v8 for Windows
Fixpak 12. It works fine for this fixpak.

However, if I move the application to a different DB2 fixpak (on
Windows), it does not run. (Basically it complains that "Procedure
entry point can not be found", in some place, say sqlasetdata.) If I
upgrade db2 on Windows to the same Fixpak, it works.

However, the same application works for DB2 UDB on AIX, HP-UX, Solaris
& Linux, regardless of DB2 versions (as long as it is V6 or later) and
fixpak levels.

The compilation script on Windows (with Cygwin) is as follows:

## Compile (but without link: -c) each component:

gcc -mno-cygwin -I$DB2PATH/include -c md5.c
gcc -mno-cygwin -I$DB2PATH/include -c hash.c
......
gcc -mno-cygwin -I$DB2PATH/include -c $APPNAME.c

## Link all objects to form the application:
gcc -mno-cygwin -o ${APPNAME} \
${APPNAME}.o \
md5.o \
hash.o \
...... \
$DB2PATH/lib/db2api.lib -L$DB2PATH/lib

Have I missed something during the compilation? How to make the
application work for all fixpaks lower than Fixpak 12 on Windows?

Thanks a lot!

Guoping
Starting with DB2 8.2 (DB2 8.1 FP7 or higher) SQL stored procedures no
longer generate C code that is compiled using a C compiler installed by the
customer on the database server machine. Prior to 8.2, a compiler must be
installed and properly set up in order to use it for SQL SP's.

One of the manuals describes how to set up a C compiler on Windows for SP
compilation prior to 8.2. I believe it is on of the Application Development
Guides. Of course, if you go to 8.2 you don't need the C compiler.
Sep 28 '06 #2
Thanks Mark.

But the application is not a stored procedure. All C code is written
by me instead of being generated by a tool.

Mark A wrote:
<gj***********@yahoo.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,

I have an application compiled using gcc under DB2 v8 for Windows
Fixpak 12. It works fine for this fixpak.

However, if I move the application to a different DB2 fixpak (on
Windows), it does not run. (Basically it complains that "Procedure
entry point can not be found", in some place, say sqlasetdata.) If I
upgrade db2 on Windows to the same Fixpak, it works.

However, the same application works for DB2 UDB on AIX, HP-UX, Solaris
& Linux, regardless of DB2 versions (as long as it is V6 or later) and
fixpak levels.

The compilation script on Windows (with Cygwin) is as follows:

## Compile (but without link: -c) each component:

gcc -mno-cygwin -I$DB2PATH/include -c md5.c
gcc -mno-cygwin -I$DB2PATH/include -c hash.c
......
gcc -mno-cygwin -I$DB2PATH/include -c $APPNAME.c

## Link all objects to form the application:
gcc -mno-cygwin -o ${APPNAME} \
${APPNAME}.o \
md5.o \
hash.o \
...... \
$DB2PATH/lib/db2api.lib -L$DB2PATH/lib

Have I missed something during the compilation? How to make the
application work for all fixpaks lower than Fixpak 12 on Windows?

Thanks a lot!

Guoping

Starting with DB2 8.2 (DB2 8.1 FP7 or higher) SQL stored procedures no
longer generate C code that is compiled using a C compiler installed by the
customer on the database server machine. Prior to 8.2, a compiler must be
installed and properly set up in order to use it for SQL SP's.

One of the manuals describes how to set up a C compiler on Windows for SP
compilation prior to 8.2. I believe it is on of the Application Development
Guides. Of course, if you go to 8.2 you don't need the C compiler.
Sep 28 '06 #3
Thanks Mark.

But the application is not a stored procedure. All C code is written
by me instead of being generated by a tool.

Mark A wrote:
<gj***********@yahoo.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,

I have an application compiled using gcc under DB2 v8 for Windows
Fixpak 12. It works fine for this fixpak.

However, if I move the application to a different DB2 fixpak (on
Windows), it does not run. (Basically it complains that "Procedure
entry point can not be found", in some place, say sqlasetdata.) If I
upgrade db2 on Windows to the same Fixpak, it works.

However, the same application works for DB2 UDB on AIX, HP-UX, Solaris
& Linux, regardless of DB2 versions (as long as it is V6 or later) and
fixpak levels.

The compilation script on Windows (with Cygwin) is as follows:

## Compile (but without link: -c) each component:

gcc -mno-cygwin -I$DB2PATH/include -c md5.c
gcc -mno-cygwin -I$DB2PATH/include -c hash.c
......
gcc -mno-cygwin -I$DB2PATH/include -c $APPNAME.c

## Link all objects to form the application:
gcc -mno-cygwin -o ${APPNAME} \
${APPNAME}.o \
md5.o \
hash.o \
...... \
$DB2PATH/lib/db2api.lib -L$DB2PATH/lib

Have I missed something during the compilation? How to make the
application work for all fixpaks lower than Fixpak 12 on Windows?

Thanks a lot!

Guoping

Starting with DB2 8.2 (DB2 8.1 FP7 or higher) SQL stored procedures no
longer generate C code that is compiled using a C compiler installed by the
customer on the database server machine. Prior to 8.2, a compiler must be
installed and properly set up in order to use it for SQL SP's.

One of the manuals describes how to set up a C compiler on Windows for SP
compilation prior to 8.2. I believe it is on of the Application Development
Guides. Of course, if you go to 8.2 you don't need the C compiler.
Sep 28 '06 #4
gj***********@yahoo.com wrote:
Hi,

I have an application compiled using gcc under DB2 v8 for Windows
Fixpak 12. It works fine for this fixpak.

However, if I move the application to a different DB2 fixpak (on
Windows), it does not run. (Basically it complains that "Procedure
entry point can not be found", in some place, say sqlasetdata.) If I
upgrade db2 on Windows to the same Fixpak, it works.
What's the exact error message?
How does your application access DB2? (CLI, embedded SQL, ...)
Have you checked the APAR list that there was no fix merged into FP12 that
may relate to your problem?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 28 '06 #5
The exact error message is:

The procedure entry point sqlasetdata@24 could not be located in the
dynamic link library DB2APP.DLL

Thanks,
Guoping

Knut Stolze wrote:
gj***********@yahoo.com wrote:
Hi,

I have an application compiled using gcc under DB2 v8 for Windows
Fixpak 12. It works fine for this fixpak.

However, if I move the application to a different DB2 fixpak (on
Windows), it does not run. (Basically it complains that "Procedure
entry point can not be found", in some place, say sqlasetdata.) If I
upgrade db2 on Windows to the same Fixpak, it works.

What's the exact error message?
How does your application access DB2? (CLI, embedded SQL, ...)
Have you checked the APAR list that there was no fix merged into FP12 that
may relate to your problem?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 28 '06 #6
gj***********@yahoo.com wrote:
The exact error message is:

The procedure entry point sqlasetdata@24 could not be located in the
dynamic link library DB2APP.DLL
That doesn't look like a DB2 error message. So you should try to figure out
what your application is actually doing.

Also, what about the other questions?
>What's the exact error message?
How does your application access DB2? (CLI, embedded SQL, ...)
Have you checked the APAR list that there was no fix merged into FP12
that may relate to your problem?
--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 28 '06 #7
I forgot to mention that only a small and simple portion of the
application accesses DB2 via embeded SQL.

Knut Stolze wrote:
gj***********@yahoo.com wrote:
Hi,

I have an application compiled using gcc under DB2 v8 for Windows
Fixpak 12. It works fine for this fixpak.

However, if I move the application to a different DB2 fixpak (on
Windows), it does not run. (Basically it complains that "Procedure
entry point can not be found", in some place, say sqlasetdata.) If I
upgrade db2 on Windows to the same Fixpak, it works.

What's the exact error message?
How does your application access DB2? (CLI, embedded SQL, ...)
Have you checked the APAR list that there was no fix merged into FP12 that
may relate to your problem?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 28 '06 #8
This looks like you are using a header file that references an entry
point that has existed for a while in the *ix environment but has just
recently been added to the Windows environment. This will cause exactly
the problem you're encountering.

Phil Sherman
gj***********@yahoo.com wrote:
Hi,

I have an application compiled using gcc under DB2 v8 for Windows
Fixpak 12. It works fine for this fixpak.

However, if I move the application to a different DB2 fixpak (on
Windows), it does not run. (Basically it complains that "Procedure
entry point can not be found", in some place, say sqlasetdata.) If I
upgrade db2 on Windows to the same Fixpak, it works.

However, the same application works for DB2 UDB on AIX, HP-UX, Solaris
& Linux, regardless of DB2 versions (as long as it is V6 or later) and
fixpak levels.

The compilation script on Windows (with Cygwin) is as follows:

## Compile (but without link: -c) each component:

gcc -mno-cygwin -I$DB2PATH/include -c md5.c
gcc -mno-cygwin -I$DB2PATH/include -c hash.c
......
gcc -mno-cygwin -I$DB2PATH/include -c $APPNAME.c

## Link all objects to form the application:
gcc -mno-cygwin -o ${APPNAME} \
${APPNAME}.o \
md5.o \
hash.o \
...... \
$DB2PATH/lib/db2api.lib -L$DB2PATH/lib

Have I missed something during the compilation? How to make the
application work for all fixpaks lower than Fixpak 12 on Windows?

Thanks a lot!

Guoping
Sep 28 '06 #9
My guess is its related to the issue described here:
http://www-1.ibm.com/support/docview...id=swg21181887
>><gj***********@yahoo.com09/28/06 8:24 AM >>>
The exact error message is:

The procedure entry point sqlasetdata@24 could not be located in the
dynamic link library DB2APP.DLL
Sep 28 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
3
by: cat | last post by:
Hi folks, We are going to update our db2 udb ee from v7.2 to v8.1 ( on aix 5.1 with fixpack 7). The problem is since our server consociation, we have 2 application running on the same server...
3
by: Mary Lei | last post by:
I downloaded FP9a_MI00117.tar as the 8.2 fixpak for 32 bit linux but it got a tar error: OD_14086/db2/linux26/IBM_db2dees81-8.1.2-89.i386.rpm tar: Read 2536 bytes from...
11
by: Michael Gaab | last post by:
Compilation in c generally has four phases 1. Preprocessing 2. Compilation 3. Assembly 4. Linking. If I use a flag that will not link the code, order of compilation is not an issue,...
2
by: FireStarter | last post by:
Guys, in the code that follows, why does the method F() still compile, even if DBG is undefined? Inside method G(), the code inside <#if DBG> does not compile (notice that I can write whatever I...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
6
by: thomson | last post by:
Hi all, I have compiled by .net web applicaion in my local machine , and a dll has been created on the bin Directory, And i have copied the entire application using xcopy deployment to a...
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
6
by: maxwell | last post by:
I'm trying to use the gpp utility (Gnu points to http://en.nothingisreal.com/wiki/GPP) to do conditional compilation in Python, and I'm running into a problem: the same '#' character introduces...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.