File: README.QNX

package info (click to toggle)
unixodbc 2.2.11-16
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 17,332 kB
  • ctags: 12,399
  • sloc: ansic: 116,624; cpp: 29,333; sh: 25,024; makefile: 3,002; lex: 241; yacc: 182; perl: 142; sed: 16; sql: 1
file content (70 lines) | stat: -rw-r--r-- 1,181 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Building unixODBC on QNX
========================

This has been tested on the QNX 6.1 x86 release.

1. unpack the distribution, and cd into the distribution dir

2. Add any missing files

	automake --add-missing

3. Configure unixODBC
	
	./configure --sysconfdir=/etc --enable-gui=no --prefix=/opt

4. run libtooloze using the QNX version of libtool, then update aclocal.m4

	libtoolize --force
	aclocal

5. We now need to alter the flags dlopen uses

	cd libltdl
	sed "s/RTLD_GLOBAL/RTLD_GROUP/" ltdl.c > ltdl.c.new
	sed "s/RTLD_LAZY/RTLD_NOW/" ltdl.c.new > ltdl.c
	cd ..

6. Force a reconfigure

	rm config.cache

7. Make, then install

	make
	make install

And with luck and a trailing wind, that should be that.

EXTRA STUFF for QNX 6.2, if the wind is head on...

If you find that it segfaults, its worth going into the libltdl
directory, editing the Makefile, and changing the line

CFLAGS = -g -O2

to 

CFLAGS = -g -O2 -DPIC -fPIC

then touch ltdl.c to force a rebuild

You may also get a error when building in the exe directory, to
fix this, go to the exe directory, edit Makefile, and change

OBJEXT = @OBJEXT@

to 

OBJEXT = o

And

EXEEXT = @EXEEXT@

to

EXEEXT =