Thread: Real compilation error

Real compilation error

From
Erwin van den Berg
Date:
I got the following error (while linking):
tab-complete.o(.text+0x2a36):tab-complete.c: undefined reference to
'filename_completion_function'.

Best regards,
Erwin van den Berg



RE: Real compilation error

From
"Henshall, Stuart - WCP"
Date:
Is that the problem with readline-4.2?
Try 4.1.
I think there's a patch hanging around some where that lets you use 4.2 on
cygwin but don't have the foggiest where.
FYI: you do know that a version of postgresql comes precompiled now with
cygwin? You just need to add cygipc and then initdb (IIRC).
- Stuart


> -----Original Message-----
> From:    Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> Sent:    Monday, August 06, 2001 2:09 PM
> To:    pgsql-cygwin@postgresql.org
> Subject:    [CYGWIN] Real compilation error
>
> I got the following error (while linking):
> tab-complete.o(.text+0x2a36):tab-complete.c: undefined reference to
> 'filename_completion_function'.
>
> Best regards,
> Erwin van den Berg
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl

RE: Real compilation error

From
"Henshall, Stuart - WCP"
Date:
Hello
    Please cc the list so all may share

> -----Original Message-----
> From:    Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> Sent:    Monday, August 06, 2001 3:44 PM
> To:    Henshall, Stuart - WCP
> Subject:    Re: [CYGWIN] Real compilation error
>
> Hi Staurt,
>
> > Is that the problem with readline-4.2?
>
> I have no idea, I am new at Cygwin. I just want to have PostgreSQL on Win
> NT.
> Will there be a native Win32 version in the future? I am thinking of
> switching
> to MySQL, because it has a native Win2 version.
>
Never used MySQL so couldn't comment (when evaluating options it seemed a
bit 'light' IMO, of course your needs may vary).

> > Try 4.1.
>
> Where do I get that?
>
In the options to install/download there is a section listing all the
packages. If you look to the top right there should be an option with prev.
Use this to select readline-4.1 (I believe you can install over 4.2 if that
is already installed).

> > I think there's a patch hanging around some where that lets you use 4.2
> on
> > cygwin but don't have the foggiest where.
> > FYI: you do know that a version of postgresql comes precompiled now with
> > cygwin?
>
> 7.1.2-3  The problem is that the Postmaster is missing, so it's useless.
>
I must admit to using my own compilations so that I can set the options and
run regression tests so I'm not sure of how much you need to do. However its
important to realise you must install cygipc (can't remeber exactly where
you get it). Try having a look at these as well:
http://www.ca.postgresql.org/docs/faq-mswin
also
http://techdocs.postgresql.org
and the main site:
http://www.postgresql.org



> > You just need to add cygipc and then initdb (IIRC).
>
> Erwin
>
>
> >
> > - Stuart
> >
> > > -----Original Message-----
> > > From: Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> > > Sent: Monday, August 06, 2001 2:09 PM
> > > To:   pgsql-cygwin@postgresql.org
> > > Subject:      [CYGWIN] Real compilation error
> > >
> > > I got the following error (while linking):
> > > tab-complete.o(.text+0x2a36):tab-complete.c: undefined reference to
> > > 'filename_completion_function'.
> > >
> > > Best regards,
> > > Erwin van den Berg
> > >
> > >
> > >
> > > ---------------------------(end of
> broadcast)---------------------------
> > > TIP 6: Have you searched our list archives?
> > >
> > > http://www.postgresql.org/search.mpl

Re: Real compilation error

From
Erwin van den Berg
Date:
"Henshall, Stuart - WCP" wrote:

> > > Is that the problem with readline-4.2?
> >
> > I have no idea, I am new at Cygwin. I just want to have PostgreSQL on Win
> > NT.
> > Will there be a native Win32 version in the future? I am thinking of
> > switching
> > to MySQL, because it has a native Win2 version.
> >
> Never used MySQL so couldn't comment (when evaluating options it seemed a
> bit 'light' IMO, of course your needs may vary).

When I tested it years ago, I ended up choosing PostgreSQL. But now MySQL has
grown (database replication, master/slave) and it has a native Win32 version,
which I think is a big plus. I hope that there will be a native PostgreSQL in
the future too.

> > > Try 4.1.
> >
> > Where do I get that?
> >
> In the options to install/download there is a section listing all the
> packages. If you look to the top right there should be an option with prev.
> Use this to select readline-4.1 (I believe you can install over 4.2 if that
> is already installed).

I tried that, but by prev option readline is also 4.2

> > > I think there's a patch hanging around some where that lets you use 4.2
> > on
> > > cygwin but don't have the foggiest where.
> > > FYI: you do know that a version of postgresql comes precompiled now with
> > > cygwin?
> >
> > 7.1.2-3  The problem is that the Postmaster is missing, so it's useless.
> >
> I must admit to using my own compilations so that I can set the options and
> run regression tests so I'm not sure of how much you need to do. However its
> important to realise you must install cygipc

I am running ipc-daemon (v1.09), is that the same? Otherwise it won't run at
all.

Erwin


> (can't remeber exactly where
> you get it). Try having a look at these as well:
> http://www.ca.postgresql.org/docs/faq-mswin
> also
> http://techdocs.postgresql.org
> and the main site:
> http://www.postgresql.org
>
> > > You just need to add cygipc and then initdb (IIRC).
> >
> > Erwin
> >
> >
> > >
> > > - Stuart
> > >
> > > > -----Original Message-----
> > > > From: Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> > > > Sent: Monday, August 06, 2001 2:09 PM
> > > > To:   pgsql-cygwin@postgresql.org
> > > > Subject:      [CYGWIN] Real compilation error
> > > >
> > > > I got the following error (while linking):
> > > > tab-complete.o(.text+0x2a36):tab-complete.c: undefined reference to
> > > > 'filename_completion_function'.
> > > >
> > > > Best regards,
> > > > Erwin van den Berg
> > > >
> > > >
> > > >
> > > > ---------------------------(end of
> > broadcast)---------------------------
> > > > TIP 6: Have you searched our list archives?
> > > >
> > > > http://www.postgresql.org/search.mpl


Re: Real compilation error

From
Jason Tishler
Date:
Erwin,

On Mon, Aug 06, 2001 at 04:06:11PM +0100, Henshall, Stuart - WCP wrote:
> Erwin van den Berg wrote:
> > 7.1.2-3  The problem is that the Postmaster is missing, so it's useless.

postmaster is not missing -- it is a symlink just like on other platforms:

    $ tar -tvjf postgresql-7.1.2-3.tar.bz2 | fgrep postmaster
    lrwxrwxrwx jt/Domain Users       0 2001-07-12 15:09:50 usr/bin/postmaster -> postgres.exe

Jason

--
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   732.264.8798
82 Bethany Road, Suite 7             Email: jason@tishler.net
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

Re: Real compilation error

From
Erwin van den Berg
Date:
Hi Jason,

> On Mon, Aug 06, 2001 at 04:06:11PM +0100, Henshall, Stuart - WCP wrote:
> > Erwin van den Berg wrote:
> > > 7.1.2-3  The problem is that the Postmaster is missing, so it's useless.
>
> postmaster is not missing -- it is a symlink just like on other platforms:
>
>     $ tar -tvjf postgresql-7.1.2-3.tar.bz2 | fgrep postmaster
>     lrwxrwxrwx jt/Domain Users       0 2001-07-12 15:09:50 usr/bin/postmaster -> postgres.exe

OK, but why don't I get an open tcp port 5432 on my computer?

Erwin

>
>
> Jason
>
> --
> Jason Tishler
> Director, Software Engineering       Phone: 732.264.8770 x235
> Dot Hill Systems Corp.               Fax:   732.264.8798
> 82 Bethany Road, Suite 7             Email: jason@tishler.net
> Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com


RE: Real compilation error

From
"Henshall, Stuart - WCP"
Date:
Hello,
    Have you tried starting the postmaster with the -i option?
- Stuart

> -----Original Message-----
> From:    Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> Sent:    Tuesday, August 07, 2001 9:15 AM
> To:    Henshall, Stuart - WCP
> Cc:    pgsql-cygwin@postgresql.org
> Subject:    Re: [CYGWIN] Real compilation error
>
> Hi Stuart,
>
> Yes, it was the problem with the readline 4.2, thanks for the help! Now I
> could succesfully compile everything. Unfortunately it did not solve the
> problem. I still do not have port 5432 open ... :-(
>
> Erwin
>
>
> "Henshall, Stuart - WCP" wrote:
>
> > Is that the problem with readline-4.2?
> > Try 4.1.
> > I think there's a patch hanging around some where that lets you use 4.2
> on
> > cygwin but don't have the foggiest where.
> > FYI: you do know that a version of postgresql comes precompiled now with
> > cygwin? You just need to add cygipc and then initdb (IIRC).
> > - Stuart
> >
> > > -----Original Message-----
> > > From: Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> > > Sent: Monday, August 06, 2001 2:09 PM
> > > To:   pgsql-cygwin@postgresql.org
> > > Subject:      [CYGWIN] Real compilation error
> > >
> > > I got the following error (while linking):
> > > tab-complete.o(.text+0x2a36):tab-complete.c: undefined reference to
> > > 'filename_completion_function'.
> > >
> > > Best regards,
> > > Erwin van den Berg
> > >
> > >
> > >
> > > ---------------------------(end of
> broadcast)---------------------------
> > > TIP 6: Have you searched our list archives?
> > >
> > > http://www.postgresql.org/search.mpl

Re: Real compilation error

From
Erwin van den Berg
Date:
Hi Stuart,

Yes, it was the problem with the readline 4.2, thanks for the help! Now I
could succesfully compile everything. Unfortunately it did not solve the
problem. I still do not have port 5432 open ... :-(

Erwin


"Henshall, Stuart - WCP" wrote:

> Is that the problem with readline-4.2?
> Try 4.1.
> I think there's a patch hanging around some where that lets you use 4.2 on
> cygwin but don't have the foggiest where.
> FYI: you do know that a version of postgresql comes precompiled now with
> cygwin? You just need to add cygipc and then initdb (IIRC).
> - Stuart
>
> > -----Original Message-----
> > From: Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> > Sent: Monday, August 06, 2001 2:09 PM
> > To:   pgsql-cygwin@postgresql.org
> > Subject:      [CYGWIN] Real compilation error
> >
> > I got the following error (while linking):
> > tab-complete.o(.text+0x2a36):tab-complete.c: undefined reference to
> > 'filename_completion_function'.
> >
> > Best regards,
> > Erwin van den Berg
> >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://www.postgresql.org/search.mpl


Re: Real compilation error

From
Erwin van den Berg
Date:
Stuart,

>         Have you tried starting the postmaster with the -i option?

That seems to do the trick! Somehow I get the feeling that I should read the
manual better ...

Erwin


> > -----Original Message-----
> > From: Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> > Sent: Tuesday, August 07, 2001 9:15 AM
> > To:   Henshall, Stuart - WCP
> > Cc:   pgsql-cygwin@postgresql.org
> > Subject:      Re: [CYGWIN] Real compilation error
> >
> > Hi Stuart,
> >
> > Yes, it was the problem with the readline 4.2, thanks for the help! Now I
> > could succesfully compile everything. Unfortunately it did not solve the
> > problem. I still do not have port 5432 open ... :-(
> >
> > Erwin
> >
> >
> > "Henshall, Stuart - WCP" wrote:
> >
> > > Is that the problem with readline-4.2?
> > > Try 4.1.
> > > I think there's a patch hanging around some where that lets you use 4.2
> > on
> > > cygwin but don't have the foggiest where.
> > > FYI: you do know that a version of postgresql comes precompiled now with
> > > cygwin? You just need to add cygipc and then initdb (IIRC).
> > > - Stuart
> > >
> > > > -----Original Message-----
> > > > From: Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> > > > Sent: Monday, August 06, 2001 2:09 PM
> > > > To:   pgsql-cygwin@postgresql.org
> > > > Subject:      [CYGWIN] Real compilation error
> > > >
> > > > I got the following error (while linking):
> > > > tab-complete.o(.text+0x2a36):tab-complete.c: undefined reference to
> > > > 'filename_completion_function'.
> > > >
> > > > Best regards,
> > > > Erwin van den Berg
> > > >
> > > >
> > > >
> > > > ---------------------------(end of
> > broadcast)---------------------------
> > > > TIP 6: Have you searched our list archives?
> > > >
> > > > http://www.postgresql.org/search.mpl


RE: Real compilation error

From
Riaan Labuschagne
Date:
Is there any reply on this?

I went through the manual but the minimum install as laid out in the manual
does not support the initdb command for postgresql.


Riaan Labuschagne
e-mail: riaan@radioretail.co.za
+27 82 567 9063
+27 21 982 2223
+27 21 982 2225 (fax)
Visit http://www.radioretail.co.za



-----Original Message-----
From: Erwin van den Berg [mailto:evdberg@visualdomain.net]
Sent: 07 August 2001 10:15
To: Henshall, Stuart - WCP
Cc: pgsql-cygwin@postgresql.org
Subject: Re: [CYGWIN] Real compilation error


Hi Stuart,

Yes, it was the problem with the readline 4.2, thanks for the help! Now I
could succesfully compile everything. Unfortunately it did not solve the
problem. I still do not have port 5432 open ... :-(

Erwin


"Henshall, Stuart - WCP" wrote:

> Is that the problem with readline-4.2?
> Try 4.1.
> I think there's a patch hanging around some where that lets you use 4.2 on
> cygwin but don't have the foggiest where.
> FYI: you do know that a version of postgresql comes precompiled now with
> cygwin? You just need to add cygipc and then initdb (IIRC).
> - Stuart
>
> > -----Original Message-----
> > From: Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> > Sent: Monday, August 06, 2001 2:09 PM
> > To:   pgsql-cygwin@postgresql.org
> > Subject:      [CYGWIN] Real compilation error
> >
> > I got the following error (while linking):
> > tab-complete.o(.text+0x2a36):tab-complete.c: undefined reference to
> > 'filename_completion_function'.
> >
> > Best regards,
> > Erwin van den Berg
> >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://www.postgresql.org/search.mpl


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

RE: Real compilation error

From
Riaan Labuschagne
Date:
These are the installation steps for a minimum Prostgresql on Cygwin. Pleas
enote that I still cant run the initdb command with this minimum
installation, can someone please advise.

I installed the following packages to build and/or execute
Cygwin PostgreSQL:

    crypt 1.0.1
    cygipc 1.09
    readline 4.1
    zlib 1.1.3
    cygwin 1.3.1



--------------- Installation detail----------------------------------------

$Id: README,v 1.12 2001/05/24 17:24:42 jt Exp $

Abstract:

This is the README for the Cygwin PostgreSQL distribution.

Requirements:

The following packages or later are required to build and/or execute
Cygwin PostgreSQL:

    crypt 1.0.1
    cygipc 1.09
    readline 4.1
    zlib 1.1.3
    cygwin 1.3.1

Install:

The following is the Cygwin PostgreSQL installation procedure:

1. Install the latest cygipc from:


http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/cygipc/index.html

2. Install the cygipc ipc-daemon as a service, if appropriate for your
platform
   (NT/2000 only):

    $ ipc-daemon --install-as-service

3. Start the cygipc ipc-daemon, as appropriate for your platform:

    $ net start ipc-daemon # NT/2000 or
    $ ipc-daemon &         # 9X/Me

4. Define the following environment variable:

    export PGDATA=/usr/share/postgresql/data

5. Initialize PostgreSQL:

    $ initdb

6. Start the PostgreSQL postmaster:

    $ postmaster &

7. Connect to PostgreSQL:

    $ psql template1

Riaan Labuschagne
e-mail: riaan@radioretail.co.za
+27 82 567 9063
+27 21 982 2223
+27 21 982 2225 (fax)
Visit http://www.radioretail.co.za



-----Original Message-----
From: Riaan Labuschagne [mailto:Riaan@radioretail.co.za]
Sent: 07 August 2001 11:42
To: Erwin van den Berg; Henshall, Stuart - WCP
Cc: pgsql-cygwin@postgresql.org
Subject: RE: [CYGWIN] Real compilation error


Is there any reply on this?

I went through the manual but the minimum install as laid out in the manual
does not support the initdb command for postgresql.


Riaan Labuschagne
e-mail: riaan@radioretail.co.za
+27 82 567 9063
+27 21 982 2223
+27 21 982 2225 (fax)
Visit http://www.radioretail.co.za



-----Original Message-----
From: Erwin van den Berg [mailto:evdberg@visualdomain.net]
Sent: 07 August 2001 10:15
To: Henshall, Stuart - WCP
Cc: pgsql-cygwin@postgresql.org
Subject: Re: [CYGWIN] Real compilation error


Hi Stuart,

Yes, it was the problem with the readline 4.2, thanks for the help! Now I
could succesfully compile everything. Unfortunately it did not solve the
problem. I still do not have port 5432 open ... :-(

Erwin


"Henshall, Stuart - WCP" wrote:

> Is that the problem with readline-4.2?
> Try 4.1.
> I think there's a patch hanging around some where that lets you use 4.2 on
> cygwin but don't have the foggiest where.
> FYI: you do know that a version of postgresql comes precompiled now with
> cygwin? You just need to add cygipc and then initdb (IIRC).
> - Stuart
>
> > -----Original Message-----
> > From: Erwin van den Berg [SMTP:evdberg@visualdomain.net]
> > Sent: Monday, August 06, 2001 2:09 PM
> > To:   pgsql-cygwin@postgresql.org
> > Subject:      [CYGWIN] Real compilation error
> >
> > I got the following error (while linking):
> > tab-complete.o(.text+0x2a36):tab-complete.c: undefined reference to
> > 'filename_completion_function'.
> >
> > Best regards,
> > Erwin van den Berg
> >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://www.postgresql.org/search.mpl


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org