Author Topic: make is getting it all wrong ;)  (Read 1325 times)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
make is getting it all wrong ;)
« on: January 03, 2012, 12:08:33 PM »
What do I do or how should I handle a situation when in running make it looks for a .la file, and when in doing a locate of the file, a return of .so (and .a) are indcated on the same folder as the search?

Error:
Code: [Select]
libtool: link: cannot find the library `/usr/lib64/libgobject-2.0.la' or unhandled argument `/usr/lib64/libgobject-2.0.la'
Code: [Select]
$ locate libgobject
/usr/lib64/libgobject-2.0.a
/usr/lib64/libgobject-2.0.so
/usr/lib64/libgobject-2.0.so.0
/usr/lib64/libgobject-2.0.so.0.3000.1
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: make is getting it all wrong ;)
« Reply #1 on: January 03, 2012, 12:12:26 PM »
What do I do or how should I handle a situation when in running make it looks for a .la file, and when in doing a locate of the file, a return of .so (and .a) are indcated on the same folder as the search?

Error:
Code: [Select]
libtool: link: cannot find the library `/usr/lib64/libgobject-2.0.la' or unhandled argument `/usr/lib64/libgobject-2.0.la'
Code: [Select]
$ locate libgobject
/usr/lib64/libgobject-2.0.a
/usr/lib64/libgobject-2.0.so
/usr/lib64/libgobject-2.0.so.0
/usr/lib64/libgobject-2.0.so.0.3000.1

Rerun configure before to run make again.

AS

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12536
Re: make is getting it all wrong ;)
« Reply #2 on: January 03, 2012, 12:17:04 PM »
rm -rf /usr/lib64/*.la


Thanks to everyone who donates. You keep the servers running.

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: make is getting it all wrong ;)
« Reply #3 on: January 04, 2012, 01:02:31 AM »
What do I do or how should I handle a situation when in running make it looks for a .la file, and when in doing a locate of the file, a return of .so (and .a) are indcated on the same folder as the search?

Error:
Code: [Select]
libtool: link: cannot find the library `/usr/lib64/libgobject-2.0.la' or unhandled argument `/usr/lib64/libgobject-2.0.la'
Code: [Select]
$ locate libgobject
/usr/lib64/libgobject-2.0.a
/usr/lib64/libgobject-2.0.so
/usr/lib64/libgobject-2.0.so.0
/usr/lib64/libgobject-2.0.so.0.3000.1

Rerun configure before to run make again.

AS

Heya AS,

The was actually from:

Code: [Select]
$ ./autogen.sh --prefix=/usr
$ ./configure
$ make
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: make is getting it all wrong ;)
« Reply #4 on: January 04, 2012, 04:26:59 AM »
The was actually from:

Code: [Select]
$ ./autogen.sh --prefix=/usr
$ ./configure
$ make

the command "./autogen.sh --prefix=/usr" in turn will call "configure  --prefix=/usr",
the "./configure" alone should be omitted, because it will reset the prefix to the default.

I have also assumed you already deleted the .la files as suggested from Texstar and Sproggy ...

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: make is getting it all wrong ;)
« Reply #5 on: January 04, 2012, 04:41:36 AM »
rm -rf /usr/lib64/*.la

Done. But I am still running into make errors. FWIW, I am trying to compile LightDM 1.1.0.

Code: [Select]
$ ./autogen.sh
--snip--                                   // ALL GOOD after adding ACLOCAL_AMFLAGS = -I m4 on Makefile.am ... except
liblightdm-gobject/Makefile.am:34: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL

Code: [Select]
$./configure --prefix=/usr \
> --libexecdir=/usr/lib64 \
> --disable-static \
> --enable-gtk-doc\
> --with-greeter-session=lightdm-default-greeter \
> --with-greeter-user=lightdm
--snip--                                   // Commented out GOBJECT_INTROSPECTION_CHECK(0.9.5) at line 15303 on configure
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
...
checking if gcc supports -fno-rtti -fno-exceptions... no
...
checking if gcc static flag -static works... no
...
checking whether -lc should be explicitly linked in... no
...
checking whether to build static libraries... no
...
checking if g++ static flag -static works... no
...
checking for LIBLIGHTDM_GOBJECT... no
--snip--

                    Light Display Manager 1.1.0
                    ===========================

        prefix:                   /usr
        Greeter session:          lightdm-default-greeter
        Greeter user:             lightdm
        User session:             default
        liblightdm-gobject:       no
        GObject introspection:
        liblightdm-qt:            yes
        GTK+ Greeter:             yes
        Qt Greeter:               yes

And now (after rm -rf /usr/lib64/*.la) the error:
Code: [Select]
...
Making all in greeters
make[2]: Entering directory `/home/archie/Temporary/src/rpm/SOURCES/lightdm-1.1.0/greeters'
Making all in gtk
make[3]: Entering directory `/home/archie/Temporary/src/rpm/SOURCES/lightdm-1.1.0/greeters/gtk'
  CC     lightdm_gtk_greeter-lightdm-gtk-greeter.o
  CCLD   lightdm-gtk-greeter
/usr/bin/ld: cannot find -llightdm-gobject-1
collect2: ld returned 1 exit status
make[3]: *** [lightdm-gtk-greeter] Error 1
make[3]: Leaving directory `/home/archie/Temporary/src/rpm/SOURCES/lightdm-1.1.0/greeters/gtk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/archie/Temporary/src/rpm/SOURCES/lightdm-1.1.0/greeters'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/archie/Temporary/src/rpm/SOURCES/lightdm-1.1.0'
make: *** [all] Error 2

Not easy to package (sometimes to update)! I'm gonna take a break .. having at it for almost the whole day, and I've got like a splitting headache.

Peace and much respect.
Archie
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: make is getting it all wrong ;)
« Reply #6 on: January 04, 2012, 04:42:46 AM »
The was actually from:

Code: [Select]
$ ./autogen.sh --prefix=/usr
$ ./configure
$ make

the command "./autogen.sh --prefix=/usr" in turn will call "configure  --prefix=/usr",
the "./configure" alone should be omitted, because it will reset the prefix to the default.

I have also assumed you already deleted the .la files as suggested from Texstar and Sproggy ...

Hmmm gonna try that ... I was just following what was outlined on Suse's specfile and both autogen and configure were present.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: make is getting it all wrong ;)
« Reply #7 on: January 04, 2012, 04:50:00 AM »
Sorry, AS. Still a red light. I think I'm missing a dependency. I'm just not sure which.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: make is getting it all wrong ;)
« Reply #8 on: January 04, 2012, 05:06:08 AM »
Quote
--snip--                                   // Commented out GOBJECT_INTROSPECTION_CHECK(0.9.5) at line 15303 on configure

this line is unclear to me, either there exists some other means to disable GOBJECT_INTROSPECTION, something like "configure --disable-gobject-introspection", or it is a needed dependency from lightdm

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: make is getting it all wrong ;)
« Reply #9 on: January 04, 2012, 05:47:17 AM »
Quote
--snip--                                   // Commented out GOBJECT_INTROSPECTION_CHECK(0.9.5) at line 15303 on configure

this line is unclear to me, either there exists some other means to disable GOBJECT_INTROSPECTION, something like "configure --disable-gobject-introspection", or it is a needed dependency from lightdm

It is indeed needed so I removed the # and let the error persist.

Code: [Select]
$  rpm -qa *intros*
gobject-introspection-1.30.0-1pclos2011


just for fun try this

./autogen.sh --prefix=/usr --enable-maintainer-mode && make clean && make

most of the xfce stuff is now using the autogen.sh in it's src ...

No dice. ;)

That didn't even make it to && make clean.

Executing the command separately,

Code: [Select]
make: *** No rule to make target `clean'.  Stop.
So the following looks about right for now:

Code: [Select]
$./configure --prefix=/usr \
> --libexecdir=/usr/lib64 \
> --enable-gtk-doc \
> --with-greeter-session=lightdm-default-greeter \
> --with-greeter-user=lightdm

At least with those, I am getting:

Code: [Select]
                    Light Display Manager 1.1.0
                    ===========================

        prefix:                   /usr
        Greeter session:          lightdm-default-greeter
        Greeter user:             lightdm
        User session:             default
        liblightdm-gobject:       no
        GObject introspection:
        liblightdm-qt:            yes
        GTK+ Greeter:             yes
        Qt Greeter:               yes

I just need a bit more research on liblightdm-gobject. Dang, this is gonna be another one of those wild goose chase with Texstar easily getting it built.  ;)   8)
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3748
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: make is getting it all wrong ;)
« Reply #10 on: January 04, 2012, 11:28:24 AM »
Sorry, but i was make it in Sat Nov 19 2011, but don_t know how to work with it.
Neal has an rpm package, Archie look in your dropbox folder, i load the source up...